--- plamo/00_base/old/hdsetup-20160408/PlamoBuild.hdsetup-6.1 2016-04-08 19:20:57.000000000 +0900 +++ plamo/00_base/hdsetup/PlamoBuild.hdsetup-6.1 2016-04-15 19:48:17.000000000 +0900 @@ -5,14 +5,25 @@ ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/hdsetup/busybox-1.24.1-config ftp://invisible-island.net/dialog/dialog-1.3-20160209.tgz http://ftp.gnu.org/gnu/coreutils/coreutils-8.23.tar.xz + http://ftp.gnu.org/gnu/gzip/gzip-1.6.tar.gz + http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz + http://tukaani.org/xz/xz-5.2.2.tar.xz + http://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/tar/tar-1.23-tartime.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/tar/tar-1.23-txz.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/tar/tar-1.26-no-gets.patch.gz ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/hdsetup/hdsetup-plamoscripts.tar.gz" pkgbase=hdsetup vers=6.1 arch=`uname -m` -build=P3 +build=P4 src[0]=busybox-1.24.1 src[1]=dialog-1.3-20160209 src[2]=coreutils-8.23 +src[3]=gzip-1.6 +src[4]=bzip2-1.0.6 +src[5]=xz-5.2.2 +src[6]=tar-1.26 OPT_CONFIG[0]="" OPT_CONFIG[1]="--bindir=/bin --enable-nls --with-ncursesw --enable-widec" OPT_CONFIG[2]="--bindir=/bin --enable-no-install-program=install,chroot" @@ -27,9 +38,18 @@ OPT_CONFIG[2]+=",sync,tac,tail,tee,test,timeout,touch,tr,true,truncate,tsort" OPT_CONFIG[2]+=",tty,uname,unexpand,uniq,unlink,vdir,wc,whoami,yes --without-gmp" +OPT_CONFIG[3]="--bindir=/bin" +OPT_CONFIG[4]="" +OPT_CONFIG[5]="--bindir=/bin --disable-xzdec --disable-lzmadec + --disable-lzmainfo --disable-lzma-links --disable-scripts" +OPT_CONFIG[6]="--bindir=/bin" DOCS[0]="TODO LICENSE README AUTHORS INSTALL TODO_unicode" DOCS[1]="" DOCS[2]="" +DOCS[3]="" +DOCS[4]="" +DOCS[5]="" +DOCS[6]="" ###################################################################### fscheck() { @@ -224,6 +244,10 @@ done cd ${B[0]} cp -p $W/busybox-1.24.1-config .config + cd ${B[6]} + gunzip -c $W/tar-1.23-tartime.patch.gz | patch -Np1 -i - + gunzip -c $W/tar-1.23-txz.patch.gz | patch -Np1 -i - + gunzip -c $W/tar-1.26-no-gets.patch.gz | patch -Np1 -i - for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f [Mm]akefile ] ; then @@ -246,7 +270,9 @@ case $i in 0) make ;; 1) make LIBS="-lncursesw -lm -ldl -static" ;; - 2) make LIBS="-ldl -static" ;; + 4) make LDFLAGS="-ldl -static" ;; + 5) make LIBS="-ldl -all-static" ;; + *) make LIBS="-ldl -static" ;; esac fi done @@ -266,11 +292,15 @@ if [ -f [Mm]akefile ] ; then case $i in 0) make install CONFIG_PREFIX=$P ;; + 3) make install DESTDIR=$P bin_SCRIPTS=zcat ;; + 4) make install PREFIX=$P ;; *) make install DESTDIR=$P ;; esac fi done - rm $P/bin/{\[\[,ash,cttyhack,{e,f}grep,hush,install,test,unxz} + ln -f $P/bin/xz{,cat} + rm $P/bin/{\[\[,ash,cttyhack,{e,f}grep,hush,test,install,bunzip2} + rm $P/bin/{bz{ip2recover,{,e,f}grep,more,less,diff,cmp},unxz} install -d $P/sbin mv $P/bin $P/sbin/installer cp -r $W/sbin $P @@ -301,6 +331,12 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done cp -a $S/docs $docdir/$src + for i in busybox.pod BusyBox.txt busybox.{1,net} BusyBox.html ; do + cp -a $B/docs/$i $docdir/$src/docs + touch -t `date '+%m%d0900'` $docdir/$src/docs/$i + done + touch -t `date '+%m%d0900'` $docdir/$src/docs/busybox.net/BusyBox.html + touch -r $S/docs $docdir/$src/docs chown -R root.root $docdir/$src/docs mv $docdir/$src/{docs,{TODO,LICENSE,README,AUTHORS,INSTALL}.gz} $C mv $docdir/$src/{TODO_unicode,$myname}.gz $C