Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=68310fb367807ae78599c91588bb4d7a31f154e2
commit 68310fb367807ae78599c91588bb4d7a31f154e2 Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Tue Feb 26 15:49:43 2008 +0100 ccache-2.4-5-i686 - chown the cache to a new ccache group instead of users - primarily as fst is not in users and never will be diff --git a/source/devel/ccache/FrugalBuild b/source/devel/ccache/FrugalBuild index 9c193b3..139cec8 100644 --- a/source/devel/ccache/FrugalBuild +++ b/source/devel/ccache/FrugalBuild @@ -3,15 +3,17 @@ pkgname=ccache pkgver=2.4 -pkgrel=4 +pkgrel=5 pkgdesc="A fast compiler cache" url="http://ccache.samba.org" depends=('glibc') groups=('devel' 'devel-core') archs=('i686' 'x86_64') +up2date="lynx -dump $url | grep 'The latest release' | sed -e 's/.*ccache \(.*\)\..*/\1/'" source=(http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz \ README.Frugalware) -up2date="lynx -dump $url | grep 'The latest release' | sed -e 's/.*ccache \(.*\)\..*/\1/'" +sha1sums=('9833ec13de9b90d5409e60d679ac681115ef465e' \ + '47059d0eead0bc7cc0b47c5c242b9f2304966d27') build() { Fbuild @@ -20,11 +22,8 @@ build() { do Fln /usr/bin/ccache /usr/lib/ccache/bin/$i done - install -d -m 2775 -g users $Fdestdir/var/cache/ccache/ + install -d -m 2775 -g 48 $Fdestdir/var/cache/ccache/ Fdoc README.Frugalware } # optimization OK - -sha1sums=('9833ec13de9b90d5409e60d679ac681115ef465e' \ - '7aa44e5c0287651e1cdf6e82d3cefc0e7893299e') diff --git a/source/devel/ccache/ccache.install b/source/devel/ccache/ccache.install new file mode 100644 index 0000000..f76aeba --- /dev/null +++ b/source/devel/ccache/ccache.install @@ -0,0 +1,24 @@ +post_install() +{ + if ! grep -q '^ccache:' /etc/group ; then + groupadd -g 48 ccache + fi + if ! grep -q '^ccache:' /etc/passwd ; then + useradd -u 48 -g 48 ccache + fi +} + +post_upgrade() +{ + post_install $1 +} + +pre_remove() { + userdel ccache + groupdel ccache +} + +op=$1 +shift + +$op $* _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
