IGNOREPATH=/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/mnt:/var:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.3.22-pl4 PACKAGE=1.3.22pl4 PROGNAME="DHCP Programs $VERSION" DESC="\ dhcpcd (DHCP client daemon) \n\ \n\ The DHCP client program dhcpcd is used to connect to a network by \n\ contacting a DHCP server. dhcpcd gets an IP address and other \n\ information from a corresponding DHCP server, configures the network \n\ interface automatically, and tries to renew the lease time according \n\ to RFC2131 or RFC1541 depending on the command line option." BUILD=1 MAINTAINER="Mark Post " PKGNAME=dhcpcd-$PACKAGE-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/dhcpcd-$VERSION.tar.gz cd dhcpcd-$VERSION chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; find . -perm 444 -exec chmod 644 {} \; # This patch is not needed on Linux/390. # Do not use i686 instructions: # zcat $CWD/dhcpcd.noarchforce.diff.gz | patch -p1 cp -vp /usr/share/libtool/config.* ./ CFLAGS=-O2 ./configure --prefix=/usr \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make clean make } install() { make install DESTDIR=/package-dhcpcd mkdir -p /package-dhcpcd/usr/doc/dhcpcd-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README dhcpcd*lsm pcmcia \ /package-dhcpcd/usr/doc/dhcpcd-$VERSION ( cd /package-dhcpcd/ mv usr/sbin ./ rm -rf usr/etc/ mkdir -p etc/dhcpc ) cat << EOF > /package-dhcpcd/etc/dhcpc/dhcpcd-eth0.exe #!/bin/sh echo "(dhcpcd) IP address changed to \$1" | logger EOF ( cd /package-dhcpcd/usr/man/man8 rm -f *.gz gzip -9 *.8 ) } attributes() { chown -R root.bin $PKG/package-dhcpcd/sbin/ chmod 750 $PKG/package-dhcpcd/etc/dhcpc/dhcpcd-eth0.exe chmod 755 $PKG/package-dhcpcd/usr/doc/dhcpcd-$VERSION/pcmcia/2.9.7/network } special() { cd $PKG mv package-dhcpcd/* ./ rmdir package-dhcpcd/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-dhcpcd/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }