From 66ffe632f3158e1359fd123653f87486b99b1fb0 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Thu, 8 Aug 2013 13:03:21 -0300 Subject: gitweb: add package to git repo --- pcr/gitweb/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++ pcr/gitweb/gitweb.install | 23 ++++++++++++++++++++ pcr/gitweb/httpd-gitweb.conf | 13 +++++++++++ 3 files changed, 87 insertions(+) create mode 100644 pcr/gitweb/PKGBUILD create mode 100644 pcr/gitweb/gitweb.install create mode 100644 pcr/gitweb/httpd-gitweb.conf 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 + +_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 @@ + + ServerName gitserver + DocumentRoot /srv/http/gitweb + Alias /git /srv/http/gitweb + + Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch + AllowOverride All + order allow,deny + Allow from all + AddHandler cgi-script cgi + DirectoryIndex gitweb.cgi + + -- cgit v1.2.3 From a37fb04d8bd91ee100dae9c1897ab97a0687e8e0 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Thu, 8 Aug 2013 13:48:54 -0300 Subject: remove gitweb package --- pcr/gitweb/PKGBUILD | 51 -------------------------------------------- pcr/gitweb/gitweb.install | 23 -------------------- pcr/gitweb/httpd-gitweb.conf | 13 ----------- 3 files changed, 87 deletions(-) delete mode 100644 pcr/gitweb/PKGBUILD delete mode 100644 pcr/gitweb/gitweb.install delete mode 100644 pcr/gitweb/httpd-gitweb.conf diff --git a/pcr/gitweb/PKGBUILD b/pcr/gitweb/PKGBUILD deleted file mode 100644 index 630ac408d..000000000 --- a/pcr/gitweb/PKGBUILD +++ /dev/null @@ -1,51 +0,0 @@ -# Maintainer: Márcio Silva - -_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 deleted file mode 100644 index c7eb0af2a..000000000 --- a/pcr/gitweb/gitweb.install +++ /dev/null @@ -1,23 +0,0 @@ -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 deleted file mode 100644 index 143fe3be2..000000000 --- a/pcr/gitweb/httpd-gitweb.conf +++ /dev/null @@ -1,13 +0,0 @@ - - ServerName gitserver - DocumentRoot /srv/http/gitweb - Alias /git /srv/http/gitweb - - Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch - AllowOverride All - order allow,deny - Allow from all - AddHandler cgi-script cgi - DirectoryIndex gitweb.cgi - - -- cgit v1.2.3