2007-07-31 21:39:17 +10:00
|
|
|
# Description: A tool to distribute compilations.
|
2009-01-09 19:04:37 +11:00
|
|
|
# URL: http://distcc.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2007-04-11 05:56:44 +10:00
|
|
|
# Packager: Johannes Winkelmann, jw at tks6 dot net
|
2013-04-28 13:17:34 +10:00
|
|
|
# Depends on: popt python
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
name=distcc
|
2009-01-09 19:04:37 +11:00
|
|
|
version=3.1
|
2013-04-28 13:17:34 +10:00
|
|
|
release=3
|
2009-01-09 19:04:37 +11:00
|
|
|
source=(http://distcc.googlecode.com/files/$name-$version.tar.bz2
|
|
|
|
distccd)
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
build() {
|
2009-01-09 19:04:37 +11:00
|
|
|
cd $name-$version
|
2007-07-31 21:39:17 +10:00
|
|
|
|
2007-04-11 05:56:44 +10:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2013-04-28 13:17:34 +10:00
|
|
|
--mandir=/usr/man \
|
2007-04-11 05:56:44 +10:00
|
|
|
--disable-nls \
|
2007-07-31 21:39:17 +10:00
|
|
|
--without-gnome \
|
2013-02-24 07:58:52 +11:00
|
|
|
--without-gtk \
|
|
|
|
--disable-Werror
|
2007-04-11 05:56:44 +10:00
|
|
|
|
|
|
|
make
|
2013-04-28 13:17:34 +10:00
|
|
|
make DESTDIR=$PKG install
|
2009-01-09 19:04:37 +11:00
|
|
|
|
|
|
|
# distccd should be in sbin
|
|
|
|
install -d $PKG/usr/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
|
|
|
|
|
|
|
rm -rf $PKG/usr/share/doc $PKG/usr/etc/default $PKG/usr/etc/distcc
|
|
|
|
rmdir $PKG/usr/etc $PKG/usr/share
|
2007-04-11 05:56:44 +10:00
|
|
|
}
|