--- admin/PlamoBuild-template-20170323 2017-03-23 06:38:12.000000000 +0900 +++ plamo/00_base/old/iputils-20170407/PlamoBuild.iputils-s20101006 2017-04-07 16:26:40.000000000 +0900 @@ -1,17 +1,20 @@ #!/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= commitid= -pkgbase= -vers= +pkgbase=iputils +vers=s20101006 arch=`uname -m` -build=P1 +build=P3 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=20170323 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -35,6 +38,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 @@ -49,6 +55,7 @@ cd ${B[$i]} if [ -f Makefile ] ; then make + make man fi done fi @@ -63,6 +70,14 @@ make install DESTDIR=$P fi done + install -d $P/{bin,usr/{sbin,bin}} + install ping{,6} $P/bin + chmod +s $P/bin/ping{,6} + install arping clockdiff tracepath{,6} $P/usr/sbin + install traceroute6 $P/usr/bin + chmod +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 find $P ! -type l -newer i.st ! -newer i.et \ @@ -70,8 +85,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 touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz