summaryrefslogtreecommitdiffstats
path: root/distcc/Pkgfile
blob: b4088581d227967e617bbb3db2985c638a17a6e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Description: Compilateur C, C++ et Objective-C distribué.
# URL: http://code.google.com/p/distcc/
# Packager: piernov <piernov@piernov.org>
# Maintainer: piernov <piernov@piernov.org>

name=distcc
version=3.1
release=1
source=(http://distcc.googlecode.com/files/$name-$version.tar.bz2
	distcc.sh
	distccd.rc
	distccd.conf)

build() {
	cd $name-$version
	PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--without-avahi \
		--without-gtk
	make INCLUDESERVER_PYTHON=/usr/bin/python2 WERROR_CFLAGS=
	make INCLUDESERVER_PYTHON=/usr/bin/python2 DESTDIR=$PKG install

	mkdir -p $PKG/usr/lib/distcc/bin
	cd $PKG/usr/lib/distcc/bin
	for f in cc gcc c++ g++; do ln -s ../../bin/distcc $f; done

	install -D -m644 $SRC/distccd.conf $PKG/etc/sysconfig/distccd
	install -D -m755 $SRC/distccd.rc $PKG/etc/rc.d/init.d/distccd
	install -D -m755 $SRC/distcc.sh $PKG/etc/profile.d/distcc.sh

	mkdir -p $PKG/etc/rc.d/{rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d}
	for i in 0 1 2 6
		do ln -s ../init.d/distccd $PKG/etc/rc.d/rc${i}.d/K44distccd
	done
	for i in 3 4 5
		do ln -s ../init.d/distccd $PKG/etc/rc.d/rc${i}.d/S33distccd
	done
}