blob: 2cd676f468c838011b15c148afc398708e5e5395 (
plain)
1 # Description: A tool to distribute compilations.
2 # URL: https://github.com/distcc/distcc
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Optional: gtk avahi
5
6 name=distcc
7 version=3.4
8 release=1
9 source=(https://github.com/distcc/distcc/releases/download/v$version/$name-$version.tar.gz
10 distccd distccd.conf)
11
12 build() {
13 cd $name-$version
14
15 prt-get isinst gtk3 || PKGMK_DISTCC+=' --without-gtk'
16 prt-get isinst popt || PKGMK_DISTCC+=' --with-included-popt'
17
18 ./autogen.sh
19
20 ./configure ${PKGMK_DISTCC} \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --enable-rfc2553
24
25 make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python3
26 make DESTDIR=$PKG INCLUDESERVER_PYTHON=/usr/bin/python3 install
27
28 # distccd should be in sbin
29 mv $PKG/usr/bin/distccd $PKG/usr/sbin/distccd
30
31 # install service
32 install -m 0755 -D $SRC/distccd $PKG/etc/rc.d/distccd
33
34 # create the masquerade directory
35 install -d $PKG/usr/lib/distcc
36 cd $PKG/usr/lib/distcc
37 for c in cc c++ gcc g++ cpp; do
38 ln -s ../../bin/distcc $c
39 done
40 cd -
41
42 # install config file
43 install -D -m 0644 $SRC/distccd.conf $PKG/etc/distccd.conf
44
45 # create rundir
46 install -d $PKG/var/run/distcc
47 chown distcc:distcc $PKG/var/run/distcc
48
49 # cleanup
50 rm -r $PKG/usr/share/doc $PKG/etc/distcc $PKG/etc/default
51 rm $PKG/usr/sbin/update-distcc-symlinks
52 }
|