--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/old/perl-20161008/PlamoBuild.perl-5.14.2 2016-10-08 16:41:52.000000000 +0900 @@ -1,15 +1,24 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.cpan.org/src/perl-5.14.2.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/perl/perl-5.12.1-Configure_multilib-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/perl/CVE-2013-1667.patch.gz" +pkgbase=perl +vers=5.14.2 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" +patchfiles="perl-5.12.1-Configure_multilib-1.patch.gz + CVE-2013-1667.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="`echo README.{irix,mpeix,haiku}` README `echo README.{dgux,bs2000}` + `echo README.{aix,hurd,symbian,openbsd,epoc,macosx,cygwin,solaris}` + `echo README.{vmesa,riscos}` MANIFEST README.plan9 Artistic + `echo README.{hpux,tw,ko,linux,win32,cn}` INSTALL Changes + `echo README.{beos,amiga,macos,qnx,vos,os400}` Copying + `echo README.{jp,micro,os390,dos,freebsd,os2,uts,vms,netware}` + AUTHORS `echo README.{tru64,ce}`" ###################################################################### fscheck() { @@ -233,6 +242,31 @@ esac done done + cd $B + cp -p hints/linux.sh{,.orig} + cat <<- EOF | patch hints/linux.sh + 66,68c66,68 + < if test -L /lib/libc.so.6; then + < libc=\`ls -l /lib/libc.so.6 | awk '{print \$NF}'\` + < libc=/lib/\$libc + --- + > if test -L /$libdir/libc.so.6; then + > libc=\`ls -l /$libdir/libc.so.6 | awk '{print \$NF}'\` + > libc=/$libdir/\$libc + 463a464 + > installstyle="$libdir/perl5" + EOF + cp -p cpan/Compress-Raw-Zlib/config.in{,.orig} + cat <<- EOF | patch cpan/Compress-Raw-Zlib/config.in + 19,21c19,21 + < BUILD_ZLIB = True + < INCLUDE = ./zlib-src + < LIB = ./zlib-src + --- + > BUILD_ZLIB = False + > INCLUDE = /usr/include + > LIB = /usr/$libdir + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -247,6 +281,9 @@ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + ./Configure -des -Dprefix=/usr -Dvendorprefix=/usr \ + -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 \ + -Dcc="gcc" -Dusethreads -Duseshrplib fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -277,6 +314,11 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for i in `find $P/usr/$libdir/perl5/$vers/$arch-linux-thread-multi \ + -name "*.so"` ; do + strip_libdir ${i%/*} + touch -t `date '+%m%d0900'` ${i%/*} + done for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,7 +338,9 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/perl5 tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | 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