--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/old/libtirpc-20160826/PlamoBuild.libtirpc-0.2.3 2016-08-26 13:45:34.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/libtirpc/libtirpc-0.2.3.tar.bz2 + http://www.linuxfromscratch.org/patches/downloads/libtirpc/libtirpc-0.2.3-remove_nis-1.patch + http://sourceforge.net/p/libtirpc/mailman/attachment/1364308888.2660.119.camel%40willson.li.ssimo.org/1" +pkgbase=libtirpc +vers=0.2.3 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="VERSION TODO THANKS README NEWS INSTALL ChangeLog COPYING AUTHORS" ###################################################################### fscheck() { @@ -185,8 +187,11 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=0001-Switch-to-use-standard-GSSAPI-by-default.patch for i in $url ; do - if [ ! -f ${i##*/} ] ; then + if [ ${i##*/} == 1 ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then wget $i ; j=${i%.*} for sig in asc sig{,n} {sha{256,1},md5}{,sum} ; do if wget --spider $i.$sig ; then wget $i.$sig ; break ; fi @@ -233,6 +238,10 @@ esac done done + cd $B + patch -Np1 -i $W/libtirpc-0.2.3-remove_nis-1.patch + patch -Np1 -i $W/0001-Switch-to-use-standard-GSSAPI-by-default.patch + autoreconf for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +281,12 @@ make install DESTDIR=$P fi done + install -d $P/$libdir + cp -p $P/usr/$libdir/libtirpc.so.1.0.10 $P/$libdir + ln -sf /$libdir/libtirpc.so.1.0.10 $P/usr/$libdir/libtirpc.so.1 + ln -sf /$libdir/libtirpc.so.1.0.10 $P/usr/$libdir/libtirpc.so + touch $P/etc/netconfig + chown root.root $P/etc/netconfig touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +310,16 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert - 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` + rm $P/usr/$libdir/libtirpc.so.1.0.10 + tar cvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/tirpc + tar rvpf $pkg.tar -C $P etc/netconfig + 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 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 read -p "Do you want to keep work files? [y/N] " ans