Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a9192b42dd57efba0dd3280be6a7b0e16e113838
commit a9192b42dd57efba0dd3280be6a7b0e16e113838 Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Sun Jun 8 13:49:31 2008 +0200 ccache-2.4-7-i686 - moved to extra diff --git a/source/devel-extra/ccache/FrugalBuild b/source/devel-extra/ccache/FrugalBuild new file mode 100644 index 0000000..1d5435f --- /dev/null +++ b/source/devel-extra/ccache/FrugalBuild @@ -0,0 +1,29 @@ +# Compiling Time: 0.01 SBU +# Maintainer: Bence Nagy <[EMAIL PROTECTED]> + +pkgname=ccache +pkgver=2.4 +pkgrel=7 +pkgdesc="A fast compiler cache" +url="http://ccache.samba.org" +depends=('glibc>=2.7-3') +groups=('devel-extra' '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) +sha1sums=('9833ec13de9b90d5409e60d679ac681115ef465e' \ + '533569cbe2b4cdfb27da9a58594f3eed670a269a') + +build() { + Fbuild + Fmkdir /usr/lib/ccache/bin + for i in {$CHOST-,}{cc,c++,gcc,g++} + do + Fln /usr/bin/ccache /usr/lib/ccache/bin/$i + done + install -d -m 2775 -g 48 $Fdestdir/var/cache/ccache/ || Fdie + Fdoc README.Frugalware +} + +# optimization OK diff --git a/source/devel-extra/ccache/README.Frugalware b/source/devel-extra/ccache/README.Frugalware new file mode 100644 index 0000000..5751e43 --- /dev/null +++ b/source/devel-extra/ccache/README.Frugalware @@ -0,0 +1,27 @@ +After you installed `ccache`, it won't be enabled by default. + +First, you need to determine who is allowed to use `ccache`. You have to +add each user to the `ccache` group. If you want to allow using `ccache` +from chrooted builds, then you need to add the `fst` user: + +---- +# usermod -a -G ccache fst +---- + +Second, you need to somehow let the build system to use `ccache`, and +not the compiler directly. If you use `makepkg`, this is enabled by +default (you can disable it with the `-B` option). If you build +manually, then you are on your own, though usually there are two ways to +do so: + +- Tell the configure script to use a different compiler: + +-------------------------------- +$ CC=/usr/bin/ccache ./configure +-------------------------------- + +- Modify path to use the fake compiler provided by `ccache`: + +------------------------------------- +export PATH=/usr/lib/ccache/bin:$PATH +------------------------------------- diff --git a/source/devel-extra/ccache/ccache.install b/source/devel-extra/ccache/ccache.install new file mode 100644 index 0000000..09340de --- /dev/null +++ b/source/devel-extra/ccache/ccache.install @@ -0,0 +1,20 @@ +post_install() +{ + if ! grep -q '^ccache:' /etc/group ; then + groupadd -g 48 ccache + fi +} + +post_upgrade() +{ + post_install $1 +} + +pre_remove() { + groupdel ccache +} + +op=$1 +shift + +$op $* diff --git a/source/devel/ccache/FrugalBuild b/source/devel/ccache/FrugalBuild deleted file mode 100644 index a5a8f9c..0000000 --- a/source/devel/ccache/FrugalBuild +++ /dev/null @@ -1,29 +0,0 @@ -# Compiling Time: 0.01 SBU -# Maintainer: Bence Nagy <[EMAIL PROTECTED]> - -pkgname=ccache -pkgver=2.4 -pkgrel=7 -pkgdesc="A fast compiler cache" -url="http://ccache.samba.org" -depends=('glibc>=2.7-3') -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) -sha1sums=('9833ec13de9b90d5409e60d679ac681115ef465e' \ - '533569cbe2b4cdfb27da9a58594f3eed670a269a') - -build() { - Fbuild - Fmkdir /usr/lib/ccache/bin - for i in {$CHOST-,}{cc,c++,gcc,g++} - do - Fln /usr/bin/ccache /usr/lib/ccache/bin/$i - done - install -d -m 2775 -g 48 $Fdestdir/var/cache/ccache/ || Fdie - Fdoc README.Frugalware -} - -# optimization OK diff --git a/source/devel/ccache/README.Frugalware b/source/devel/ccache/README.Frugalware deleted file mode 100644 index 5751e43..0000000 --- a/source/devel/ccache/README.Frugalware +++ /dev/null @@ -1,27 +0,0 @@ -After you installed `ccache`, it won't be enabled by default. - -First, you need to determine who is allowed to use `ccache`. You have to -add each user to the `ccache` group. If you want to allow using `ccache` -from chrooted builds, then you need to add the `fst` user: - ----- -# usermod -a -G ccache fst ----- - -Second, you need to somehow let the build system to use `ccache`, and -not the compiler directly. If you use `makepkg`, this is enabled by -default (you can disable it with the `-B` option). If you build -manually, then you are on your own, though usually there are two ways to -do so: - -- Tell the configure script to use a different compiler: - --------------------------------- -$ CC=/usr/bin/ccache ./configure --------------------------------- - -- Modify path to use the fake compiler provided by `ccache`: - -------------------------------------- -export PATH=/usr/lib/ccache/bin:$PATH -------------------------------------- diff --git a/source/devel/ccache/ccache.install b/source/devel/ccache/ccache.install deleted file mode 100644 index 09340de..0000000 --- a/source/devel/ccache/ccache.install +++ /dev/null @@ -1,20 +0,0 @@ -post_install() -{ - if ! grep -q '^ccache:' /etc/group ; then - groupadd -g 48 ccache - fi -} - -post_upgrade() -{ - post_install $1 -} - -pre_remove() { - groupdel ccache -} - -op=$1 -shift - -$op $* _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
