contrib/distcc/Pkgfile

51 lines
1.1 KiB
Plaintext
Raw Normal View History

# Description: A tool to distribute compilations.
2009-01-09 09:04:37 +01:00
# URL: http://distcc.org/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2007-04-10 21:56:44 +02:00
# Packager: Johannes Winkelmann, jw at tks6 dot net
# Optional: python
2007-04-10 21:56:44 +02:00
name=distcc
2009-01-09 09:04:37 +01:00
version=3.1
release=5
2009-01-09 09:04:37 +01:00
source=(http://distcc.googlecode.com/files/$name-$version.tar.bz2
distccd)
2007-04-10 21:56:44 +02:00
build() {
2009-01-09 09:04:37 +01:00
cd $name-$version
2007-04-10 21:56:44 +02:00
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
2007-04-10 21:56:44 +02:00
--disable-nls \
--without-gnome \
--without-gtk \
--disable-Werror \
--with-included-popt
2007-04-10 21:56:44 +02:00
make
2013-04-28 05:17:34 +02:00
make DESTDIR=$PKG install
2009-01-09 09:04:37 +01:00
# distccd should be in sbin
install -d $PKG/usr/sbin
mv $PKG/usr/bin/distccd $PKG/usr/sbin/distccd
2013-04-28 05:17:34 +02:00
# install service
2009-01-09 09:04:37 +01:00
install -m 0755 -D $SRC/distccd $PKG/etc/rc.d/distccd
2013-04-28 05:17:34 +02:00
# create the masquerade directory
install -d $PKG/usr/lib/distcc
cd $PKG/usr/lib/distcc
2013-04-28 05:17:34 +02:00
for c in cc c++ gcc g++ cpp; do
ln -s ../../bin/distcc $c
done
cd -
2013-04-28 05:17:34 +02:00
rm -rf $PKG/usr/share/doc $PKG/usr/etc/default $PKG/usr/etc/distcc
rmdir $PKG/usr/etc
# python is required for pump mode
if [ "$(prt-get isinst python)" = 'package python is not installed' ]; then
rm $PKG/usr/share/man/man1/{pump,include_server}.1
fi
2007-04-10 21:56:44 +02:00
}