--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/01_minimum/perl/PlamoBuild.perl-5.14.2 2017-06-24 16:09:00.000000000 +0900 @@ -1,18 +1,27 @@ #!/bin/sh ###################################################################### -url="" +url="http://www.cpan.org/src/perl-5.14.2.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/perl/perl-5.12.1-Configure_multilib-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/perl/CVE-2013-1667.patch.gz" verify= digest= commitid= -pkgbase= -vers= +pkgbase=perl +vers=5.14.2 arch=`uname -m` -build=P1 +build=P5 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}`" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -36,6 +45,31 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + 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 [ -x configure ] ; then @@ -44,6 +78,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 @@ -69,10 +106,17 @@ 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 setup_docdir convert_links 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