2007-07-31 21:39:17 +10:00
|
|
|
# Description: A tool to distribute compilations.
|
2021-03-08 16:24:44 +11:00
|
|
|
# URL: https://github.com/distcc/distcc
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-03-08 16:24:44 +11:00
|
|
|
# Optional: gtk avahi
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
name=distcc
|
2021-05-16 17:17:30 +10:00
|
|
|
version=3.4
|
2021-03-08 16:24:44 +11:00
|
|
|
release=1
|
2019-08-19 23:29:14 +10:00
|
|
|
source=(https://github.com/distcc/distcc/releases/download/v$version/$name-$version.tar.gz
|
2021-03-08 16:24:44 +11:00
|
|
|
distccd distccd.conf)
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
build() {
|
2019-08-19 23:29:14 +10:00
|
|
|
cd $name-$version
|
2016-06-12 16:03:48 +10:00
|
|
|
|
2021-03-08 16:24:44 +11:00
|
|
|
prt-get isinst gtk3 || PKGMK_DISTCC+=' --without-gtk'
|
|
|
|
prt-get isinst popt || PKGMK_DISTCC+=' --with-included-popt'
|
2020-07-15 23:29:49 +10:00
|
|
|
|
2019-08-19 23:29:14 +10:00
|
|
|
./autogen.sh
|
2007-07-31 21:39:17 +10:00
|
|
|
|
2019-08-19 23:29:14 +10:00
|
|
|
./configure ${PKGMK_DISTCC} \
|
2007-04-11 05:56:44 +10:00
|
|
|
--prefix=/usr \
|
2019-08-19 23:29:14 +10:00
|
|
|
--sysconfdir=/etc \
|
2021-03-08 16:24:44 +11:00
|
|
|
--enable-rfc2553
|
2007-04-11 05:56:44 +10:00
|
|
|
|
2021-03-08 16:24:44 +11:00
|
|
|
make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python3
|
|
|
|
make DESTDIR=$PKG INCLUDESERVER_PYTHON=/usr/bin/python3 install
|
2009-01-09 19:04:37 +11:00
|
|
|
|
|
|
|
# distccd should be in sbin
|
|
|
|
mv $PKG/usr/bin/distccd $PKG/usr/sbin/distccd
|
|
|
|
|
2013-04-28 13:17:34 +10:00
|
|
|
# install service
|
2009-01-09 19:04:37 +11:00
|
|
|
install -m 0755 -D $SRC/distccd $PKG/etc/rc.d/distccd
|
2008-05-16 21:57:46 +10:00
|
|
|
|
2013-04-28 13:17:34 +10:00
|
|
|
# create the masquerade directory
|
2008-05-16 21:57:46 +10:00
|
|
|
install -d $PKG/usr/lib/distcc
|
2008-05-18 02:21:39 +10:00
|
|
|
cd $PKG/usr/lib/distcc
|
2013-04-28 13:17:34 +10:00
|
|
|
for c in cc c++ gcc g++ cpp; do
|
2008-05-18 02:21:39 +10:00
|
|
|
ln -s ../../bin/distcc $c
|
2008-05-16 21:57:46 +10:00
|
|
|
done
|
2008-05-18 02:21:39 +10:00
|
|
|
cd -
|
2013-04-28 13:17:34 +10:00
|
|
|
|
2021-03-08 16:24:44 +11:00
|
|
|
# install config file
|
|
|
|
install -D -m 0644 $SRC/distccd.conf $PKG/etc/distccd.conf
|
|
|
|
|
|
|
|
# create rundir
|
|
|
|
install -d $PKG/var/run/distcc
|
|
|
|
chown distcc:distcc $PKG/var/run/distcc
|
|
|
|
|
2019-08-19 23:29:14 +10:00
|
|
|
# cleanup
|
|
|
|
rm -r $PKG/usr/share/doc $PKG/etc/distcc $PKG/etc/default
|
2021-03-08 16:24:44 +11:00
|
|
|
rm $PKG/usr/sbin/update-distcc-symlinks
|
2007-04-11 05:56:44 +10:00
|
|
|
}
|