IGNOREPATH=/etc:/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/mnt:/var/log:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.4.3 PROGNAME="bootp $VERSION" DESC="\ bootp \n\ \n\ This is an enhanced version of the CMU BOOTP server which was derived \n\ from the original BOOTP server created by Bill Croft at Stanford. \n\ BOOTP allows a network administrator to setup networking information \n\ for clients via an /etc/bootptab on a server so that the clients can \n\ automatically get their networking information." BUILD=1 MAINTAINER="Mark Post " PKGNAME=bootp-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/bootp_$VERSION.orig.tar.gz cd bootp-$VERSION/ zcat $CWD/bootp_2.4.3-3.diff.gz | patch -p1 cat $CWD/report.c.diff | patch -p1 --backup --suffix=.orig make } install() { mkdir -p /package-bootp ( cd /package-bootp tar -zxvf $CWD/_bootp.tar.gz usr/ etc-incoming/ ) make install install.man DESTDIR=/package-bootp MANDIR=/usr/man zcat $CWD/bootptab.gz > /package-bootp/etc-incoming/bootptab mkdir -p /package-bootp/usr/doc/bootp-$VERSION cp -a Announce Announce.old Changes ConvOldTab.sh Installation Problems README \ ToDo bootptab.cmu bootptab.mcs \ /package-bootp/usr/doc/bootp-$VERSION ( cd /package-bootp/usr/man rm -rf man8/bootpgw.8 for dir in 5 8; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) } attributes() { chown -R root.bin $PKG/package-bootp/usr/sbin/ chmod 755 $PKG/package-bootp/usr/doc/bootp-2.4.3/ConvOldTab.sh } special() { cd $PKG mv package-bootp/* ./ rmdir package-bootp/ cd $CTL cat $CWD/slack-desc > slack-desc cat $CWD/doinst.sh >> doinst.sh sed -e 's%package-bootp/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new cat >> doinst.sh << EOF # OK, we're going to try a new approach. For the original set of /etc config # files, if the file exists in /etc already, we don't copy the new one into # place. tcpip.tgz is really one of the few packages in Slackware to contain # a lot of configuration files, and the "starter" files in /etc have changed # *very little* over the years. If we *really* want to force replacement of # one of these files, we can always add another /etc directory to this package, # right? As it is, 99% of the people who already have these files don't want # them replaced. cd etc-incoming for file in * ; do if [ ! -d file ]; then # file is not a directory if [ ! -r ../etc/\$file ]; then # file isn't already in /etc, so copy it. cp -a \$file ../etc/\$file fi fi done cd .. rm -rf etc-incoming EOF }