--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/00_base/tcp_wrappers/PlamoBuild.tcp_wrappers-7.6.q 2017-05-02 11:40:41.000000000 +0900 @@ -1,18 +1,19 @@ #!/bin/sh ###################################################################### -url="" +url="http://archive.debian.org/debian/pool/main/t/tcp-wrappers/tcp-wrappers_7.6.q.orig.tar.gz + http://archive.debian.org/debian/pool/main/t/tcp-wrappers/tcp-wrappers_7.6.q-16.diff.gz" verify= digest= commitid= -pkgbase= -vers= +pkgbase=tcp_wrappers +vers=7.6.q arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P6 +src=tcp_wrappers_7.6 +patchfiles="tcp-wrappers_7.6.q-16.diff.gz" OPT_CONFIG="" -DOCS="README" +DOCS="README BLURB DISCLAIMER CHANGES README.IRIX README.NIS" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -36,6 +37,10 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + for i in `cat debian/patches/series` ; do + patch -Np1 -i debian/patches/$i + done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then @@ -49,7 +54,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make linux fi done fi @@ -60,10 +65,58 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make install DESTDIR=$P fi done + install -d $P/usr/sbin + for i in tcpd tcpdmatch try-from safe_finger tcpdchk ; do + install $i $P/usr/sbin + done + install -d $P/usr/$libdir + install shared/libwrap.so.0.7.6 $P/usr/$libdir + install -m 644 libwrap.a $P/usr/$libdir + ln -s libwrap.so.0.7.6 $P/usr/$libdir/libwrap.so.0 + ln -s libwrap.so.0.7.6 $P/usr/$libdir/libwrap.so + install -d $P/usr/include + install -m 644 tcpd.h $P/usr/include + install -d $mandir/man{3,5,8} + install -m 644 hosts_access.3 $mandir/man3 + for i in hosts_access hosts_options ; do + install -m 644 $i.5 $mandir/man5 + done + for i in tcpd tcpdmatch try-from safe_finger tcpdchk ; do + install -m 644 $i.8 $mandir/man8 + done + install -d $P/etc + cat <<- "EOF" > $P/etc/hosts.allow.new + # + # hosts.allow This file describes the names of the hosts which are + # allowed to use the local INET services, as decided by + # the '/usr/sbin/tcpd' server. + # + # Version: @(#)/etc/hosts.allow 1.00 05/28/93 + # + # Author: Fred N. van Kempen, $P/etc/hosts.deny.new + # + # hosts.deny This file describes the names of the hosts which are + # *not* allowed to use the local INET services, as decided + # by the '/usr/sbin/tcpd' server. + # + # Version: @(#)/etc/hosts.deny 1.00 05/28/93 + # + # Author: Fred N. van Kempen, > $P/install/doinst.sh + + hosts_config() { + mv etc/hosts.$1.new /tmp + if [ -f etc/hosts.$1 ] ; then + mv /tmp/hosts.$1.new etc/hosts.$1.dist + else + mv /tmp/hosts.$1.new etc/hosts.$1 + fi + } + + for i in allow deny ; do hosts_config $i ; done + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz cleanup