IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.14 PROGNAME="distcc $VERSION" DESC="\ distcc (distributed C/C++ compiler/daemon) \n\ \n\ distcc allows compilation of C code to be distributed across several \n\ machines on a network. distcc should always generate the same results \n\ as a local compile, is simple to install and use, and is often \n\ significantly faster than a local compile. \n\ \n\ IMPORTANT SECURITY NOTE: distccd should only run on trusted networks. \n\ \n\ distcc was written by Martin Pool." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.samba.org/pub/distcc/ PKGNAME=distcc-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/distcc-$VERSION.tar.bz2 cd distcc-$VERSION/ chown -R root.root . ./configure --prefix=/usr \ --datadir=/usr/share/distcc \ --sysconfdir=/etc \ --with-gnome \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { # The install command looks wrong, but DESTDIR gets added in front of # the docdir and pkgdocdir values as well. make install DESTDIR=/package-distcc docdir=/usr/doc/distcc-$VERSION mkdir -p /package-distcc/usr/share/applications ( cd /package-distcc/usr/share/applications ln -sf /usr/share/distcc/distccmon-gnome.desktop . ) ( cd /package-distcc/usr/man/man1 rm -f *.gz gzip -9 *.1 ) } attributes() { chown -R root.bin $PKG/package-distcc/usr/bin/ } special() { cd $PKG mv package-distcc/* ./ rmdir package-distcc cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-distcc/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }