IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.10 PROGNAME="nc $VERSION" DESC="\ nc (Netcat network utility) \n\ \n\ Netcat, or "nc" as the actual program is named, is a simple utility \n\ which reads and writes data across network connections, using TCP or \n\ UDP protocol. It is designed to be a reliable "back-end" tool that \n\ can be used directly or easily driven by other programs and scripts. \n\ At the same time, it is a feature-rich network debugging and \n\ exploration tool, since it can create almost any kind of connection \n\ you would need and has several interesting built-in capabilities. \n\ Netcat was written by *Hobbit* , and is a product \n\ of Avian Research." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/nc PKGNAME=nc-$VERSION-s390-$BUILD TAG=OPT compile() { mkdir nc-$VERSION/ cd nc-$VERSION/ tar -zxvf $CWD/nc110.tgz chown -R root.root . zcat $CWD/nc-110-21.diff.gz | patch -p1 zcat $CWD/nc.diff.gz | patch -p1 # This next patch takes off the x86-specific changes to the Makefile zcat $CWD/nc.revert.diff.gz | patch -R -p1 make linux } install() { mkdir -p /package-nc/usr/bin cp -p nc /package-nc/usr/bin/nc mkdir -p /package-nc/usr/man/man1 cat debian/nc.1 | gzip -9c > /package-nc/usr/man/man1/nc.1.gz mkdir -p /package-nc/usr/doc/nc-1.10 cp -a Changelog README data netcat.blurb scripts /package-nc/usr/doc/nc-1.10 } attributes() { chown -R root.bin $PKG/package-nc/usr/bin/ chmod 755 $PKG/package-nc/usr/doc/nc-1.10/scripts/[a-z]* } special() { cd $PKG mv package-nc/* ./ rmdir package-nc cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-nc/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }