Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7bbde82a8e8217444c1acd67868f80cc8dd6479a
commit 7bbde82a8e8217444c1acd67868f80cc8dd6479a Author: crazy <[email protected]> Date: Sat Feb 25 01:43:15 2017 +0100 cgit-1.1-1-x86_64 * Version bump * removed apache file .. I don't want to add a file with root as default * which I would need to add.. Everyone need to read some docs since the rc file gone too * upstream so before one can setup cgit some docs reading is needed anyway * fixed some stuff in build() * fix depends=() * build against git 2.12.0 with an small patch so it matches our git version diff --git a/source/network-extra/cgit/FrugalBuild b/source/network-extra/cgit/FrugalBuild index 9b46a1d..5120bd2 100644 --- a/source/network-extra/cgit/FrugalBuild +++ b/source/network-extra/cgit/FrugalBuild @@ -2,39 +2,42 @@ # Maintainer: Miklos Vajna <[email protected]> pkgname=cgit -pkgver=0.11.2 -gitver=2.3.2 +pkgver=1.1 +## lets try to match our git version ? +gitver=2.12.0 pkgrel=1 pkgdesc="A fast webinterface for git." -depends=('curl>=7.20.0' 'openssl>=1.0.0') -backup=(etc/{cgitrc,httpd/conf/modules.d/cgit.conf}) +depends=('curl>=7.20.0' 'openssl>=1.0.0' 'luajit2') groups=('network-extra') -archs=('i686' 'x86_64' 'arm') +archs=('x86_64') url="http://git.zx2c4.com" up2date="Flasttar $url/cgit" source=($url/$pkgname/snapshot/$pkgname-$pkgver.tar.xz \ - http://www.kernel.org/pub/software/scm/git/git-$gitver.tar.xz \ - cgit.conf) -sha1sums=('004d9881d3ad1a328ffb34635c96e115c22ae4c6' \ - 'c7b0550c34109752bd25c4cd2007908df689b603' \ - 'ba8bab178c3036d8d0e6743cc91c6ab5cd3efb7b') + http://www.kernel.org/pub/software/scm/git/git-$gitver.tar.xz git-update.patch) +sha1sums=('3ffb325a6c6a3f5c3e4f1d5fd0a10f6c91f61e6b' \ + '42aafae5c29324b1fee0264a6c804fdffbd1d8d1' \ + 'f46abf51a1f892684fa41a20ff5253c458578dce') build() { unset MAKEFLAGS Fcd + Fpatchall + + Fsed "/usr/local" "/usr" Makefile + Fsed "GIT_VER = .*" "GIT_VER = $gitver" Makefile + if [ $gitver != $(grep ^GIT_VER Makefile |sed 's/.*= //') ]; then Fmessage "Did you forget to update gitver?" Fdie fi - mv ../git-$gitver/* git/ + Fexec mv ../git-$gitver/* git/ || Fdie Fmake - Fmakeinstall CGIT_SCRIPT_PATH=/var/www/cgit + Fexec make CGIT_SCRIPT_PATH=/var/www/cgit DESTDIR=$Fdestdir prefix=/usr install || Fdie Fdocrel cgitrc.5.txt - Ffile /etc/httpd/conf/modules.d/cgit.conf Fmkdir /var/cache/cgit - chown 99:99 $Fdestdir/var/cache/cgit + Fexec chown 99:99 $Fdestdir/var/cache/cgit } # optimization OK diff --git a/source/network-extra/cgit/cgit.conf b/source/network-extra/cgit/cgit.conf deleted file mode 100644 index 3eb4b55..0000000 --- a/source/network-extra/cgit/cgit.conf +++ /dev/null @@ -1,12 +0,0 @@ -<IfModule mod_alias.c> - Alias /cgit/ /var/www/cgit/ -</IfModule> - -<Directory "/var/www/cgit/"> - AllowOverride None - Options ExecCGI - DirectoryIndex cgit.cgi - AddHandler cgi-script .cgi - Order allow,deny - Allow from all -</Directory> diff --git a/source/network-extra/cgit/git-update.patch b/source/network-extra/cgit/git-update.patch new file mode 100644 index 0000000..a89122e --- /dev/null +++ b/source/network-extra/cgit/git-update.patch @@ -0,0 +1,14 @@ +diff --git a/ui-snapshot.c b/ui-snapshot.c +index 08c6e80..9b8cddd 100644 +--- a/ui-snapshot.c ++++ b/ui-snapshot.c +@@ -37,7 +37,7 @@ static int write_archive_type(const char *format, const char *hex, const char *p + /* argv_array guarantees a trailing NULL entry. */ + memcpy(nargv, argv.argv, sizeof(char *) * (argv.argc + 1)); + +- result = write_archive(argv.argc, nargv, NULL, 1, NULL, 0); ++ result = write_archive(argv.argc, nargv, NULL, NULL, 0); + argv_array_clear(&argv); + free(nargv); + return result; +-- \ No newline at end of file _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
