import distcc and distcc-monitor
This commit is contained in:
parent
169a1996bc
commit
7309900a12
6
distcc-monitor/.footprint
Normal file
6
distcc-monitor/.footprint
Normal file
@ -0,0 +1,6 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/distccmon-gnome
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/distcc/
|
||||
-rw-r--r-- root/root usr/share/distcc/distccmon-gnome-icon.png
|
1
distcc-monitor/.md5sum
Normal file
1
distcc-monitor/.md5sum
Normal file
@ -0,0 +1 @@
|
||||
a55b547d4ff62d8500e290b82671db50 distcc-2.18.tar.bz2
|
24
distcc-monitor/Pkgfile
Normal file
24
distcc-monitor/Pkgfile
Normal file
@ -0,0 +1,24 @@
|
||||
# $Id: Pkgfile,v 1.3 2005/03/12 15:25:49 jw Exp $
|
||||
# Packager:
|
||||
# Maintainer: Johannes Winkelmann, jw at tks6 dot net
|
||||
# Description: A graphical monitor for distcc
|
||||
# URL: http://distcc.samba.org
|
||||
# Depends: distcc gtk
|
||||
|
||||
|
||||
name=distcc-monitor
|
||||
version=2.18
|
||||
release=1
|
||||
source=(http://distcc.samba.org/ftp/distcc/distcc-${version}.tar.bz2)
|
||||
|
||||
build() {
|
||||
cd distcc-$version
|
||||
./configure --prefix=/usr --disable-nls --with-gtk #/--with-gnome
|
||||
make distccmon-gnome
|
||||
make distccmon-gnome DESTDIR=$PKG install
|
||||
|
||||
rm -r $PKG/usr/{share/doc/,man,bin/distcc{,d,mon-text}}
|
||||
|
||||
# gnome users might want to comment the following:
|
||||
rm $PKG/usr/share/distcc/distccmon-gnome.desktop
|
||||
}
|
20
distcc/.footprint
Normal file
20
distcc/.footprint
Normal file
@ -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/
|
2
distcc/.md5sum
Normal file
2
distcc/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
0d6b80a1efc3a3d816c4f4175f63eaa2 distcc-2.18.3.tar.bz2
|
||||
3e6bdcea02d0ec785f2cfed074bc5614 distccd
|
29
distcc/Pkgfile
Normal file
29
distcc/Pkgfile
Normal file
@ -0,0 +1,29 @@
|
||||
# $Id: Pkgfile,v 1.9 2005/05/12 14:46:35 jw Exp $
|
||||
# Packager:
|
||||
# Maintainer: Johannes Winkelmann, jw at tks6 dot net
|
||||
# Description: A tool to distribute compilations
|
||||
# URL: http://distcc.samba.org
|
||||
|
||||
name=distcc
|
||||
version=2.18.3
|
||||
release=2
|
||||
source=(http://${name}.samba.org/ftp/${name}/${name}-${version}.tar.bz2 \
|
||||
distccd)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
./configure --prefix=/usr --disable-nls --without-gtk
|
||||
make
|
||||
make prefix=$PKG/usr install
|
||||
|
||||
mkdir -p $PKG/usr/lib/$name
|
||||
for c in cc c++ gcc g++; do
|
||||
cd $PKG/usr/lib/$name && ln -s ../../bin/distcc $c
|
||||
done
|
||||
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
install -m 755 $SRC/distccd $PKG/etc/rc.d/distccd
|
||||
|
||||
rm -rf $PKG/usr/share/doc
|
||||
rm -rf $PKG/usr/info/
|
||||
}
|
17
distcc/README
Normal file
17
distcc/README
Normal file
@ -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
|
||||
----
|
31
distcc/distccd
Normal file
31
distcc/distccd
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user