IGNOREPATH=/home:/var/log:/dev:/boot:/root:/tmp:/usr/local:/mnt:/usr/src:/usr/man STRIPBIN=y STRIPLIB=y VERSION=0.17 PROGNAME="tcpip" DESC="\ tcpip (TCP/IP networking programs and support files) \n\ \n\ This is a set of standard TCP/IP utilities for Linux. Some of these \n\ were written from scratch and some were ported from various sources \n\ such as BSD. Some of the people who helped write and/or port this \n\ code include: H. Peter Anvin, Donald J. Becker, Alan Cox, \n\ David A. Holland, Fred N. van Kempen, Olaf Kirch, H.J. Lu, \n\ Florian La Roche, Mark Shand, Rick Sladkey, Johannes Stille, \n\ Linus Torvalds, Wietse Venema, and Orest Zborowski." BUILD=1 MAINTAINER="Mark Post " PKGNAME=tcpip-$VERSION-s390-$BUILD TAG=REC compile() { echo "+==================+" echo "| tcp_wrappers_7.6 |" echo "+==================+" cd $TMP tar -zxvf $CWD/tcp_wrappers_7.6.tar.gz cd tcp_wrappers-7.6/ sh extract-and-patch.sh cd tcp_wrappers_7.6 make REAL_DAEMON_DIR=/usr/sbin linux echo "+===============+" echo "| icmpinfo-1.11 |" echo "+===============+" cd $TMP rm -rf icmpinfo-1.11/ tar -zxvf $CWD/icmpinfo-1.11.tar.gz cd icmpinfo-1.11/ zcat $CWD/icmpinfo-1.11.diff.gz | patch -p1 --backup zcat $CWD/icmpinfo-1.11.diff2.gz | patch -p1 --backup make echo "+================+" echo "| net-tools-1.60 |" echo "+================+" cd $TMP tar -yxvf $CWD/net-tools-1.60.tar.bz2 cd net-tools-1.60/ zcat $CWD/net-tools.diff.gz | patch -p1 --backup zcat $CWD/net-tools.mii-tool.diff.gz | patch -p1 --backup zcat $CWD/net-tools.mii-tool.sockios.diff.gz | patch -p1 --backup HAVE_IP_TOOLS=1 HAVE_MII=1 make #CC=gcc-2.95.3 echo "+=========+" echo "| netdate |" echo "+=========+" cd $TMP tar -zxvf $CWD/netdate.tar.gz cd netdate/ zcat $CWD/netdate.diff.gz | patch -p1 --backup zcat $CWD/netdate.diff2.gz | patch -p1 --backup make echo "+==================+" echo "| netkit-base-0.17 |" echo "+==================+" cd $TMP tar -zxvf $CWD/netkit-base-0.17.tar.gz cd netkit-base-0.17/ # This is a patch to fix ping times > 1s. zcat $CWD/netkit-base.ping.diff.gz | patch -p1 --verbose --backup --suffix=.orig ./configure --prefix=/usr make echo "+==================+" echo "| biff+comsat-0.17 |" echo "+==================+" cd $TMP tar -zxvf $CWD/biff+comsat-0.17.tar.gz cd biff+comsat-0.17 zcat $CWD/biff+comsat-0.17.diff.gz | patch -p1 zcat $CWD/biff+comsat.offset.diff.gz | patch -p1 zcat $CWD/biff+comsat.badutmp.diff.gz | patch -p1 --verbose ./configure --prefix=/usr make echo "+=================+" echo "| bsd-finger-0.17 |" echo "+=================+" cd $TMP tar -zxvf $CWD/bsd-finger-0.17.tar.gz cd bsd-finger-0.17/ zcat $CWD/bsd-finger-0.17.diff.gz | patch -p1 ./configure --prefix=/usr make echo "+========================+" echo "| netkit-bootparamd-0.17 |" echo "+========================+" cd $TMP tar -zxvf $CWD/netkit-bootparamd-0.17.tar.gz cd netkit-bootparamd-0.17/ ./configure --prefix=/usr make echo "+=================+" echo "| netkit-ftp-0.17 |" echo "+=================+" cd $TMP tar -zxvf $CWD/netkit-ftp-0.17.tar.gz cd netkit-ftp-0.17/ ./configure --prefix=/usr make echo "+===================+" echo "| netkit-ntalk-0.17 |" echo "+===================+" cd $TMP tar -zxvf $CWD/netkit-ntalk-0.17.tar.gz cd netkit-ntalk-0.17/ zcat $CWD/netkit-ntalk-0.17.diff.gz | patch -p1 ./configure --prefix=/usr make # Include old version of 'talk', which works better with # 8-bit character sets: echo "+===================+" echo "| netkit-ntalk-0.11 |" echo "+===================+" cd $TMP tar -zxvf $CWD/netkit-ntalk-0.11.tar.gz cd netkit-ntalk-0.11/ zcat $CWD/netkit-ntalk-0.11.diff.gz | patch -p0 --backup cat $CWD/netkit-ntalk-0.11.announce.c.diff | patch -p1 --backup ./configure --prefix=/usr make echo "+====================+" echo "| netkit-routed-0.17 |" echo "+====================+" cd $TMP tar -zxvf $CWD/netkit-routed-0.17.tar.gz cd netkit-routed-0.17/ zcat $CWD/routed.18.candidate.final.patch.gz | patch -p1 --backup --verbose -E --suffix=.orig zcat $CWD/netkit-routed-0.17.diff.gz | patch -p1 --backup --verbose -E --suffix=.orig ./configure --prefix=/usr make echo "+=================+" echo "| netkit-rsh-0.17 |" echo "+=================+" cd $TMP tar -zxvf $CWD/netkit-rsh-0.17.tar.gz cd netkit-rsh-0.17/ ./configure --prefix=/usr make echo "+====================+" echo "| netkit-rusers-0.17 |" echo "+====================+" cd $TMP tar -zxvf $CWD/netkit-rusers-0.17.tar.gz cd netkit-rusers-0.17/ zcat $CWD/netkit-rusers-0.17.diff.gz | patch -p1 ./configure --prefix=/usr make echo "+===================+" echo "| netkit-rwall-0.17 |" echo "+===================+" cd $TMP tar -zxvf $CWD/netkit-rwall-0.17.tar.gz cd netkit-rwall-0.17/ ./configure --prefix=/usr make echo "+==================+" echo "| netkit-rwho-0.17 |" echo "+==================+" cd $TMP tar -zxvf $CWD/netkit-rwho-0.17.tar.gz cd netkit-rwho-0.17/ zcat $CWD/netkit-rwho-0.17.diff.gz | patch -p1 ./configure --prefix=/usr make echo "+====================+" echo "| netkit-telnet-0.17 |" echo "+====================+" cd $TMP tar -zxvf $CWD/netkit-telnet-0.17.tar.gz cd netkit-telnet-0.17/ zcat $CWD/netkit-telnet-0.17.diff.gz | patch -p1 --verbose --backup --suffix=.orig cat $CWD/netkit-telnet-0.17.diff2 | patch -p1 --verbose --backup --suffix=.orig zcat $CWD/netkit-telnet-0.17-ayt.patch.gz | patch -p1 --verbose --backup --suffix=.orig ./configure --prefix=/usr make # The OpenBSD version of the telnet client is superior. mv telnet telnet-netkit tar -zxvf $CWD/telnet-OpenBSD-20020321.tar.gz zcat $CWD/telnet-OpenBSD-20020321.diff.gz | patch -p1 --verbose --backup --suffix=.orig ( cd telnet ; make ) echo "+===============+" echo "| tftp-hpa-0.36 |" echo "+===============+" cd $TMP tar -yxvf $CWD/tftp-hpa-0.36.tar.bz2 cd tftp-hpa-0.36/ ./configure --prefix=/usr make echo "+===================+" echo "| netkit-timed-0.17 |" echo "+===================+" cd $TMP tar -zxvf $CWD/netkit-timed-0.17.tar.gz cd netkit-timed-0.17/ zcat $CWD/netkit-timed-0.17.diff.gz | patch -p1 --backup --verbose --suffix=.orig -E ./configure --prefix=/usr make echo "+===============+" echo "| netwrite-0.17 |" echo "+===============+" cd $TMP tar -zxvf $CWD/netwrite-0.17.tar.gz cd netwrite-0.17/ zcat $CWD/netwrite-0.17.diff.gz | patch -p1 ./configure --prefix=/usr make # echo "+==============+" # echo "| whois-4.6.9 |" # echo "+==============+" # cd $TMP # tar -zxvf $CWD/whois_4.6.9.tar.gz # cd whois-4.6.9/ # make echo "+========+" echo "| ipmask |" echo "+========+" mkdir $TMP/ipmask cd $TMP/ipmask/ cc -s -O2 -o ipmask $CWD/ipmask.c cat ipmask > $PKG/bin/ipmask # echo "+=================+" # echo "| pcnfsd.93.02.16 |" # echo "+=================+" # cd $TMP # mkdir pcnfsd # cd pcnfsd/ # tar -zxvf $CWD/pcnfsd.93.02.16.tar.gz # zcat $CWD/pcnfsd.93.02.16.diff.new.gz | patch -p1 --backup # make clean # make bsd # echo "+========+" # echo "| bwnfsd |" # echo "+========+" # cd $TMP # tar -zxvf $CWD/bwnfsd.tar.gz # cd bwnfsd/ # zcat $CWD/bwnfsd.diff.gz | patch -p1 --backup # make linux echo "+============+" echo "| mini-inews |" echo "+============+" cd $TMP tar -zxvf $CWD/mini-inews.tar.gz cd inews/ zcat $CWD/mini-inews.diff.gz | patch -p1 -E --verbose --backup make echo "+=========+" echo "| iputils |" echo "+=========+" cd $TMP tar -yxvf $CWD/iputils-ss021109-try.tar.bz2 cd iputils/ chown -R root.root . make echo "+=========+" echo "| ethtool |" echo "+=========+" cd $TMP tar -zxvf $CWD/ethtool-1.8.tar.gz cd ethtool-1.8/ chown -R root.root . ./configure --prefix=/usr make } install(){ mkdir -p /package-tcpip/bin/ \ /package-tcpip/usr/bin/ \ /package-tcpip/usr/doc/ \ /package-tcpip/usr/etc/ \ /package-tcpip/usr/include/ \ /package-tcpip/usr/lib/ \ /package-tcpip/usr/man/ \ /package-tcpip/usr/man/man1/ \ /package-tcpip/usr/man/man3/ \ /package-tcpip/usr/man/man5/ \ /package-tcpip/usr/man/man8/ \ /package-tcpip/usr/sbin/ \ /package-tcpip/usr/share/man/man1 \ /package-tcpip/var/log/setup/ \ /package-tcpip/var/spool/rwho/ ( cd /package-tcpip tar -zxvf $CWD/_tcpip.tar.gz etc/ sbin/netconfig var/log/ ) # # install tcp wrappers # cd $TMP/tcp_wrappers-7.6/tcp_wrappers_7.6/ cp -a libwrap.a /package-tcpip/usr/lib cp -a tcpd.h /package-tcpip/usr/include cp -a safe_finger tcpd tcpdchk tcpdmatch try-from /package-tcpip/usr/sbin cp -a *.3 /package-tcpip/usr/man/man3 cp -a *.5 /package-tcpip/usr/man/man5 cp -a *.8 /package-tcpip/usr/man/man8 mkdir -p /package-tcpip/usr/doc/tcp_wrappers_7.6 cp -a BLURB CHANGES DISCLAIMER README README.NIS \ /package-tcpip/usr/doc/tcp_wrappers_7.6 # # install icmpinfo # cd $TMP/icmpinfo-1.11/ cp -a icmpinfo /package-tcpip/usr/sbin/icmpinfo gzip -9c icmpinfo.man > /package-tcpip/usr/man/man1/icmpinfo.1.gz mkdir -p /package-tcpip/usr/doc/icmpinfo-1.11 cp -a CHANGES CHECKSUMS.asc README TODO \ /package-tcpip/usr/doc/icmpinfo-1.11 # # install net-tools # cd $TMP/net-tools-1.60/ HAVE_IP_TOOLS=1 HAVE_MII=1 make install BASEDIR=/package-tcpip mandir=/usr/man mkdir -p /package-tcpip/usr/doc/net-tools-1.60 cp -a README README.ipv6 /package-tcpip/usr/doc/net-tools-1.60 mv /package-tcpip/sbin/slattach /package-tcpip/usr/sbin rm /package-tcpip/bin/domainname # # install netdate # cd $TMP/netdate/ cp -a netdate /package-tcpip/usr/sbin/netdate cat netdate.8 | gzip -9c > /package-tcpip/usr/man/man8/netdate.8.gz # # install netkit-base-0.17 # cd $TMP/netkit-base-0.17 make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-base-0.17 cp -a README /package-tcpip/usr/doc/netkit-base-0.17 rm /package-tcpip/usr/sbin/inetd /package-tcpip/usr/man/man8/inetd.8 # # install biff+comsat # cd $TMP/biff+comsat-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/biff+comsat-0.17 cp -a README /package-tcpip/usr/doc/biff+comsat-0.17 # # install finger # cd $TMP/bsd-finger-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/bsd-finger-0.17 cp -a README /package-tcpip/usr/doc/bsd-finger-0.17 rm /package-tcpip/usr/man/man8/fingerd.8 # # install netkit-bootparamd # cd $TMP/netkit-bootparamd-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-bootparamd-0.17 cp -a README /package-tcpip/usr/doc/netkit-bootparamd-0.17 rm /package-tcpip/usr/man/man8/bootparamd.8 # # install netkit-ftp # cd $TMP/netkit-ftp-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-ftp-0.17 cp -a README /package-tcpip/usr/doc/netkit-ftp-0.17 mv /package-tcpip/usr/bin/ftp /package-tcpip/bin/ rm /package-tcpip/usr/bin/pftp \ /package-tcpip/usr/man/man1/pftp.1 # # install netkit-ntalk (part I) # cd $TMP/netkit-ntalk-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-ntalk-0.17 cp -a README /package-tcpip/usr/doc/netkit-ntalk-0.17 mv /package-tcpip/usr/sbin/in.ntalkd /package-tcpip/usr/sbin/in.talkd mv /package-tcpip/usr/man/man8/in.ntalkd.8 /package-tcpip/usr/man/man8/in.talkd.8 ( cd /package-tcpip/usr/sbin rm -rf in.ntalkd ; ln -sf in.talkd in.ntalkd ) ( cd /package-tcpip/usr/bin rm -rf ntalk ; ln -sf talk ntalk ) rm /package-tcpip/usr/man/man8/ntalkd.8 \ /package-tcpip/usr/man/man8/talkd.8 # # install netkit-ntalk (part II) # cd $TMP/netkit-ntalk-0.11/ cp -a talk/talk /package-tcpip/usr/bin/talk-0.11 # # install netkit-routed # cd $TMP/netkit-routed-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-routed-0.17 cp -a README /package-tcpip/usr/doc/netkit-routed-0.17 # # install netkit-rsh # cd $TMP/netkit-rsh-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-rsh-0.17 cp -a README /package-tcpip/usr/doc/netkit-rsh-0.17 rm /package-tcpip/usr/man/man8/rlogind.8 \ /package-tcpip/usr/man/man8/rshd.8 # # install netkit-rusers # cd $TMP/netkit-rusers-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-rusers-0.17 cp -a README /package-tcpip/usr/doc/netkit-rusers-0.17 mv /package-tcpip/usr/man/man8/in.rexecd.8 /package-tcpip/usr/man/man8/rexecd.8 rm /package-tcpip/usr/bin/rexec \ /package-tcpip/usr/man/man1/rexec.1 \ /package-tcpip/usr/man/man8/rusersd.8 # # install netkit-rwall # cd $TMP/netkit-rwall-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-rwall-0.17 cp -a README /package-tcpip/usr/doc/netkit-rwall-0.17 rm /package-tcpip/usr/man/man8/rwalld.8 # # install netkit-rwho # cd $TMP/netkit-rwho-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netkit-rwho-0.17 cp -a README /package-tcpip/usr/doc/netkit-rwho-0.17 # # install netkit-telnet # cd $TMP/netkit-telnet-0.17/ make install INSTALLROOT=/package-tcpip rm /package-tcpip/usr/bin/telnet ( cd telnet make install INSTALLROOT=/package-tcpip ) mkdir -p /package-tcpip/usr/doc/netkit-telnet-0.17 cp -a README /package-tcpip/usr/doc/netkit-telnet-0.17 mv /package-tcpip/usr/bin/telnet /package-tcpip/bin/ rm /package-tcpip/usr/man/man5/issue.net.5 \ /package-tcpip/usr/man/man8/telnetd.8 # # install tftp-hpa-0.36 # cd $TMP/tftp-hpa-0.36 make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/tftp-hpa-0.36 cp -a CHANGES INSTALL INSTALL.tftp README README.security \ /package-tcpip/usr/doc/tftp-hpa-0.36 rm /package-tcpip/usr/man/man8/tftpd.8 # # install netkit-timed # cd $TMP/netkit-timed-0.17/ make install INSTALLROOT=/package-tcpip mv /package-tcpip/usr/sbin/timed /package-tcpip/usr/sbin/in.timed mkdir -p /package-tcpip/usr/doc/netkit-timed-0.17 cp -a README /package-tcpip/usr/doc/netkit-timed-0.17 # # install netwrite # cd $TMP/netwrite-0.17/ make install INSTALLROOT=/package-tcpip mkdir -p /package-tcpip/usr/doc/netwrite-0.17 cp -a README /package-tcpip/usr/doc/netwrite-0.17 rm /package-tcpip/usr/bin/write \ /package-tcpip/usr/man/man1/write.1 \ /package-tcpip/usr/man/man8/writed.8 # # install whois # # cd $TMP/whois-4.6.9/ # make install BASEDIR=/package-tcpip prefix=/usr # mkdir -p /package-tcpip/usr/doc/whois-4.6.9 # cp README /package-tcpip/usr/doc/whois-4.6.9 # mv /package-tcpip/usr/share/man/man1/* /package-tcpip/usr/man/man1/ # # install ipmask # cd $TMP/ipmask cp -a ipmask /package-tcpip/bin/ipmask # # install pcnfsd # # cd $TMP/pcnfsd/ # mkdir -p /package-tcpip/usr/doc/pcnfsd.93.02.16 # cp -a README /package-tcpip/usr/doc/pcnfsd.93.02.16 # cp -a pcnfsd.8c /package-tcpip/usr/man/man8/pcnfsd.8 # cp -a bsd/clnt.pcnfsd bsd/rpc.pcnfsd /package-tcpip/usr/sbin # # install bwnfsd # # cd $TMP/bwnfsd/ # cp -a bwnfsd /package-tcpip/usr/sbin/rpc.bwnfsd # # install mini-inews # cd $TMP/inews/ cp -a inews /package-tcpip/usr/bin/inews-nntp ( cd /package-tcpip/usr/bin/ rm -f inews ; ln -sf inews-nntp inews ) # # install iputils # cd $TMP/iputils/ strip arping clockdiff ping ping6 rarpd rdisc tracepath tracepath6 traceroute6 cp -p arping /package-tcpip/sbin/ cp -p clockdiff /package-tcpip/usr/sbin/ cp -p ping ping6 /package-tcpip/bin/ cp -p rarpd rdisc /package-tcpip/usr/sbin/ cp -p tracepath tracepath6 traceroute6 /package-tcpip/usr/bin/ ( cd doc cp -p arping.8 clockdiff.8 ping.8 rarpd.8 rdisc.8 tracepath.8 traceroute6.8 \ /package-tcpip/usr/man/man8 cd /package-tcpip/usr/man/man8 ln -sf ping.8.gz ping6.8.gz ln -sf tracepath.8.gz tracepath6.8.gz ) mkdir -p /package-tcpip/usr/doc/iputils-ss021109-try cp -a RELNOTES /package-tcpip/usr/doc/iputils-ss021109-try # # install ethool # cd $TMP/ethtool-1.8/ make install DESTDIR=/package-tcpip mkdir -p /package-tcpip/usr/doc/ethtool-1.8 cp -a AUTHORS COPYING ChangeLog NEWS README \ /package-tcpip/usr/doc/ethtool-1.8 ( cd /package-tcpip/usr/man for dir in 1 3 5 8; do ( cd man$dir gzip -9f *.$dir ) done ) rm -rf /package-tcpip/usr/share \ /package-tcpip/usr/etc } attributes() { chown -R root.bin $PKG/package-tcpip/bin \ $PKG/package-tcpip/sbin \ $PKG/package-tcpip/usr/bin \ $PKG/package-tcpip/usr/sbin chmod 4711 $PKG/package-tcpip/bin/ping* \ $PKG/package-tcpip/usr/bin/rcp \ $PKG/package-tcpip/usr/bin/rlogin \ $PKG/package-tcpip/usr/bin/rsh \ $PKG/package-tcpip/usr/bin/traceroute6 chmod 444 $PKG/package-tcpip/usr/doc/pcnfsd.93.02.16/README chmod 644 $PKG/package-tcpip/usr/include/tcpd.h \ $PKG/package-tcpip/usr/man/man3/* \ $PKG/package-tcpip/usr/man/man5/* \ $PKG/package-tcpip/usr/man/man8/* chmod 755 $PKG/package-tcpip/usr/sbin/timedc } special() { cd $PKG mv package-tcpip/* ./ rmdir package-tcpip cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-tcpip/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new cat $CWD/config.sh >> doinst.sh cat >> doinst.sh << EOF # Handle the incoming configuration files: config etc/rc.d/rc.inet1.new config etc/rc.d/rc.inet1.conf.new config etc/rc.d/rc.inet2.new config etc/rc.d/rc.ip_forward.new config etc/hosts.new config etc/hosts.deny.new config etc/hosts.equiv.new config etc/networks.new config etc/nntpserver.new config etc/resolv.conf.new config etc/services.new config etc/HOSTNAME.new config etc/host.conf.new config etc/hosts.allow.new config etc/protocols.new # OK, some of these aren't useful as examples, and have to be # considered clutter if you've already got the file. # So out they go. rm -f etc/HOSTNAME.new rm -f etc/hosts.new rm -f etc/resolv.conf.new rm -f etc/nntpserver.new EOF }