--- admin/PlamoBuild-template-20161020 2016-10-20 00:36:22.000000000 +0900 +++ plamo/01_minimum/old/unzip-20161021/PlamoBuild.unzip-60 2016-10-21 10:57:49.000000000 +0900 @@ -1,15 +1,23 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/infozip/unzip60.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/unzip/unzip60-nls_sjis.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/unzip/CVE-2014-8139.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/unzip/CVE-2014-8140.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/unzip/CVE-2014-8141.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/unzip/CVE-2014-9636.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/unzip/heapoverflow.patch.gz" +pkgbase=unzip +vers=60 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P5 +src=$pkgbase$vers +patchfiles="unzip60-nls_sjis.patch.gz + `echo CVE-2014-{81{39,40,41},9636}.patch.gz` heapoverflow.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="BUGS Contents COPYING.OLD History.600 INSTALL LICENSE README + ToDo WHERE" template=20161020 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -237,8 +245,8 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then - make clean + if [ -f unix/Makefile ] ; then + make -f unix/Makefile clean fi if [ -f config.log ] ; then rm -rf config.cache config.log @@ -253,8 +261,8 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then - make + if [ -f unix/Makefile ] ; then + make -f unix/Makefile generic1 fi done fi @@ -270,8 +278,8 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then - make install DESTDIR=$P + if [ -f unix/Makefile ] ; then + make -f unix/Makefile install prefix=$P/usr MANDIR=$P/usr/share/man/man1 fi done touch $W/i.et @@ -310,6 +318,7 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + touch -t `date '+%m%d0900'` $docdir/$src 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`