From dbb1cbaf795d75e6cd98efa80ebe4979891adeb1 Mon Sep 17 00:00:00 2001 From: piernov Date: Thu, 12 Jul 2012 22:12:45 +0200 Subject: ccache 3.1.7-1 ajout port --- ccache/.footprint.i686 | 20 ++++++++++++++++++++ ccache/.footprint.x86_64 | 20 ++++++++++++++++++++ ccache/.md5sum.i686 | 2 ++ ccache/.md5sum.x86_64 | 2 ++ ccache/Pkgfile | 27 +++++++++++++++++++++++++++ ccache/ccache.sh | 6 ++++++ ccache/post-install | 7 +++++++ ccache/pre-install | 2 ++ 8 files changed, 86 insertions(+) create mode 100644 ccache/.footprint.i686 create mode 100644 ccache/.footprint.x86_64 create mode 100644 ccache/.md5sum.i686 create mode 100644 ccache/.md5sum.x86_64 create mode 100644 ccache/Pkgfile create mode 100644 ccache/ccache.sh create mode 100644 ccache/post-install create mode 100644 ccache/pre-install (limited to 'ccache') diff --git a/ccache/.footprint.i686 b/ccache/.footprint.i686 new file mode 100644 index 000000000..c71f8eaf8 --- /dev/null +++ b/ccache/.footprint.i686 @@ -0,0 +1,20 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/profile.d/ +-rwxr-xr-x root/root etc/profile.d/ccache.sh +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/ccache +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/ccache/ +drwxr-xr-x root/root usr/lib/ccache/bin/ +lrwxrwxrwx root/root usr/lib/ccache/bin/c++ -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/bin/cc -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/bin/g++ -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/bin/gcc -> ../../bin/ccache +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/ccache.1.gz +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxrwsr-x root/ccache var/lib/ccache/ diff --git a/ccache/.footprint.x86_64 b/ccache/.footprint.x86_64 new file mode 100644 index 000000000..c71f8eaf8 --- /dev/null +++ b/ccache/.footprint.x86_64 @@ -0,0 +1,20 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/profile.d/ +-rwxr-xr-x root/root etc/profile.d/ccache.sh +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/ccache +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/ccache/ +drwxr-xr-x root/root usr/lib/ccache/bin/ +lrwxrwxrwx root/root usr/lib/ccache/bin/c++ -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/bin/cc -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/bin/g++ -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/bin/gcc -> ../../bin/ccache +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/ccache.1.gz +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxrwsr-x root/ccache var/lib/ccache/ diff --git a/ccache/.md5sum.i686 b/ccache/.md5sum.i686 new file mode 100644 index 000000000..89bd8c36a --- /dev/null +++ b/ccache/.md5sum.i686 @@ -0,0 +1,2 @@ +80a698c22d0b06b19c88ac58e8d8b632 ccache-3.1.7.tar.xz +423e41422c6db13661551429389519fa ccache.sh diff --git a/ccache/.md5sum.x86_64 b/ccache/.md5sum.x86_64 new file mode 100644 index 000000000..89bd8c36a --- /dev/null +++ b/ccache/.md5sum.x86_64 @@ -0,0 +1,2 @@ +80a698c22d0b06b19c88ac58e8d8b632 ccache-3.1.7.tar.xz +423e41422c6db13661551429389519fa ccache.sh diff --git a/ccache/Pkgfile b/ccache/Pkgfile new file mode 100644 index 000000000..da023b580 --- /dev/null +++ b/ccache/Pkgfile @@ -0,0 +1,27 @@ +# Description: Cache de compilation C/C++ +# URL: http://ccache.samba.org/ +# Packager: piernov +# Maintainer: piernov + +name=ccache +version=3.1.7 +release=1 +source=(http://samba.org/ftp/$name/$name-$version.tar.xz + ccache.sh) + +build() { + cd $name-$version + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + + mkdir -p $PKG/usr/lib/ccache/bin + cd $PKG/usr/lib/ccache/bin + for f in cc gcc c++ g++; do ln -s ../../bin/ccache $f; done + + install -D -m755 $SRC/ccache.sh $PKG/etc/profile.d/ccache.sh + + install -d -m775 $PKG/var/lib/ccache + chmod g+s $PKG/var/lib/ccache + chown :ccache $PKG/var/lib/ccache +} diff --git a/ccache/ccache.sh b/ccache/ccache.sh new file mode 100644 index 000000000..73b439ba4 --- /dev/null +++ b/ccache/ccache.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if [ -d /usr/lib/ccache/bin ] && [ ! -d /usr/lib/colorgcc/bin ]; then + pathprepend /usr/lib/ccache/bin +fi +export CCACHE_DIR=/var/lib/ccache +export CCACHE_UMASK=002 diff --git a/ccache/post-install b/ccache/post-install new file mode 100644 index 000000000..5cd377549 --- /dev/null +++ b/ccache/post-install @@ -0,0 +1,7 @@ +if [ -f /etc/colorgcc/colorgccrc ]; then + for i in g++ gcc c++ cc; do + sed "s|${i}:.*|${i}: ccache /usr/bin/${i}|g" -i /etc/colorgcc/colorgccrc + done +fi + +for user in `getent group admin | sed "s/.*\://" | sed "s/,/ /g"`; do usermod $user -a -G ccache; done diff --git a/ccache/pre-install b/ccache/pre-install new file mode 100644 index 000000000..7da5160b9 --- /dev/null +++ b/ccache/pre-install @@ -0,0 +1,2 @@ +#!/bin/sh +getent group ccache > /dev/null || /usr/sbin/groupadd -g 38 ccache -- cgit v1.2.3-54-g00ecf