IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.7.0 PROGNAME="iptraf $VERSION" DESC="\ iptraf \n\ \n\ IPTraf is a console-based network monitoring program for Linux that \n\ displays information about IP traffic such as: \n\ \n\ Current TCP connections, types of IP packets, packet and byte \n\ counts, TCP/UDP counts by ports, packet counts by packet sizes, \n\ packet and byte counts by IP address, interface activity, flag \n\ statuses on TCP packets, and other LAN station statistics." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/iptraf PKGNAME=iptraf-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/iptraf-$VERSION.tar.gz cd iptraf-$VERSION/ chown -R root.root . zcat $CWD/iptraf.paths.diff.gz | patch -p1 cat $CWD/makefile.diff | patch -p1 cd src make } install() { mkdir -p /package-iptraf/usr/sbin echo n | make install DESTDIR=/package-iptraf cd ../ mkdir -p /package-iptraf/usr/doc/iptraf-$VERSION cp -a CHANGES Documentation FAQ INSTALL LICENSE README README.contact \ README.interfaces README.platforms README.rvnamed RELEASE-NOTES \ /package-iptraf/usr/doc/iptraf-$VERSION ( mkdir -p /package-iptraf/usr/man/man8 cd /package-iptraf/usr/doc/iptraf-$VERSION/Documentation mv iptraf.8 rvnamed.8 /package-iptraf/usr/man/man8/ rm manual.template.gz gzip -9 /package-iptraf/usr/man/man8/*.8 ) } attributes() { chown -R root.bin $PKG/package-iptraf/usr/sbin/ chmod 755 $PKG/package-iptraf/usr/sbin/* } special() { cd $PKG mv package-iptraf/* ./ rmdir package-iptraf cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-iptraf/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }