summaryrefslogtreecommitdiff
path: root/distcc/Pkgfile
blob: 881117d5f309cfa67c8be6cba2fb391a68e02a71 (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: avahi gtk3
    5 
    6 name=distcc
    7 version=3.4
    8 release=3
    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 	sed -i 's/ install-gnome-data//g' Makefile.in
   21 
   22 	./configure ${PKGMK_DISTCC} \
   23 		--prefix=/usr \
   24 		--sysconfdir=/etc \
   25 		--runstatedir=/run \
   26 		--enable-rfc2553
   27 
   28 	make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python3
   29 	make DESTDIR=$PKG INCLUDESERVER_PYTHON=/usr/bin/python3 install
   30 
   31 	# distccd should be in sbin
   32 	mv $PKG/usr/bin/distccd $PKG/usr/sbin/distccd
   33 
   34 	# install service
   35 	install -m 0755 -D $SRC/distccd $PKG/etc/rc.d/distccd
   36 
   37 	# create the masquerade directory
   38 	install -d $PKG/usr/lib/distcc
   39 	cd $PKG/usr/lib/distcc
   40 	for c in cc c++ gcc g++ cpp; do
   41 		ln -s ../../bin/distcc $c
   42 	done
   43 	cd -
   44 
   45 	# install config file
   46 	install -D -m 0644 $SRC/distccd.conf $PKG/etc/distccd.conf
   47 
   48 	# cleanup
   49 	rm -r $PKG/usr/share/doc $PKG/etc/distcc $PKG/etc/default
   50 	rm $PKG/usr/sbin/update-distcc-symlinks
   51 }

Generated by cgit