summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/gitweb/PKGBUILD51
-rw-r--r--pcr/gitweb/gitweb.install23
-rw-r--r--pcr/gitweb/httpd-gitweb.conf13
3 files changed, 87 insertions, 0 deletions
diff --git a/pcr/gitweb/PKGBUILD b/pcr/gitweb/PKGBUILD
new file mode 100644
index 000000000..630ac408d
--- /dev/null
+++ b/pcr/gitweb/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+
+_pkgname=git
+pkgname=gitweb
+pkgver=1.8.3.4
+pkgrel=1
+pkgdesc="web gui for the $_pkgname"
+arch=(
+ mips64el
+ x86_64
+ i686
+)
+backup=etc/httpd/conf/extra/httpd-$pkgname.conf
+install=$pkgname.install
+url=http://$_pkgname-scm.com/
+license=GPL2
+depends=(
+ curl
+ 'expat>=2.0'
+ $_pkgname=$pkgver
+ 'perl>=5.10.0'
+ perl-error
+)
+source=(
+ http://$_pkgname-core.googlecode.com/files/$_pkgname-$pkgver.tar.gz
+ httpd-$pkgname.conf
+)
+sha512sums=(
+ 84d2d70622d19200594f4ea8550f00c3bd46657381ea953a2171172faf27ffa8be30c9249e1ed93d983826880c7e78a76884c841212338efdfb7ab38713bdbe1
+ 9de5078d5782095e3f9e3a0b6e866b03f035b17ce4b5153cd4b994e14d13c80ee905b6b19014571670ea934b68f18222d8a22e5761220e98e651e1accd0477ba
+)
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ make configure
+
+ ./configure --prefix=/usr
+
+ make ${pkgname^^}_PROJECTROOT=/srv/$_pkgname $pkgname
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ make DESTDIR=$pkgdir gitwebdir=/srv/http/$pkgname install-$pkgname
+
+ install -vDm644 $srcdir/httpd-$pkgname.conf $pkgdir/etc/httpd/conf/extra/httpd-$pkgname.conf
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/gitweb/gitweb.install b/pcr/gitweb/gitweb.install
new file mode 100644
index 000000000..c7eb0af2a
--- /dev/null
+++ b/pcr/gitweb/gitweb.install
@@ -0,0 +1,23 @@
+post_install() {
+ cat << EOF
+==> To run GitWeb, you must add the lines in "/etc/httpd/conf/httpd.conf":
+==> "# GitWeb"
+==> "Include /etc/httpd/conf/extra/httpd-gitweb.conf"
+==> Then restart or run the Apache server:
+==> "systemctl restart httpd"
+==> or
+==> "systemctl start httpd" and "systemctl enable httpd"
+EOF
+}
+
+post_remove() {
+ cat << EOF
+==> To clean Apache server, remove the lines in /etc/httpd/conf/httpd.conf:
+==> "# GitWeb"
+==> "Include /etc/httpd/conf/extra/httpd-gitweb.conf"
+==> Then restart or stop the Apache server:
+==> "systemctl restart httpd"
+==> or
+==> "systemctl stop httpd" and "systemctl disable httpd"
+EOF
+}
diff --git a/pcr/gitweb/httpd-gitweb.conf b/pcr/gitweb/httpd-gitweb.conf
new file mode 100644
index 000000000..143fe3be2
--- /dev/null
+++ b/pcr/gitweb/httpd-gitweb.conf
@@ -0,0 +1,13 @@
+<VirtualHost *:80>
+ ServerName gitserver
+ DocumentRoot /srv/http/gitweb
+ Alias /git /srv/http/gitweb
+ <Directory /srv/http/gitweb>
+ Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
+ AllowOverride All
+ order allow,deny
+ Allow from all
+ AddHandler cgi-script cgi
+ DirectoryIndex gitweb.cgi
+ </Directory>
+</VirtualHost>