summaryrefslogtreecommitdiff
path: root/distcc
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2007-04-11 05:56:44 +1000
committerDanny Rawlins <romster@shortcircuit.net.au>2007-04-11 05:56:44 +1000
commit20532acb335c17ed8bdbedeed536acc1450beaf8 (patch)
tree539f0e5539b9cfbefd3adbe526b90aa616425b35 /distcc
parent3268450b49053c608898727db1e913e86cd8084a (diff)
downloadcontrib-20532acb335c17ed8bdbedeed536acc1450beaf8.tar.gz
contrib-20532acb335c17ed8bdbedeed536acc1450beaf8.tar.xz
distcc: taken over from opt
Diffstat (limited to 'distcc')
-rw-r--r--distcc/.footprint20
-rw-r--r--distcc/.md5sum2
-rw-r--r--distcc/Pkgfile35
-rw-r--r--distcc/README17
-rw-r--r--distcc/distccd31
5 files changed, 105 insertions, 0 deletions
diff --git a/distcc/.footprint b/distcc/.footprint
new file mode 100644
index 000000000..208cb948a
--- /dev/null
+++ b/distcc/.footprint
@@ -0,0 +1,20 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/distccd
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/distcc
+-rwxr-xr-x root/root usr/bin/distccd
+-rwxr-xr-x root/root usr/bin/distccmon-text
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/distcc/
+lrwxrwxrwx root/root usr/lib/distcc/c++ -> ../../bin/distcc
+lrwxrwxrwx root/root usr/lib/distcc/cc -> ../../bin/distcc
+lrwxrwxrwx root/root usr/lib/distcc/g++ -> ../../bin/distcc
+lrwxrwxrwx root/root usr/lib/distcc/gcc -> ../../bin/distcc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/distcc.1.gz
+-rw-r--r-- root/root usr/man/man1/distccd.1.gz
+-rw-r--r-- root/root usr/man/man1/distccmon-text.1.gz
+drwxr-xr-x root/root usr/share/
diff --git a/distcc/.md5sum b/distcc/.md5sum
new file mode 100644
index 000000000..5811b8ba7
--- /dev/null
+++ b/distcc/.md5sum
@@ -0,0 +1,2 @@
+0d6b80a1efc3a3d816c4f4175f63eaa2 distcc-2.18.3.tar.bz2
+3e6bdcea02d0ec785f2cfed074bc5614 distccd
diff --git a/distcc/Pkgfile b/distcc/Pkgfile
new file mode 100644
index 000000000..f8cc2a134
--- /dev/null
+++ b/distcc/Pkgfile
@@ -0,0 +1,35 @@
+# Description: A tool to distribute compilations
+# URL: http://distcc.samba.org
+# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
+# Packager: Johannes Winkelmann, jw at tks6 dot net
+# Depends on:
+
+name=distcc
+version=2.18.3
+release=2
+source=(http://distcc.samba.org/ftp/distcc/distcc-$version.tar.bz2 \
+ distccd)
+
+build() {
+ cd distcc-$version
+
+ ./configure \
+ --prefix=/usr \
+ --disable-nls \
+ --without-gtk
+
+ make
+ make prefix=$PKG/usr install
+
+ install -d $PKG/usr/lib/distcc
+ for c in cc c++ gcc g++; do
+ cd $PKG/usr/lib/distcc && ln -s ../../bin/distcc $c
+ done
+
+ mkdir -p $PKG/etc/rc.d
+ install -m755 $SRC/distccd $PKG/etc/rc.d/distccd
+
+ rm -rf $PKG/usr/share/doc
+ rm -rf $PKG/usr/info
+}
+
diff --git a/distcc/README b/distcc/README
new file mode 100644
index 000000000..a7496d1e8
--- /dev/null
+++ b/distcc/README
@@ -0,0 +1,17 @@
+POST-INSTALL
+to use distcc, just
+a) export DISTCC_HOSTS to include the compilation hosts
+b) prepend /usr/lib/distcc to your $PATH environment variable.
+ (e.g. in pkgmk.conf)
+c) export MAKEFLAGS=-j<n> where n is a number representing the number of
+ parallel jobs you want
+
+
+DISTCCD SERVICE
+
+There's a service to simplify running distccd. By default, it uses allows connections from '192.168.0.0/24' and runs as user 'nobody'. Both values can be overridden in /etc/rc.conf, like this:
+
+----
+DISTCC_ALLOW=192.168.1.0/24
+DISTCC_USER=otheruser
+----
diff --git a/distcc/distccd b/distcc/distccd
new file mode 100644
index 000000000..21605bf0e
--- /dev/null
+++ b/distcc/distccd
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# /etc/rc.d/distccd: start/stop distcc daemon
+#
+
+. /etc/rc.conf
+if [ -z "$DISTCC_ALLOW" ]; then
+ echo "Please define a range of IPs allowed to connect to this distccd"
+ echo "host in DISTCC_ALLOW in /etc/rc.conf. More detailed information"
+ echo "can be found in distccd's man page."
+ exit -1
+fi
+DISTCC_USER=${DISTCC_USER:=nobody}
+
+case $1 in
+start)
+ /usr/bin/distccd --daemon --user $DISTCC_USER --allow $DISTCC_ALLOW
+ ;;
+stop)
+ killall -q /usr/bin/distccd
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file

Generated by cgit