IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=3.3 PROGNAME="bittorrent $VERSION" DESC="\ bittorrent (BitTorrent file distribution utility) \n\ \n\ BitTorrent is a file distribution utility which utilizes the upload \n\ capacity of machines which are downloading a file to help distribute \n\ it to other downloading machines. This makes it possible to provide \n\ large files (such as the Slackware Linux ISO images) to many people \n\ without the usual problem of insufficient bandwidth. The more \n\ downloaders, the more bandwidth. Problem solved. \n\ \n\ Bram Cohen is the genius behind BitTorrent." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/bittorrent PKGNAME=bittorrent-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/BitTorrent-$VERSION.tar.gz cd BitTorrent-$VERSION/ chown -R root.root . find . -perm 775 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; } install() { python setup.py build install --root=/package-bittorrent # Add btdownloadxterm.sh (this just opens an xterm for btdownloadcurses.py so # that it can work as a MIME handler from mailcap): mkdir -p /package-bittorrent/usr/bin zcat $CWD/btdownloadxterm.sh.gz > /package-bittorrent/usr/bin/btdownloadxterm.sh mkdir -p /package-bittorrent/usr/doc/BitTorrent-$VERSION cp -a BUILD.windows.txt INSTALL.unix.txt LICENSE.txt README.txt credits.txt \ /package-bittorrent/usr/doc/BitTorrent-$VERSION } attributes() { chown -R root.bin $PKG/package-bittorrent/usr/bin chmod 755 $PKG/package-bittorrent/usr/bin/btdownloadxterm.sh } special() { cd $PKG mv package-bittorrent/* ./ rmdir package-bittorrent cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-bittorrent/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new zcat $CWD/doinst.sh >> doinst.sh }