summaryrefslogtreecommitdiffstats
path: root/ccache
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.servegame.org>2012-07-12 22:12:45 +0200
committerpiernov <piernov@piernov.servegame.org>2012-07-12 22:12:45 +0200
commitdbb1cbaf795d75e6cd98efa80ebe4979891adeb1 (patch)
tree89afaa2007720a4a7b3a9260a5edcb5c3e060afd /ccache
parentd2dbf5f8d8cc3dbf3338abc52724d5fe91cabea3 (diff)
downloadnutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.tar.gz
nutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.tar.bz2
nutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.tar.xz
nutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.zip
ccache 3.1.7-1 ajout port
Diffstat (limited to 'ccache')
-rw-r--r--ccache/.footprint.i68620
-rw-r--r--ccache/.footprint.x86_6420
-rw-r--r--ccache/.md5sum.i6862
-rw-r--r--ccache/.md5sum.x86_642
-rw-r--r--ccache/Pkgfile27
-rw-r--r--ccache/ccache.sh6
-rw-r--r--ccache/post-install7
-rw-r--r--ccache/pre-install2
8 files changed, 86 insertions, 0 deletions
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 <piernov@piernov.org>
+# Maintainer: piernov <piernov@piernov.org>
+
+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