--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/00_base/iputils/PlamoBuild.iputils-s20101006 2020-05-04 21:11:52.000000000 +0900 @@ -1,19 +1,22 @@ #!/bin/sh ###################################################################### -url="" +url="http://www.skbuff.net/iputils/iputils-s20101006.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/00_base/iputils/iputils-s20101006-fixes-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/00_base/iputils/iputils-s20100418-doc-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/00_base/iputils/iputils-s20101006-Makefile.patch.gz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=iputils +vers=s20101006 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" +patchfiles="`echo iputils-s2010{{1006-fixes,0418-doc}-1,1006-Makefile}.patch.gz`" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL RELNOTES" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -37,6 +40,9 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + cp -p Makefile{,.orig} + sed -i "s|@LIBDIR@|/usr/$libdir|" Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then @@ -51,6 +57,7 @@ cd ${B[$i]} if [ -f Makefile ] ; then make + make man fi done fi @@ -65,6 +72,14 @@ make install DESTDIR=$P fi done + install -d $P/{bin,usr/{sbin,bin}} + install ping{,6} $P/bin + chmod u+s $P/bin/ping{,6} + install arping clockdiff tracepath{,6} $P/usr/sbin + install traceroute6 $P/usr/bin + chmod u+s $P/usr/bin/traceroute6 + install -d $P/usr/share/man/man8 + install -m 644 doc/*.8 $P/usr/share/man/man8 touch $W/i.et cd $W TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \ @@ -72,8 +87,10 @@ 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 bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | 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 TZ=UTC touch -t `date -u '+%m%d0000'` $pkg.tar xz $pkg.tar ; touch $pkg.tar.xz ; mv $pkg.tar.xz $pkg.txz