--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/00_base/openbsd_inetd/PlamoBuild.openbsd_inetd-0.20080125 2017-04-26 13:47:52.000000000 +0900 @@ -1,18 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/o/openbsd-inetd/openbsd-inetd_0.20080125.orig.tar.gz + http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/o/openbsd-inetd/openbsd-inetd_0.20080125-6.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/00_base/openbsd_inetd/openbsd-inetd.conf.gz" verify= digest= commitid= -pkgbase= -vers= +pkgbase=openbsd_inetd +vers=0.20080125 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=openbsd-inetd-$vers.orig +patchfiles="openbsd-inetd_0.20080125-6.diff.gz" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -36,6 +38,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 `grep "^[^#]" 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 +55,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make -f Makefile.debian fi done fi @@ -64,6 +70,12 @@ make install DESTDIR=$P fi done + install -d $P/usr/sbin + install inetd $P/usr/sbin + install -d $mandir/man8 + install -m 644 inetd.8 $mandir/man8 + install -d $P/etc + gunzip -c $W/openbsd-inetd.conf.gz > $P/etc/inetd.conf touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -71,8 +83,9 @@ compress setup_docdir convert_links - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | 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 etc/inetd.conf tar rvpf $pkg.tar -C $P usr/share/doc/$src touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz