--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/acl/PlamoBuild.acl-2.2.51 2016-01-05 23:39:45.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.savannah.gnu.org/releases/acl/acl-2.2.51.src.tar.gz" +pkgbase=acl +vers=2.2.51 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README `echo doc/{{extensions,libacl}.txt,TODO,PORTING,CHANGES}` + `echo doc/{COPYING,COPYING.LGPL,INSTALL,old-acl.5}`" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,9 +236,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install install-dev install-lib DIST_ROOT=$P fi done + chown -R root.root $P/usr touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +262,26 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/examples $docdir/$src + rm $docdir/$src/examples/Makefile + chmod -R o+r $docdir/$src/examples + chown -R root.root $docdir/$src/examples + mv $docdir/$src/{examples,$myname.gz} $C + mv $C/{examples,$myname.gz} $docdir/$src + touch -t `date '+%m%d0900'` $docdir/$src{,/doc,/examples} convert + prune_symlink $P/usr/libexec tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include/sys | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/acl + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` 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 `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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/at/PlamoBuild.at-3.1.13 2015-12-25 10:57:46.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://repository.timesys.com/buildsources/a/at/at-3.1.13/at-3.1.13.tar.gz" +pkgbase=at +vers=3.1.13 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING ChangeLog Copyright Problems README timespec" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,9 +235,17 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install IROOT=$P fi done + install -d $P/etc/pam.d + cat <<- "EOF" > $P/etc/pam.d/atd + #%PAM-1.0 + auth sufficient pam_rootok.so + auth include system-auth + account required pam_permit.so + session required pam_limits.so + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +270,15 @@ 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/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/at.deny + tar rvpf $pkg.tar -C $P `cd $P ; find etc/pam.d | tail -n+2` + tar rvpf $pkg.tar -C $P var/spool/at{spool,jobs} 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/attr/PlamoBuild.attr-2.4.44 2016-01-05 23:43:17.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.savannah.gnu.org/releases/attr/attr-2.4.44.src.tar.gz" +pkgbase=attr +vers=2.4.44 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README `echo doc/{INSTALL,PORTING,CHANGES,COPYING}`" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,9 +235,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install install-dev install-lib DIST_ROOT=$P fi done + chown -R root.root $P/usr touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +261,26 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/examples $docdir/$src + rm $docdir/$src/examples/Makefile + chmod -R o+r $docdir/$src/examples + chown -R root.root $docdir/$src/examples + mv $docdir/$src/{examples,doc,$myname.gz} $C + mv $C/{examples,doc,$myname.gz} $docdir/$src + touch -t `date '+%m%d0900'` $docdir/$src{,/examples,/doc} convert + prune_symlink $P/usr/libexec tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/attr + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` 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/man2 | 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 `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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/bash/PlamoBuild.bash-4.3.30 2016-04-03 09:46:50.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/bash/bash-4.3.30.tar.gz" +pkgbase=bash +vers=4.3.30 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src[0]=$pkgbase-$vers +src[1]=${src[0]} +OPT_CONFIG[0]="--bindir=/bin --without-bash-malloc --with-installed-readline" +OPT_CONFIG[1]="${OPT_CONFIG[0]} --enable-static-link" +DOCS[0]="ABOUT-NLS AUTHORS ChangeLog CHANGES COMPAT COPYING INSTALL + NEWS NOTES POSIX RBASH README Y2K" +DOCS[1]="" ###################################################################### fscheck() { @@ -186,35 +189,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +205,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +212,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,9 +239,13 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + case $i in + 0) make install htmldir=/usr/share/doc/html DESTDIR=$P ;; + 1) install bash $P/bin/bash-static ;; + esac fi done + ln -s bash $P/bin/sh touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -290,14 +264,21 @@ touch -t `date '+%m%d0900'` $docdir/$src/$myname gzip_one $docdir/$src/$myname else - ln $docdir/$src/$myname.gz $docdir/${src[$i]} + false && ln $docdir/$src/$myname.gz $docdir/${src[$i]} fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/html $docdir/$src + mv $docdir/$src/{html,$myname.gz} $C + mv $C/{html,$myname.gz} $docdir/$src + touch -r $S $docdir/$src convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/btrfs_progs/PlamoBuild.btrfs_progs-v4.3.1 2016-01-25 15:45:11.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v4.3.1.tar.gz" +pkgbase=btrfs_progs +vers=v4.3.1 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=btrfs-progs-$vers +OPT_CONFIG="--bindir=/sbin" +DOCS="COPYING INSTALL README.md" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -295,9 +261,13 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/btrfs + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/bzip2/PlamoBuild.bzip2-1.0.6 2015-12-26 13:19:56.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz" +pkgbase=bzip2 +vers=1.0.6 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="LICENSE README README.COMPILATION.PROBLEMS README.XML.STUFF + CHANGES" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +200,12 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p Makefile{,.orig} + sed -i -e 's@\@$(LIBDIR)@g' -e 's@\@share/&@g' \ + -e '/ln/s@$(PREFIX)/bin/@@' Makefile + cp -p Makefile-libbz2_so{,.orig} + sed -i 's@ -shared@ $(CFLAGS)&@g' Makefile-libbz2_so for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +215,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,6 +225,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then + make -f Makefile-libbz2_so make fi done @@ -269,9 +243,16 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install PREFIX=$P/usr LIBDIR=$libdir fi done + install -d $P/bin + install bzip2-shared $P/bin/bzip2 + ln -sf /bin/bzip2 $P/usr/bin + install -d $P/$libdir + install libbz2.so.$vers $P/$libdir + ln -s libbz2.so.$vers $P/$libdir/libbz2.so.${vers%.*} + ln -s /$libdir/libbz2.so.$vers $P/usr/$libdir/libbz2.so touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +276,14 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/coreutils/PlamoBuild.coreutils-8.25 2016-07-10 10:52:28.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/coreutils/coreutils-8.25.tar.xz" +pkgbase=coreutils +vers=8.25 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-install-program=arch + --enable-no-install-program=uptime,kill --without-gmp" +DOCS="COPYING TODO INSTALL THANKS ChangeLog-2006 ChangeLog-2008 NEWS + ChangeLog ChangeLog-2007 README ChangeLog-2005 AUTHORS ABOUT-NLS + THANKS-to-translators" ###################################################################### fscheck() { @@ -233,6 +236,14 @@ esac done done + cd $B + cp -p po/Makevars{,.orig} + sed 's@EXTRA_LOCALE_CATEGORIES@#&@g' po/Makevars.orig > po/Makevars + cp -p src/copy.c{,.orig} + sed 's@FASTREAD@NONE@g' src/copy.c.orig > src/copy.c + if [ `id -u` -eq 0 ] ; then + export FORCE_UNSAFE_CONFIGURE=1 + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,11 +283,20 @@ make install DESTDIR=$P fi done + install -d $P/{sbin,bin} + mv $P/usr/bin/sleep $P/sbin ; ln -s /sbin/sleep $P/usr/bin + for i in chroot stty df cat chgrp chmod chown cp cut date dd dircolors \ + du echo false head ln ls mkdir mkfifo mknod mv pwd rm rmdir shred \ + sync touch true uname ; do + mv $P/usr/bin/$i $P/bin ; ln -s /bin/$i $P/usr/bin + done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/libexec/coreutils + touch -t `date '+%m%d0900'` $P/usr/libexec/coreutils for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +315,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` + prune_symlink $P/usr/share/locale + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/coreutils + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/cracklib/PlamoBuild.cracklib-2.8.18 2016-03-20 21:22:29.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/cracklib/cracklib-2.8.18.tar.gz + http://downloads.sourceforge.net/cracklib/cracklib-words-20080507.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/cracklib/cracklib-2.8.15-heimdal-1.patch" +pkgbase=cracklib +vers=2.8.18 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-default-dict=/lib/cracklib/pw_dict" +DOCS="README-WORDS README-DAWG NEWS AUTHORS INSTALL ABOUT-NLS + README-LICENSE README COPYING.LIB ChangeLog" ###################################################################### fscheck() { @@ -186,35 +188,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +202,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np1 -i $W/cracklib-2.8.15-heimdal-1.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +213,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +243,15 @@ make install DESTDIR=$P fi done + install -d $P/$libdir + cp -p $P/usr/$libdir/libcrack.so.2.8.1 $P/$libdir + ln -sf /$libdir/libcrack.so.2.8.1 $P/usr/$libdir/libcrack.so.2 + ln -sf /$libdir/libcrack.so.2.8.1 $P/usr/$libdir/libcrack.so + install -d $P/usr/share/dict + zcat $W/cracklib-words-20080507.gz > $P/usr/share/dict/cracklib-words + echo `hostname` >> $P/usr/share/dict/cracklib-extra-words + ln -s cracklib-words $P/usr/share/dict/words + install -d $P/lib/cracklib touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +275,27 @@ ( 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` + prune_symlink $P/usr/share/dict + rm $P/usr/$libdir/libcrack.so.2.8.1 + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + EOF + cat <<- "EOF" >> $P/install/doinst.sh + create-cracklib-dict /usr/share/dict/cracklib-words \ + /usr/share/dict/cracklib-extra-words + #%% end + EOF + touch -t `date '+%m%d0900'` $P/usr/share/dict $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $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 `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P usr/share/{cracklib,dict} + tar rvpf $pkg.tar -C $P lib/cracklib 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/dcron/PlamoBuild.dcron-4.5 2015-12-27 22:56:24.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.jimpryor.net/linux/releases/dcron-4.5.tar.gz" +pkgbase=dcron +vers=4.5 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README CHANGELOG CHANGELOG.working" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +199,49 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p extra/crond.rc{,.orig} + cat <<- "EOF" | patch extra/crond.rc + 3,5c3,5 + < . /etc/rc.conf + < . /etc/rc.d/functions + < . /etc/conf.d/crond + --- + > #. /etc/rc.conf + > #. /etc/rc.d/functions + > #. /etc/conf.d/crond + 10c10 + < stat_busy "Starting Cron Daemon" + --- + > echo "Starting Cron Daemon" + 15c15 + < if [[ -z $PID ]] && env -i PATH="/sbin:/usr/sbin:/bin:/usr/bin" /usr/sbin/crond $CROND_ARGS; then + --- + > if [[ -z $PID ]] && env -i PATH="/sbin:/usr/sbin:/bin:/usr/bin" /usr/sbin/crond -S -l info; then + 19,20c19 + < add_daemon crond + < stat_done + --- + > echo "crond started" + 22c21 + < stat_fail + --- + > echo "crond failed to start" + 28c27 + < stat_busy "Stopping Cron Daemon" + --- + > echo "Stopping Cron Daemon" + 30,31c29,30 + < rm_daemon crond + < stat_done + --- + > rm -f /var/run/crond.pid + > echo "crond stopped" + 33c32 + < stat_fail + --- + > echo "crond failed to stop" + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +251,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +261,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make PREFIX=/usr fi done fi @@ -269,9 +278,25 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install DESTDIR=$P fi done + install extra/run-cron $P/usr/sbin + install extra/prune-cronstamps $P/etc/cron.d + install -m 600 extra/root.crontab $P/var/spool/cron/crontabs/root + cat <<- "EOF" > $P/var/spool/cron/crontabs/nobody + # This updates the database for 'locate' every day: + 40 4 * * * updatedb 1> /dev/null 2> /dev/null + EOF + chmod 600 $P/var/spool/cron/crontabs/nobody + chown nobody.nogroup $P/var/spool/cron/crontabs/nobody + install -d $P/etc/cron.{hourly,daily,weekly,monthly} + cat <<- "EOF" >> $P/etc/cron.daily/logrotate + logrotate /etc/logrotate.conf + EOF + chmod 755 $P/etc/cron.daily/logrotate + install -d $P/etc/rc.d/init.d + install -m 744 extra/crond.rc $P/etc/rc.d/init.d/crond touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,8 +320,13 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/cron.{d,hourly,daily,weekly,monthly} + tar rvpf $pkg.tar -C $P etc/rc.d/init.d/crond + tar rvpf $pkg.tar -C $P var/spool/cron 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/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/dhcp/PlamoBuild.dhcp-4.3.3 2016-06-06 06:43:26.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.isc.org/isc/dhcp/4.3.3/dhcp-4.3.3.tar.gz" +pkgbase=dhcp +vers=4.3.3 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="LICENSE README RELNOTES" ###################################################################### fscheck() { @@ -222,17 +221,15 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p client/scripts/linux{,.orig} + cat <<- "EOF" | patch client/scripts/linux + 24a25,26 + > PATH=/sbin/:$PATH + > + EOF + cp -p client/dhclient.conf.example{,.orig} + sed -i '/^script/s@etc@sbin@g' client/dhclient.conf.example for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +269,9 @@ make install DESTDIR=$P fi done + install -d $P/sbin + install client/scripts/linux $P/sbin/dhclient-script + install -d $P/var/db touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +295,33 @@ ( 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` + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + dhc_config() { + mv etc/$1.conf.example /tmp + if [ -f etc/$1.conf ] ; then + mv /tmp/$1.conf.example etc/$1.conf.dist + else + mv /tmp/$1.conf.example etc/$1.conf + fi + } + + for i in dhclient dhcpd ; do dhc_config $i ; done + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc | tail -n+2` + tar rvpf $pkg.tar -C $P var/db 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/dialog/PlamoBuild.dialog-1.3_20160209 2016-04-06 19:28:31.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://invisible-island.net/dialog/dialog-1.3-20160209.tgz" +pkgbase=dialog +vers=1.3_20160209 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=$pkgbase-1.3-20160209 +OPT_CONFIG="--bindir=/bin --enable-nls --with-shared --with-ncursesw + --enable-widec" +DOCS="CHANGES README COPYING" ###################################################################### fscheck() { @@ -186,35 +186,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + tgz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,26 +203,15 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f makefile ] ; then make clean fi if [ -f config.log ] ; then rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir=/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -251,7 +219,7 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f makefile ] ; then make fi done @@ -268,7 +236,7 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f makefile ] ; then make install DESTDIR=$P fi done @@ -295,9 +263,12 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/dosfstools/PlamoBuild.dosfstools-3.0.26 2015-12-29 20:34:59.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://pkgs.fedoraproject.org/lookaside/pkgs/dosfstools/dosfstools-3.0.26.tar.xz/45012f5f56f2aae3afcd62120b9e5a08/dosfstools-3.0.26.tar.xz" +pkgbase=dosfstools +vers=3.0.26 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="`echo doc/{TODO.dosfstools-2.x,README.dosfsck,ChangeLog.dosfstools-2.x}` + `echo doc/{ChangeLog.mkdosfs,ChangeLog.dosfsck,README.mkdosfs}` + `echo doc/{ANNOUNCE.mkdosfs,README.dosfstools-2.x}` + COPYING VERSION ChangeLog" ###################################################################### fscheck() { @@ -186,35 +188,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -224,17 +205,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +212,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,7 +239,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P PREFIX=/usr fi done touch $W/i.et @@ -295,9 +265,11 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/de/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/dump/PlamoBuild.dump-0.4b44 2016-04-09 21:37:03.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://jaist.dl.sourceforge.net/sourceforge/dump/dump-0.4b44.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/dump/dump-0.4b41-destdir.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/dump/dump-0.4b44-com_err.patch.gz" +pkgbase=dump +vers=0.4b44 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--disable-transselinux" +DOCS="COPYRIGHT TODO KNOWNBUGS REPORTING-BUGS README THANKS CHANGES + MAINTAINERS INSTALL" ###################################################################### fscheck() { @@ -186,35 +188,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +202,11 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + gunzip -c $W/dump-0.4b41-destdir.patch.gz | patch -Np1 -i - + gunzip -c $W/dump-0.4b44-com_err.patch.gz | patch -Np1 -i - + cp -p dump/Makefile.in{,.orig} + sed -i '/^LIBS=/s@$@ -lpthread@' dump/Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +216,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,7 +243,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install DESTDIR=$P fi done touch $W/i.et @@ -294,10 +268,19 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/examples $docdir/$src + chmod -R g-w $docdir/$src/examples + chown -R root.root $docdir/$src/examples + mv $docdir/$src/{examples,{REPORTING-BUGS,README,THANKS}.gz} $C + mv $docdir/$src/{CHANGES,MAINTAINERS,INSTALL,$myname}.gz $C + mv $C/{examples,{REPORTING-BUGS,README,THANKS}.gz} $docdir/$src + mv $C/{CHANGES,MAINTAINERS,INSTALL,$myname}.gz $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/e2fsprogs/PlamoBuild.e2fsprogs-1.42.12 2016-01-15 17:30:02.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://jaist.dl.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-1.42.12.tar.gz" +pkgbase=e2fsprogs +vers=1.42.12 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-elf-shlibs --disable-libuuid --disable-libblkid + --disable-fsck --disable-uuidd --with-root-prefix=\"\"" +DOCS="RELEASE-NOTES SHLIBS SUBMITTING-PATCHES INSTALL INSTALL.elfbin + README COPYING ABOUT-NLS" ###################################################################### fscheck() { @@ -186,35 +187,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +201,13 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + if [ $arch == x86_64 ] ; then + cp -p configure configure.orig + sed '/^ root_libdir=/s@$libdir@/lib64@g' configure.orig > configure + fi + cp -p misc/mke2fs.conf.in misc/mke2fs.conf.in.orig + sed 's@,dir_index@@g' misc/mke2fs.conf.in.orig > misc/mke2fs.conf.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +217,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +247,7 @@ make install DESTDIR=$P fi done + make install-libs DESTDIR=$P touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +271,23 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $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 `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name e2fsprogs.mo` + tar rvpf $pkg.tar -C $P usr/share/et usr/share/ss + tar rvpf $pkg.tar -C $P etc/mke2fs.conf + tar rvpf $pkg.tar -C $P usr/share/info/libext2fs.info.gz 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/ed/PlamoBuild.ed-1.5 2015-12-29 20:36:35.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://gnu.raffsoftware.com/ed/ed-1.5.tar.gz" +pkgbase=ed +vers=1.5 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +238,7 @@ make install DESTDIR=$P fi done + touch $P/usr/bin/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +261,13 @@ 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/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/efibootmgr/PlamoBuild.efibootmgr-git_20150630 2015-12-28 15:37:31.000000000 +0900 @@ -1,15 +1,15 @@ -#!/bin/sh +#!/bin/sh -x ###################################################################### -url="" -pkgbase= -vers= +url="https://github.com/vathpela/efibootmgr.git + http://plamo.linet.gr.jp/~tamuki/src/efibootmgr-add-efi_guid_zero.patch" +pkgbase=efibootmgr +vers=git_20150630 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=$pkgbase OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING INSTALL README `echo doc/{ChangeLog,TODO}`" ###################################################################### fscheck() { @@ -186,35 +186,20 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; else + ( cd `basename ${i##*/} .git` ; git pull origin master ) ; fi ;; + *) if [ ! -f ${i##*/} ] ; then wget $i ; fi ;; + esac done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + git checkout origin/master ; git reset --hard 000eb00 + git set-file-times ) ;; esac done fi @@ -222,17 +207,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np1 -i $W/efibootmgr-add-efi_guid_zero.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +218,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/efivar/PlamoBuild.efivar-git_20151006 2015-12-28 15:29:36.000000000 +0900 @@ -1,15 +1,14 @@ -#!/bin/sh +#!/bin/sh -x ###################################################################### -url="" -pkgbase= -vers= +url="https://github.com/rhinstaller/efivar.git" +pkgbase=efivar +vers=git_20151006 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=$pkgbase OPT_CONFIG="" -DOCS="README" +DOCS="COPYING README.md TODO" ###################################################################### fscheck() { @@ -186,35 +185,20 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; else + ( cd `basename ${i##*/} .git` ; git pull origin master ) ; fi ;; + *) if [ ! -f ${i##*/} ] ; then wget $i ; fi ;; + esac done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + git checkout origin/master ; git reset --hard 88c3ca8 + git set-file-times ) ;; esac done fi @@ -222,17 +206,13 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p Make.defaults{,.orig} + sed -i 's@-O0@-Os@g' Make.defaults + cp -p src/test/Makefile{,.orig} + sed -i '/^ccldflags/s@$(TOPDIR)/src/$@$(LIBDIR)@' src/test/Makefile + cp -p src/Makefile{,.orig} + sed -i 's@LIBS=dl@& popt@g' src/Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +222,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +232,9 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + ( cd src ; make include/efivar/efivar-guids.h libefivar.so \ + libefiboot.so ) + make efivar-static fi done fi --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/eject/PlamoBuild.eject-2.1.5 2016-08-23 13:14:54.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.caixamagica.pt/anvil/pool/main/e/eject/eject_2.1.5+deb1+cvs20081104.orig.tar.gz + http://ftp.caixamagica.pt/anvil/pool/main/e/eject/eject_2.1.5+deb1+cvs20081104-8.diff.gz" +pkgbase=eject +vers=2.1.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=$pkgbase-$vers+deb1+cvs20081104 +patchfiles="eject_2.1.5+deb1+cvs20081104-8.diff.gz" OPT_CONFIG="" -DOCS="README" +DOCS="TODO NEWS PORTING COPYING INSTALL README AUTHORS PROBLEMS ChangeLog" ###################################################################### fscheck() { @@ -233,6 +234,8 @@ esac done done + cd $B + ./bootstrap for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,6 +299,7 @@ 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/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/extipl/PlamoBuild.extipl-5.04 2016-03-29 13:21:20.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://jaist.dl.sourceforge.jp/extipl/2166/extipl-5.04.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/extipl/extipl-5.04-syscall.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/extipl/extipl-5.04-x86_64.patch.gz + http://jaist.dl.sourceforge.net/sourceforge/nasm/nasm-0.98.38.tar.bz2" +pkgbase=extipl +vers=5.04 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="`echo doc/{English,Japanese}/{extipl,scorpius,techical}.txt` + COPYING README" ###################################################################### fscheck() { @@ -186,35 +189,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +203,17 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + if [ $arch != x86_64 ] ; then + gunzip -c $W/extipl-5.04-syscall.patch.gz | patch -Np1 -i - + else + gunzip -c $W/extipl-5.04-x86_64.patch.gz | patch -Np1 -i - + fi + mkdir -p $W/nasm/{bin,man/man1} + cd $W/nasm-0.98.38 + ./configure --prefix=$W/nasm + make install + PATH="$W/nasm/bin:$PATH" for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +223,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -255,6 +236,7 @@ make fi done + cd src ; make fi if [ $opt_package -eq 1 ] ; then if [ `id -u` -ne 0 ] ; then @@ -272,6 +254,9 @@ make install DESTDIR=$P fi done + cd src ; make -i install install-jman PREFIX=$P \ + MANDIR=$mandir JMANDIR=$mandir/ja_JP.eucJP + rm -rf $P/share touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,8 +280,9 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/ja_JP.eucJP/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/fbset/PlamoBuild.fbset-2.1 2015-12-27 19:57:23.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://users.telenet.be/geertu/Linux/fbdev/fbset-2.1.tar.gz + http://archive.debian.org/debian/pool/main/f/fbset/fbset_2.1-23.diff.gz" +pkgbase=fbset +vers=2.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,16 +200,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done + cd $B + gunzip -c $W/fbset_2.1-23.diff.gz | patch -Np1 -i - + for i in `cat debian/patches/series` ; do + patch -Np1 -i debian/patches/$i done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} @@ -242,8 +214,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -295,8 +267,10 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/fb.modes 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/man5 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/file/PlamoBuild.file-5.22 2016-04-07 16:06:48.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.astron.com/pub/file/file-5.22.tar.gz" +pkgbase=file +vers=5.22 arch=`uname -m` -build=P1 +build=P5 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO MAINT" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -296,8 +262,15 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/misc | tail -n+2` 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 `cd $P ; find usr/share/man/man4 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/findutils/PlamoBuild.findutils-4.6.0 2016-08-24 14:34:06.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/findutils/findutils-4.6.0.tar.gz" +pkgbase=findutils +vers=4.6.0 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ABOUT-NLS README AUTHORS README-hacking NEWS THANKS INSTALL COPYING + ChangeLog tool-versions.txt ChangeLog-2013 README-alpha TODO" ###################################################################### fscheck() { @@ -272,6 +273,8 @@ make install DESTDIR=$P fi done + rm -rf $P/usr/{bin/{locate,updatedb},libexec} + rm -rf $mandir/{man1/{locate,updatedb}.1,man5} touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,6 +299,8 @@ 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/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/gawk/PlamoBuild.gawk-4.1.3 2016-07-10 11:19:26.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gawk/gawk-4.1.3.tar.xz" +pkgbase=gawk +vers=4.1.3 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS POSIX.STD COPYING README AUTHORS INSTALL + `echo README_d/README.{VMS,mpfr,os2,bootstrap,gcc-3,zos,macosx}` + `echo README_d/{ChangeLog,README.{multibyte,hacking,tests}}` + `echo README_d/{ChangeLog.0,README.{solaris,pc}}` + ChangeLog ABOUT-NLS NEWS.0" ###################################################################### fscheck() { @@ -277,6 +281,9 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/awk + strip_libdir $P/usr/$libdir/gawk + touch -t `date '+%m%d0900'` $P/usr/libexec/awk $P/usr/$libdir/gawk for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +303,16 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/awk + tar rvpf $pkg.tar -C $P usr/$libdir/gawk + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P usr/share/awk + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/glibc/PlamoBuild.glibc-2.20 2016-06-07 07:52:10.000000000 +0900 @@ -1,15 +1,24 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/glibc/glibc-2.20.tar.xz + http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.19-fhs-1.patch + http://ftp.su.se/pub/mirrors/lunar-linux.org/lunar/patches/glibc-2.20-do_ftell_wide-memleak.patch + http://ftp.su.se/pub/mirrors/lunar-linux.org/lunar/patches/glibc-2.20-getifaddrs_internal-segfault.patch + http://ftp.su.se/pub/mirrors/lunar-linux.org/lunar/patches/glibc-2.20-linux-3.16-additions.patch + http://slackware.cs.utah.edu/pub/slackware/slackware-current/source/l/glibc/glibc-c-utf8-locale.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-7547.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-8776.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-8778.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-8779.patch" +pkgbase=glibc +vers=2.20 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-kernel=2.6.32 --enable-obsolete-rpc" +DOCS="BUGS CONFORMANCE COPYING* ChangeLog* INSTALL LICENSES NEWS + PROJECTS README" ###################################################################### fscheck() { @@ -163,6 +172,7 @@ W=`pwd` for i in `seq 0 $((${#src[@]} - 1))` ; do S[$i]=$W/${src[$i]} ; B[$i]=$W/build`test ${#src[@]} -eq 1 || echo $i` + S2[$i]=$W/source`test ${#src[@]} -eq 1 || echo $i` done P=$W/work ; C=$W/pivot infodir=$P/usr/share/info @@ -220,31 +230,54 @@ fi if [ $opt_config -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done + if [ -d ${S2[$i]} ] ; then rm -rf ${S2[$i]} ; fi ; cp -a ${S[$i]} ${S2[$i]} + if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; mkdir ${B[$i]} done + cd $S2 + patch -Np1 -i $W/glibc-2.19-fhs-1.patch + patch -Np1 -i $W/glibc-2.20-do_ftell_wide-memleak.patch + patch -Np1 -i $W/glibc-2.20-getifaddrs_internal-segfault.patch + patch -Np1 -i $W/glibc-2.20-linux-3.16-additions.patch + gunzip -c $W/glibc-c-utf8-locale.patch.gz | patch -Np1 -i - + patch -Np1 -i $W/CVE-2015-7547.patch + patch -Np1 -i $W/CVE-2015-8776.patch + patch -Np1 -i $W/CVE-2015-8778.patch + patch -Np1 -i $W/CVE-2015-8779.patch + cp -p localedata/Makefile{,.orig} + cat <<- "EOF" | patch localedata/Makefile + 235a236 + > --no-archive \ + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${S2[$i]} if [ -f Makefile ] ; then make clean fi if [ -f config.log ] ; then rm -rf config.cache config.log fi - if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + cd ${B[$i]} + case $arch in + i686) + cat <<- "EOF" > configparms ;; + CFLAGS += -march=i486 -mtune=native -O3 -pipe + EOF + x86_64) + cat <<- "EOF" > configparms ;; + slibdir=/lib64 + CFLAGS += -march=x86-64 -mtune=generic -O3 -pipe + EOF + armv7l) + cat <<- "EOF" > configparms ;; + CFLAGS += -march=armv7-a -mtune=native -O3 -pipe + EOF + esac + if [ -x ${S2[$i]}/configure ] ; then + ${S2[$i]}/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir/glibc \ + --build=$arch-pc-linux --target=$arch-pc-linux fi done fi @@ -270,13 +303,66 @@ cd ${B[$i]} if [ -f Makefile ] ; then make install DESTDIR=$P + ln -s $P/usr/share/locale $P/usr/$libdir + make localedata/install-locales DESTDIR=$P fi done + find $P/usr/$libdir -maxdepth 1 ! -type d -exec rm {} \; + mv $P/usr/$libdir/{gconv,glibc,audit} $C + mv $C/{gconv,glibc,audit} $P/usr/$libdir + ln -sf /usr/share/locale $P/usr/$libdir + ln -s ja_JP.eucJP $P/usr/share/locale/ja_JP + mv $P/usr/share/locale/{ja,ja_JP.eucJP} + ln -s ja_JP.eucJP $P/usr/share/locale/ja + gunzip $P/usr/share/i18n/charmaps/EUC-JP.gz + localedef -f $P/usr/share/i18n/charmaps/EUC-JP \ + -i $P/usr/share/i18n/locales/ja_JP \ + $P/usr/share/locale/ja_JP.eucJP + gzip $P/usr/share/i18n/charmaps/EUC-JP + install -d $P/usr/share/locale/ja_JP.UTF-8 + gunzip $P/usr/share/i18n/charmaps/UTF-8.gz + localedef -f $P/usr/share/i18n/charmaps/UTF-8 \ + -i $P/usr/share/i18n/locales/ja_JP \ + $P/usr/share/locale/ja_JP.UTF-8 + gzip $P/usr/share/i18n/charmaps/UTF-8 + cat <<- EOF > $P/etc/ld.so.conf.new + /usr/local/$libdir + /opt/kde/$libdir + /usr/$libdir/sasl2 + /usr/$libdir/pstoedit + /usr/heimdal/$libdir + /usr/$libdir/xulrunner + /opt/mysql/$libdir + /opt/pgsql/$libdir + EOF + cat <<- "EOF" > $P/etc/nsswitch.conf.new + # /etc/nsswitch.conf + # + # Name Service Switch configuration file. + # + + passwd: files db nis + shadow: files + group: files db nis + + hosts: files nisplus nis dns + networks: files nisplus + + ethers: files db nisplus + protocols: files db nisplus + rpc: files db nisplus + services: files db nisplus + autofs: files + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/gconv + strip_bindir $P/usr/$libdir/glibc/getconf + strip_libdir $P/usr/$libdir/audit + touch -t `date '+%m%d0900'` $P/usr/$libdir/{gconv,glibc/getconf,audit} for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +381,55 @@ ( 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` + prune_symlink $P/usr/share/locale + touch -t `date '+%m%d0900'` $P/usr/share/locale + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + EOF + cat <<- "EOF" >> $P/install/doinst.sh + glibc_config() { + mv /etc/$1.conf.new /tmp + if [ -f /etc/$1.conf ] ; then + mv /tmp/$1.conf.new /etc/$1.conf.dist + else + mv /tmp/$1.conf.new /etc/$1.conf + fi + } + + echo "glibc ¥Ñ¥Ã¥±¡¼¥¸¤Î½é´ü²½Ãæ" + # ´û¸¤Î ld.so.conf ¤¬Ìµ¤±¤ì¤Ð¡¤¿·¤·¤¯ ld.so.conf.new ¤ò + # ld.so.conf ¤È¤¹¤ë¤¬¡¤¤¢¤ì¤Ð¤½¤Î¤Þ¤Þ¤Ë¤·¤Æ¤ª¤¯¡¥ + glibc_config ld.so + ldconfig + + # ´û¸¤Î nsswitch.conf ¤¬Ìµ¤±¤ì¤Ð¡¤¿·¤·¤¯ nsswitch.conf.new ¤ò + # nsswitch.conf ¤È¤¹¤ë¤¬¡¤¤¢¤ì¤Ð¤½¤Î¤Þ¤Þ¤Ë¤·¤Æ¤ª¤¯¡¥ + glibc_config nsswitch + + echo "glibc ¥¿¥¤¥à¥¾¡¼¥óÀßÄêÃæ" + # ´û¸¤Î localtime ¤¬¤¢¤ì¤Ð¤½¤Î¤Þ¤Þ¡¤Ìµ¤±¤ì¤Ð JST ¤Çºî¤ë¡¥ + if [ ! -f /etc/localtime ] ; then + TIMEZONE="Japan" + ln -sf posix/$TIMEZONE /usr/share/zoneinfo/localtime + cp -p /usr/share/zoneinfo/localtime /etc/localtime + fi + + echo "glibc ¥Ñ¥Ã¥±¡¼¥¸¤Î½é´ü²½´°Î»" + #%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 | tail -n+2` +# tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/{i18n,locale} +# tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc | tail -n+2` + tar rvpf $pkg.tar -C $P var/lib/nss_db 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/grep/PlamoBuild.grep-2.20 2015-12-31 14:07:40.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/grep/grep-2.20.tar.xz + https://raw.githubusercontent.com/maximeh/buildroot/master/package/grep/0001-fix-CVE-2015-1345.patch" +pkgbase=grep +vers=2.20 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--disable-perl-regexp" +DOCS="INSTALL NEWS README AUTHORS ABOUT-NLS COPYING THANKS TODO + ChangeLog-2009 README-alpha README-release ChangeLog" ###################################################################### fscheck() { @@ -186,35 +187,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -222,17 +202,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np1 -i $W/0001-fix-CVE-2015-1345.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +213,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -296,6 +267,7 @@ 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/locale -name "*.mo"` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/groff/PlamoBuild.groff-1.18.1.1 2016-07-30 04:51:27.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/groff/old/groff-1.18.1.1.tar.gz + https://launchpad.net/ubuntu/+archive/primary/+files/groff_1.18.1.1-20.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/groff/groff-1.18.1.1-fix-minus-char.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/groff/groff-1.18.1.1-polyfill_fix.patch.gz" +pkgbase=groff +vers=1.18.1.1 arch=`uname -m` -build=P1 +build=P5 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-multibyte" +DOCS="BUG-REPORT COPYING ChangeLog FDL INSTALL* MANIFEST MORE.STUFF + NEWS PROBLEMS PROJECTS README* REVISION TODO VERSION" ###################################################################### fscheck() { @@ -233,6 +237,10 @@ esac done done + cd $B + gunzip -c $W/groff_1.18.1.1-20.diff.gz | patch -Np1 -i - + gunzip -c $W/groff-1.18.1.1-fix-minus-char.patch.gz | patch -Np1 -i - + gunzip -c $W/groff-1.18.1.1-polyfill_fix.patch.gz | patch -Np1 -i - for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -269,9 +277,17 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + install -d $P/usr + make install prefix=$P/usr fi done + ln -s tbl $P/usr/bin/gtbl + ln -s eqn $P/usr/bin/geqn + gdocdir=$docdir/groff/1.18.1 + dt=`LANG=C date '+%a %b %e 09:00:00 %Y'` + sed -i "s/\(CreationDate:\).*$/\1 $dt/g" $gdocdir/{examples/,}*.ps + sed -i "s/\(CreationDate:\).*\(-->\)/\1 $dt \2/g" \ + $gdocdir/{examples,html}/*.html touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +310,29 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $gdocdir/{html,examples,me{ref,intro}.me,pic.ms} $docdir/$src + mv $gdocdir/{me{ref,intro},pic}.ps $docdir/$src + mv $docdir/$src/{html,examples,me{ref,intro}.me,pic.ms} $C + mv $docdir/$src/{me{ref,intro},pic}.ps $C + mv $docdir/$src/{BUG-REPORT,COPYING,ChangeLog,FDL,INSTALL*}.gz $C + mv $docdir/$src/{MANIFEST,MORE.STUFF,NEWS,PROBLEMS,PROJECTS}.gz $C + mv $docdir/$src/{README*,REVISION,TODO,VERSION,$myname}.gz $C + mv $C/{html,examples,me{ref,intro}.me,pic.ms} $docdir/$src + mv $C/{me{ref,intro},pic}.ps $docdir/$src + mv $C/{BUG-REPORT,COPYING,ChangeLog,FDL,INSTALL*}.gz $docdir/$src + mv $C/{MANIFEST,MORE.STUFF,NEWS,PROBLEMS,PROJECTS}.gz $docdir/$src + mv $C/{README*,REVISION,TODO,VERSION,$myname}.gz $docdir/$src + touch -r $S $docdir/$src convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/groff + tar rvpf $pkg.tar -C $P usr/share/groff + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/grub/PlamoBuild.grub-2.02~beta2 2016-06-21 22:41:23.000000000 +0900 @@ -1,15 +1,22 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://http.debian.net/debian/pool/main/g/grub2/grub2_2.02~beta2.orig.tar.xz + http://http.debian.net/debian/pool/main/g/grub2/grub2_2.02~beta2-32.debian.tar.xz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/grub/plamo_grubconfig.tar.gz" +pkgbase=grub +vers=2.02~beta2 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P13 +src[0]=$pkgbase-$vers +src[1]=${src[0]} +patchfiles[0]="" +patchfiles[1]="" +OPT_CONFIG[0]="--disable-grub-mount --disable-werror" +OPT_CONFIG[1]="${OPT_CONFIG[0]} --with-platform=efi" +DOCS[0]="BUGS TODO THANKS COPYING ABOUT-NLS ChangeLog AUTHORS README + NEWS INSTALL" +DOCS[1]="" ###################################################################### fscheck() { @@ -235,6 +242,15 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} + for j in `cat $W/debian/patches/series` ; do + if [ $j != dpkg_version_comparison.patch ] ; then + patch -Np1 -i $W/debian/patches/$j + fi + done + ./autogen.sh + done + for i in `seq 0 $((${#B[@]} - 1))` ; do + cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -272,6 +288,30 @@ make install DESTDIR=$P fi done + install -d $P/sbin + install $W/plamo_grubconfig/sbin/grubconfig{,_mbr,_efi} $P/sbin + install $W/plamo_grubconfig/sbin/grub_partuuid.sh $P/sbin + install -d $P/etc/default + cat <<- "EOF" > $P/etc/default/grub + # Default menu entry + GRUB_DEFAULT=0 + # Time after the menu displayed + GRUB_TIMEOUT=10 + # Time before displaying the menu + #GRUB_HIDDEN_TIMEOUT=0 + # Display countdown or not + #GRUB_HIDDEN_TIMEOUT_QUIET=false + # Command line arguments for default linux entry + GRUB_CMDLINE_LINUX_DEFAULT="vga16 unicon=eucjp vt.default_utf8=0 panic_output=7" + # Command line arguments for all linux entry + #GRUB_CMDLINE_LINUX= + # Distributor + GRUB_DISTRIBUTOR=Plamo + EOF + install -d $P/var/log/setup + for i in {,e}setup.bootloader ; do + install $W/plamo_grubconfig/var/log/setup/$i $P/var/log/setup + done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -290,13 +330,22 @@ touch -t `date '+%m%d0900'` $docdir/$src/$myname gzip_one $docdir/$src/$myname else - ln $docdir/$src/$myname.gz $docdir/${src[$i]} + false && ln $docdir/$src/$myname.gz $docdir/${src[$i]} fi ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/grub + tar rvpf $pkg.tar -C $P usr/share/grub + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` + tar rvpf $pkg.tar -C $P etc/grub.d + tar rvpf $pkg.tar -C $P `cd $P ; find etc/bash_completion.d | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc/default | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find var/log/setup | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/gzip/PlamoBuild.gzip-1.6 2016-01-05 21:07:54.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gzip/gzip-1.6.tar.gz" +pkgbase=gzip +vers=1.6 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--bindir=/bin" +DOCS="INSTALL NEWS README AUTHORS COPYING THANKS TODO ChangeLog-2007 + README-release ChangeLog" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +239,8 @@ make install DESTDIR=$P fi done + install -d $P/usr/bin + mv $P/bin/z{cmp,diff,{e,f}grep,force,grep,less,more,new} $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,7 +264,9 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/hdsetup/PlamoBuild.hdsetup-6.1 2016-09-11 12:29:12.000000000 +0900 @@ -1,15 +1,62 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.busybox.net/downloads/busybox-1.24.1.tar.bz2 + 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.25.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=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P8 +src[0]=busybox-1.24.1 +src[1]=dialog-1.3-20160209 +src[2]=coreutils-8.25 +src[3]=gzip-1.6 +src[4]=bzip2-1.0.6 +src[5]=xz-5.2.2 +src[6]=tar-1.26 +patchfiles[0]="" +patchfiles[1]="" +patchfiles[2]="" +patchfiles[3]="" +patchfiles[4]="" +patchfiles[5]="" +patchfiles[6]="`echo tar-{1.23-{tartime,txz},1.26-no-gets}.patch.gz`" +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" +OPT_CONFIG[2]+=",hostid,nice,who,users,pinky,uptime,stty,df,stdbuf,[,base64" +OPT_CONFIG[2]+=",base32,basename,cat,chcon,chgrp,chmod,chown,cksum,comm,cp" +OPT_CONFIG[2]+=",csplit,cut,date,dd,dir,dircolors,dirname,du,echo,env,expand" +OPT_CONFIG[2]+=",expr,factor,false,fmt,fold,groups,head,id,join,kill,link,ln" +OPT_CONFIG[2]+=",logname,md5sum,mkdir,mkfifo,mknod,mktemp,mv,nl,nproc,nohup" +OPT_CONFIG[2]+=",numfmt,od,pathchk,pr,printenv,printf,ptx,pwd,readlink" +OPT_CONFIG[2]+=",realpath,rm,rmdir,runcon,seq,sha1sum,sha224sum,sha256sum" +OPT_CONFIG[2]+=",sha384sum,sha512sum,shred,shuf,sleep,sort,split,stat,sum" +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() { @@ -233,9 +280,11 @@ esac done done + cd ${B[0]} + cp -p $W/busybox-1.24.1-config .config for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f [Mm]akefile ] ; then make clean fi if [ -f config.log ] ; then @@ -251,8 +300,14 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then - make + if [ -f [Mm]akefile ] ; then + case $i in + 0) make ;; + 1) make LIBS="-lncursesw -lm -ldl -static" ;; + 4) make LDFLAGS="-ldl -static" ;; + 5) make LIBS="-ldl -all-static" ;; + *) make LIBS="-ldl -static" ;; + esac fi done fi @@ -268,15 +323,30 @@ 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 [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 + 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 + install -d $P/usr/lib/setup + touch $P/usr/lib/setup/Plamo-$vers touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/sbin/installer + touch -t `date '+%m%d0900'` $P/sbin/installer for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,9 +364,22 @@ fi ( 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 + mv $C/{docs,{TODO,LICENSE,README,AUTHORS,INSTALL}.gz} $docdir/$src + mv $C/{TODO_unicode,$myname}.gz $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/lib/setup 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/hibernate_script/PlamoBuild.hibernate_script-2.0 2016-01-07 13:18:05.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +url="http://tuxonice.net/files/hibernate-script-2.0.tar.gz" +pkgbase=hibernate_script +vers=2.0 +arch=noarch +build=P4 +src=hibernate-script-$vers OPT_CONFIG="" -DOCS="README" +DOCS="COPYING SCRIPTLET-API README.xfs README CHANGELOG" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +199,9 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p install.sh{,.orig} + sed -i '/MAN_DIR=/s@man@share/man@g' install.sh for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +211,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +241,11 @@ make install DESTDIR=$P fi done + install -d $P/etc/logrotate.d + export PREFIX=/usr + export BASE_DIR=$P + ./install.sh + chown -R root.root $P/usr/share/hibernate touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,8 +269,12 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/hibernate + tar rvpf $pkg.tar -C $P etc/hibernate + tar rvpf $pkg.tar -C $P `cd $P ; find etc/logrotate.d | 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/iproute2/PlamoBuild.iproute2-4.2.0 2016-01-07 07:54:00.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.2.0.tar.xz" +pkgbase=iproute2 +vers=4.2.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING README*" ###################################################################### fscheck() { @@ -186,35 +185,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +219,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make LIBDIR=/usr/$libdir fi done fi @@ -269,7 +236,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P SBINDIR=/sbin LIBDIR=/usr/$libdir \ + MANDIR=/usr/share/man fi done touch $W/i.et @@ -277,6 +245,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/tc for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +263,21 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/iproute2 $docdir/$src/doc + mv $docdir/$src/{doc,$myname.gz} $C + mv $C/{doc,$myname.gz} $docdir/$src + touch -r $S $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` + touch -t `date '+%m%d0900'` $P/usr/$libdir/tc + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/tc + tar rvpf $pkg.tar -C $P etc/iproute2 + tar rvpf $pkg.tar -C $P var/lib/arpd + 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/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/iputils/PlamoBuild.iputils-s20101006 2016-03-21 18:20:06.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.skbuff.net/iputils/iputils-s20101006.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/iputils/iputils-s20101006-fixes-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/iputils/iputils-s20100418-doc-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/iputils/iputils-s20101006-Makefile.patch.gz" +pkgbase=iputils +vers=s20101006 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL RELNOTES" ###################################################################### fscheck() { @@ -186,35 +188,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +202,12 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + gunzip -c $W/iputils-s20101006-fixes-1.patch.gz | patch -Np1 -i - + gunzip -c $W/iputils-s20100418-doc-1.patch.gz | patch -Np1 -i - + gunzip -c $W/iputils-s20101006-Makefile.patch.gz | patch -Np1 -i - + cp -p Makefile{,.orig} + sed -i "s|@LIBDIR@|/usr/$libdir|" Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +217,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -253,6 +228,7 @@ cd ${B[$i]} if [ -f Makefile ] ; then make + make man fi done fi @@ -272,6 +248,14 @@ make install DESTDIR=$P fi done + install -d $P/{bin,usr/{sbin,bin}} + install ping{,6} $P/bin + chmod +s $P/bin/ping{,6} + install arping clockdiff tracepath{,6} $P/usr/sbin + install traceroute6 $P/usr/bin + chmod +s $P/usr/bin/traceroute6 + install -d $P/usr/share/man/man8 + install -m 644 doc/*.8 $P/usr/share/man/man8 touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,8 +279,10 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/kbd/PlamoBuild.kbd-1.15.5 2016-03-21 18:25:25.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-1.15.5.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/kbd/kbd-1.15-backspace-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/kbd/kbd-1.15-plamo-compat.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/kbd/kbd-1.15.5-revert_loadkeys_analize.patch.gz" +pkgbase=kbd +vers=1.15.5 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL ChangeLog NEWS AUTHORS CREDITS COPYING ABOUT-NLS README" ###################################################################### fscheck() { @@ -186,35 +188,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +202,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + gunzip -c $W/kbd-1.15-backspace-1.patch.gz | patch -Np1 -i - + gunzip -c $W/kbd-1.15-plamo-compat.patch.gz | patch -Np1 -i - + gunzip -c $W/kbd-1.15.5-revert_loadkeys_analize.patch.gz | patch -Np1 -i - for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +215,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +245,11 @@ make install DESTDIR=$P fi done + install -d $P/bin + for i in dumpkeys loadkeys setfont kbd_mode openvt ; do + mv $P/usr/bin/$i $P/bin + ln -s /bin/$i $P/usr/bin/$i + done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +273,18 @@ ( 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` + prune_symlink $P/usr/share/keymaps + touch -t `date '+%m%d0900'` $P/usr/share/keymaps + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/console{fonts,trans} + tar rvpf $pkg.tar -C $P usr/share/{uni,key}maps + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name kbd.mo` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/kernel/PlamoBuild.kernel-4.1.15_plamoRPi2 2016-02-19 08:11:19.000000000 +0900 @@ -1,15 +1,22 @@ -#!/bin/sh +#!/bin/sh -x ###################################################################### -url="" -pkgbase= -vers= +url="https://github.com/raspberry/linux.git + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/UNICON/vd_unicon-kernel-20150627-4.1.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/UNICON/vd_unicon-kernel-fonts-20140614.patch.bz2 + https://github.com/sfjro/aufs4-standalone.git + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/mcp/4.1-panic_beep.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/mcp/4.1-morse_code_panics.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/toi/tuxonice-for-linux-4.1.6-2015-08-22.patch.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/ovlfs/overlayfs-allow_unprivileged_mounts.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/config-4.1.15-plamoRPi2" +pkgbase=kernel +vers=4.1.15_plamoRPi2 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=linux OPT_CONFIG="" -DOCS="README" +DOCS="" ###################################################################### fscheck() { @@ -186,35 +193,22 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; fi ;; + *) if [ ! -f ${i##*/} ] ; then wget $i ; fi ;; + esac done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + case `basename ${i##*/} .git` in + linux) git checkout origin/rpi-4.1.y ; git reset --hard d51c7d8 ;; + aufs4-*) git checkout origin/aufs4.1 ; git reset --hard 2b569cf ;; + esac ) ;; esac done fi @@ -222,17 +216,33 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + rm -rf .git ; touch .git + patch -Np1 -i $W/vd_unicon-kernel-20150627-4.1.patch + bunzip2 -c $W/vd_unicon-kernel-fonts-20140614.patch.bz2 | patch -Np1 -i - + patch -Np1 -i $W/aufs4-standalone/aufs4-kbuild.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-base.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-mmap.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-standalone.patch + cp -av $W/aufs4-standalone/Documentation . + cp -av $W/aufs4-standalone/fs . + cp -pv $W/aufs4-standalone/include/uapi/linux/aufs_type.h include/uapi/linux + patch -Np1 -i $W/4.1-panic_beep.patch + patch -Np1 -i $W/4.1-morse_code_panics.patch + bunzip2 -c $W/tuxonice-for-linux-4.1.6-2015-08-22.patch.bz2 | patch -Np1 -i - + patch -Np1 -i $W/overlayfs-allow_unprivileged_mounts.patch + cp -p $W/config-4.1.15-plamoRPi2 .config + cp -p arch/arm/boot/install.sh{,.orig} + sed -i '/INSTALLKERNEL/s@^@#@g' arch/arm/boot/install.sh + cat <<- "EOF" | patch arch/arm/boot/install.sh + 40a41,42 + > cp .config $4/config-$1 + > + 54c56 + < cat $2 > $4/$base-$1 + --- + > scripts/mkknlimg $2 $4/kernel7.img-$1 + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +252,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,9 +279,21 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + install -d $P/boot + make zinstall INSTALL_PATH=$P/boot + make modules_install INSTALL_MOD_PATH=$P fi done + krel=${vers//_/-} + cp -p $P/boot/config{-$krel,} + cp -p $P/boot/kernel7.img{-$krel,} + cp -p $P/boot/System.map{-$krel,} + install -d $P/boot/overlays + install -m 644 $B/arch/arm/boot/dts/overlays/README $P/boot/overlays + install -m 644 $B/arch/arm/boot/dts/overlays/*.dtb $P/boot/overlays + install -m 644 $B/arch/arm/boot/dts/*.dtb $P/boot + ln -snf /usr/src/linux $P/lib/modules/$krel/source + ln -snf /usr/src/linux $P/lib/modules/$krel/build touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -285,6 +307,7 @@ gzip_one $docdir/${src[$i]}/${k#${S[$i]}/} done done + install -d $docdir/$src if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname @@ -294,10 +317,15 @@ 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` + prune_symlink $P/lib/modules/$krel + touch -t `date '+%m%d0900'` $P/lib/modules/$krel + tar cvpf $pkg.tar -C $P `cd $P ; find boot -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P lib/modules/$krel + tar rvpf $pkg.tar -C $P lib/firmware 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/kmod/PlamoBuild.kmod-22 2016-06-06 08:18:11.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-22.tar.xz" +pkgbase=kmod +vers=22 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--bindir=/bin" +DOCS="NEWS COPYING TODO README" ###################################################################### fscheck() { @@ -224,17 +223,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -272,11 +260,38 @@ make install DESTDIR=$P fi done + install -d $P/sbin + for i in {dep,ins,rm}mod mod{probe,info} ; do + ln -s /bin/kmod $P/sbin/$i + done + install -d $P/usr/bin + ln -s /bin/kmod $P/usr/bin/lsmod touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + install -d $P/etc/modprobe.d + cat <<- "EOF" > $P/etc/modprobe.d/plamo-default.conf.new + # sample modprobe.conf entries + # + # alias ÄêµÁ¤ò¤·¤Æ¤ª¤±¤Ð modprobe eth0 ¤ÇɬÍפʥ⥸¥å¡¼¥ë¤ò¥í¡¼¥É²Äǽ + # alias eth0 skge + # + # ¥â¥¸¥å¡¼¥ë¤ò¥í¡¼¥É¤¹¤ëºÝ¤Î¥ª¥×¥·¥ç¥ó¤Ï option ÄêµÁ¤Ç»ØÄê²Äǽ + # options sb io=0x220 irq=7 dma=1 dma15=5 mpu_io=0x330 + # options skge debug=16 + # + # install ÄêµÁ¤Ï¤½¤Î¥â¥¸¥å¡¼¥ë¤òÁȤ߹þ¤àºÝ¤ÎÆ°ºî¤ò»ØÄꤹ¤ë¡£ + # ¥í¡¼¥É¤·¤ÆÍߤ·¤¯¤Ê¤¤¥â¥¸¥å¡¼¥ë¤Ï¤³¤¦¤¤¤¦É÷¤Ë»ØÄꤹ¤ì¤Ð¤¤¤¤ + # install intel_rng /bin/true + # install rng_core_rng /bin/true + # install ieee1394 /bin/true + # install ohci1394 /bin/true + + install usblp /bin/true + EOF + touch -t `date '+%m%d0900'` $P/etc/modprobe.d{,/plamo-default.conf.new} for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +310,29 @@ ( 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` + cat <<- "EOF" >> $P/install/doinst.sh + + mv etc/modprobe.d/plamo-default.conf.new /tmp + if [ -f etc/modprobe.d/plamo-default.conf ] ; then + mv /tmp/plamo-default.conf.new etc/modprobe.d/plamo-default.conf.dist + else + mv /tmp/plamo-default.conf.new etc/modprobe.d/plamo-default.conf + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | 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 `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/bash-completion/completions | tail -n+2` + tar rvpf $pkg.tar -C $P etc/modprobe.d + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/less/PlamoBuild.less-382 2016-04-09 20:52:10.000000000 +0900 @@ -1,15 +1,21 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/less-382.tar.gz + ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/less-382-iso258.patch.gz + ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/less-382-iso258-259.patch.gz + ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/less-382-iso259-260.patch.gz + ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/less-382-iso260-261.patch.gz + ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/less-382-iso261-262.patch.gz + ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/less-382-iso262.ext03.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/less/less-382-def_priority.patch.gz" +pkgbase=less +vers=382 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING INSTALL LICENSE NEWS README" ###################################################################### fscheck() { @@ -186,35 +192,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +206,19 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + gunzip -c $W/less-382-iso258.patch.gz | patch -Np1 -fT -i - + gunzip -c $W/less-382-iso258-259.patch.gz | patch -Np1 -i - + gunzip -c $W/less-382-iso259-260.patch.gz | patch -Np1 -fT -i - + gunzip -c $W/less-382-iso260-261.patch.gz | patch -Np1 -i - + gunzip -c $W/less-382-iso261-262.patch.gz | patch -Np1 -i - + gunzip -c $W/less-382-iso262.ext03.patch.gz | patch -Np1 -fT -i - + gunzip -c $W/less-382-def_priority.patch.gz | patch -Np1 -i - + cp -p Makefile.in Makefile.in.orig ; chmod 644 Makefile.in + sed -i -e '/^\t\${INSTALL_/s@\${bindir@$(DESTDIR)&@g' \ + -e '/^\t\${INSTALL_/s@\${mandir@$(DESTDIR)&@g' \ + -e '/\/mkinstalldirs/s@\${bindir@$(DESTDIR)&@g' \ + -e '/\/mkinstalldirs/s@\${mandir@$(DESTDIR)&@g' Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +228,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +258,64 @@ make install DESTDIR=$P fi done + uudecode <<- "EOF" | gunzip > $P/usr/share/man/man1/lessecho.1 + begin-base64 644 /dev/stdout + H4sIAAAAAAAAA4VUXWvbQBB8169Y9JTQWE1SUtpSSpzE1IbUNjmnUJI8nKWVfKD76H1g699375y4 + Ko3al+M47czODLsqVlO4nTA2uZ4u4Azy72id0ArefTh/I5w+v/j4CU7fA0MD56enF3lWsCnMx98m + WYvOYbnR8DgC3BmuKpDoebnhlpeeaFIp+zFfLNmMZcUVvCCyYgb5w0jvnuBhVKbTqHhW6ZTpRaU7 + pjt/glq0CEVR7AXkNxN2fTdbrmaLeR7pDtTCAQdjdWO5BL/hHpyQpu0gfnUgPH23TZCo6EY+nSfh + 3FaggzfBF9lV8MBVd6iCUivPhRKqAWd4iUTiAFXZaocVCAU/g/boiiRskSSxbAwuSMltB7oGbTxF + mnCCcKEi3BpbvSXMahmTeaQwMmawFLWgBvkuB6+phhwgwfG5CRzC7SHLYWTS+A+oUX2o+l/TE+CU + niITHps/iKpholc1DDPJ193ww2z1atXrXX/XDrfB4dDQldzstUKt7YHM9eD1sN9B+LAY3iNLI8vb + tjel3OIzf0qxKrIV9amw5qH1cagSRqu264H+ntpI80KQdohNJjC+ZYs8rfLR2XF6Ht+vpos7akHE + kqvAWzC8QdiS+q0V3tNcrDtYbbSkF0ZbhaaGz25/uaxwLbgqtG2+nGTRf8zkJj3C1/n921uhwg5c + 5zxKOFrTskneRW8hbhMRawJYd0wal8uMIf1V1qEBi0bbuLGWnMm9xZhJaEZR/GWjQuxZZL8Ajlv3 + 69AEAAA= + ==== + EOF + cat <<- "EOF" > $P/usr/bin/lesspipe.sh + #!/bin/sh - + # + # To use this filter with less, define LESSOPEN: + # export LESSOPEN="|/usr/bin/lesspipe.sh %s" + + lesspipe() { + case "$1" in + *.[1-9n]|*.man|*.[1-9n].bz2|*.man.bz2|*.[1-9].gz|*.[1-9]x.gz|*.[1-9].man.gz) + case "$1" in + *.gz) DECOMPRESSOR="gunzip -c" ;; + *.bz2) DECOMPRESSOR="bunzip2 -c" ;; + *) DECOMPRESSOR="cat" ;; + esac + if $DECOMPRESSOR -- "$1" | file - | grep -q "troff" ; then + if echo "$1" | grep -q "^/" ; then # absolute path + man -- "$1" | cat -s + else + man -- "./$1" | cat -s + fi + else + $DECOMPRESSOR -- "$1" + fi ;; + *.tar|*.tar.*|*.tgz|*.tbz2|*.txz) tar tvvf "$1" ;; + *.[zZ]|*.gz) gzip -dc -- "$1" ;; + *.xz) xz -dc -- "$1" ;; + *.lzma|*.lzm) lzma --dc -- "$1" ;; + *.lzo) lzop --dc -- "$1" ;; + *.lzh) lha -l "$1" ;; + *.bz2) bzip2 -dc -- "$1" ;; + *.zip|*.jar|*.od[ts]) zipinfo -- "$1" ;; + *.rpm) rpm -qpivl --changelog -- "$1" ;; + *.cpi|*.cpio) cpio -itv < "$1" ;; + esac + } + + if [ -d "$1" ] ; then + ls -flF -- "$1" + else + lesspipe "$1" 2> /dev/null + fi + EOF + chmod 755 $P/usr/bin/lesspipe.sh touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,6 +338,18 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -p $B/{LICENSE,README.{iso{,.jp},ext.jp}} $docdir/$src + chmod 644 $docdir/$src/LICENSE + chown root.root $docdir/$src/{LICENSE,README.{iso{,.jp},ext.jp}} + nkf -e --in-place $docdir/$src/README.iso.jp + touch -r $B/README.iso.jp $docdir/$src/README.iso.jp + rm $docdir/$src/LICENSE.gz + for i in LICENSE README.{iso{,.jp},ext.jp} ; do + gzip_one $docdir/$src/$i + done + mv $docdir/$src/{README.{iso{,.jp},ext.jp},$myname}.gz $C + mv $C/{README.{iso{,.jp},ext.jp},$myname}.gz $docdir/$src + touch -r $S $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` --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/libcap/PlamoBuild.libcap-2.22 2016-01-07 09:39:29.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_2.22.orig.tar.gz" +pkgbase=libcap +vers=2.22 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CHANGELOG License README" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,14 +235,20 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install DESTDIR=$P fi done + install -d $P/usr/$libdir + mv $P/$libdir/libcap.a $P/usr/$libdir + rm $P/$libdir/libcap.so + ln -s /$libdir/libcap.so.2 $P/usr/$libdir/libcap.so touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/$libdir/security + touch -t `date '+%m%d0900'` $P/$libdir/security for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +267,15 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include/sys | tail -n+2` 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/libgcc/PlamoBuild.libgcc-4.8.5 2016-01-28 13:05:06.000000000 +0900 @@ -1,15 +1,20 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2 + https://patchwork.ozlabs.org/patch/342434/mbox" +pkgbase=libgcc +vers=4.8.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=gcc-$vers +OPT_CONFIG="--disable-werror --disable-multilib --enable-install-libiberty + --enable-__cxa_atexit --enable-threads=posix --enable-shared + --enable-languages=c,c++,fortran,go --enable-gnu-unique-object + --enable-linker-build-id --enable-plugin --with-system-zlib + --with-linker-hash-style=gnu --enable-clocale=gnu --disable-libstdcxx-pch" +DOCS="COPYING ChangeLog ABOUT-NLS NEWS COPYING3.LIB ChangeLog.tree-ssa + COPYING3 COPYING.RUNTIME README COPYING.LIB MAINTAINERS" ###################################################################### fscheck() { @@ -48,9 +53,9 @@ strip_bindir() { echo "compressing in $1" if [ -d $1 ] ; then ( - shopt -s nullglob + shopt -s extglob nullglob cd $1 - for i in * ; do + for i in `echo !(*.so|*.so.*|*.a|*.o)` ; do echo "$i" if [ -h $i ] ; then continue ; fi if [ -n "`file $i | grep "not stripped"`" ] ; then @@ -185,36 +190,19 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=gcc-4.8-filename-output.patch for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi + if [ ${i##*/} == mbox ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then + wget $i fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +210,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np0 -i $W/gcc-4.8-filename-output.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +221,12 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` \ + --host=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -272,6 +254,13 @@ make install DESTDIR=$P fi done + mv $P/usr/$libdir/lib{iberty.a,gcc_s.so{.1,}} $C + mv $C/lib{iberty.a,gcc_s.so{.1,}} $P/usr/$libdir + rm -rf $P/usr/$libdir/{gcc,libiberty.a,*-gdb.py,go} + rm -f $P/usr/$libdir/lib{supc++,mudflap,asan,tsan,ssp,quadmath}* + rm -f $P/usr/$libdir/lib{gfortran,atomic,go,itm}* + mv $P/usr/$libdir/lib{gcc_s.so{.1,},stdc++.{so{.6{.0.19,},},la,a}} $C + mv $C/lib{gcc_s.so{.1,},stdc++.{so{.6{.0.19,},},la,a}} $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +284,9 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/libtirpc/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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/lilo/PlamoBuild.lilo-24.2 2016-03-23 07:18:35.000000000 +0900 @@ -1,15 +1,20 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://lilo.alioth.debian.org/ftp/sources/lilo-24.2.tar.gz + ftp://ftp.internat.freebsd.org/pub/FreeBSD/distfiles/Dev86src-0.16.18.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/lilo/dev86-0.16.17-x86_64.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/lilo/dev86-0.16.17-copt.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/lilo/plamo_liloconfig.tar.gz" +pkgbase=lilo +vers=24.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="`echo readme/README.{bitmaps,common.problems,disk,nokeyboard}` + `echo readme/{README.{pseudo,volumeID,raid1},INCOMPAT,README}` + NEWS CHANGELOG TODO README COPYING CHANGELOG_old TOOLS" ###################################################################### fscheck() { @@ -186,35 +191,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +205,21 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p checkit checkit.orig + sed 's@^gcc @LANG=C gcc @g' checkit.orig > checkit + cp -p diagnose/Makefile diagnose/Makefile.orig + cat <<- "EOF" | patch diagnose/Makefile + 36c36 + < @if [ -x /usr/bin/bcc -o -x /usr/local/bin/bcc ]; then echo Okay; \ + --- + > @if which bcc; then echo Okay; \ + EOF + cd $W/dev86-0.16.18 + gunzip -c $W/dev86-0.16.17-x86_64.patch.gz | patch -Np1 -i - + gunzip -c $W/dev86-0.16.17-copt.patch.gz | patch -Np1 -i - + make PREFIX=$W/dev86 install + PATH="$W/dev86/bin:$PATH" for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +229,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +239,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make -i alles diagnostic fi done fi @@ -272,11 +259,23 @@ make install DESTDIR=$P fi done + mv $P/sbin/lilo{.static,} + rm $P/usr/sbin/liloconfig + rm $P/boot/{debian{,-de,lilo},coffee}.{bmp,dat} touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for i in {{,e}lilo,{,e}osldr}config ; do + cp -p plamo_liloconfig/sbin/$i $P/sbin ; chown root.root $P/sbin/$i + done + ln -s liloconfig $P/sbin/liloconfig-color + install -d $P/var/log/setup + for i in {,e}text.lilohelp {,e}setup.bootloader ; do + cp -p plamo_liloconfig/var/log/setup/$i $P/var/log/setup + chown root.root $P/var/log/setup/$i + done for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +293,28 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mkdir $docdir/$src/sample + for i in sample/lilo.{old-{raid,special},example}.conf \ + images/{{inside,onlyblue,tuxlogo}_16c.dat,README} ; do + cp -p $S/$i $docdir/$src/sample + done + touch -r $S/sample $docdir/$src/sample + cp -a $S/doc $docdir/$src + chown -R root.root $docdir/$src/{sample,doc} + mv $docdir/$src/{readme,sample,{NEWS,CHANGELOG,TODO,README}.gz} $C + mv $docdir/$src/{{COPYING,CHANGELOG_old,TOOLS}.gz,doc,$myname.gz} $C + mv $C/{readme,sample,{NEWS,CHANGELOG,TODO,README}.gz} $docdir/$src + mv $C/{{COPYING,CHANGELOG_old,TOOLS}.gz,doc,$myname.gz} $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find boot | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find var/log/setup | 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/linux_firmware/PlamoBuild.linux_firmware-git_20160112 2016-01-26 12:06:22.000000000 +0900 @@ -1,15 +1,28 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +url="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git" +pkgbase=linux_firmware +vers=git_20160112 +arch=noarch +build=P2 +src=linux-firmware OPT_CONFIG="" -DOCS="README" +DOCS="GPL-3 `echo LICENCE.{Abilis,IntcSST2,Marvell,OLPC}` LICENSE.radeon + `echo LICENCE.{agere,atheros_firmware,broadcom_bcm43xx,ca0132}` + `echo LICENCE.{chelsio_firmware,cw1200}` README LICENCE.ene_firmware + `echo LICENCE.{fw_sst_0f28,go7007,i2400m,ibt_firmware,it913x}` + `echo LICENCE.{iwlwifi_firmware,adsp_sst}` WHENCE LICENCE.mwl8335 + `echo LICENCE.{myri10ge_firmware,phanfw,qla2xxx,r8a779x_usb3}` + `echo LICENCE.{ralink-firmware.txt,ralink_a_mediatek_company_firmware}` + `echo LICENCE.{rtlwifi_firmware.txt,siano,tda7706-firmware.txt}` + `echo LICENCE.{ti-connectivity,ueagle-atm4-firmware,via_vt6656,wl1251}` + `echo LICENCE.{xc4000,xc5000,xc5000c}` `echo LICENSE.{amd-ucode,dib0700}` + `echo TDA7706_OM_{v2.5.1,v3.0.2}_boot.txt` `echo LICENCE.{cavium,e100}` + `echo LICENCE.{kaweth,moxa,nvidia,open-ath9k-htc-firmware,qat_firmware}` + `echo LICENCE.{qla1280,ti-keystone}` + `echo LICENSE.{QualcommAtheros_{ar3k,ath10k},amdgpu,atmel,hfi1_firmware}` + LICENSE.i915" ###################################################################### fscheck() { @@ -186,35 +199,20 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; else + ( cd `basename ${i##*/} .git` ; git pull origin master ) ; fi ;; + *) if [ ! -f ${i##*/} ] ; then wget $i ; fi ;; + esac done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + git checkout origin/master ; git reset --hard 40e9ae8 + git set-file-times ) ;; esac done fi @@ -224,17 +222,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +229,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -294,10 +281,14 @@ 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` + for i in . cxgb4 libertas ti-connectivity ; do + touch -t `date '+%m%d0900'` $P/lib/firmware/$i + done + tar cvpf $pkg.tar -C $P lib/firmware 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/linux_pam/PlamoBuild.linux_pam-1.1.8 2015-12-25 10:59:46.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-1.1.8.tar.bz2 + https://raw.githubusercontent.com/willysr/csb/master/pam/pam-1.1.8-cve-2013-7041.patch + https://raw.githubusercontent.com/willysr/csb/master/pam/pam-1.1.8-cve-2014-2583.patch" +pkgbase=linux_pam +vers=1.1.8 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=Linux-PAM-$vers +OPT_CONFIG="--enable-shared --enable-read-both-confs --disable-nis" +DOCS="NEWS ABOUT-NLS Copyright README COPYING AUTHORS CHANGELOG + ChangeLog INSTALL ChangeLog-CVS" ###################################################################### fscheck() { @@ -186,35 +188,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +202,9 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np1 -i $W/pam-1.1.8-cve-2013-7041.patch + patch -Np1 -i $W/pam-1.1.8-cve-2014-2583.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +214,10 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir=/usr/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --sbindir=/$libdir/security --enable-securedir=/$libdir/security fi done fi @@ -272,11 +245,82 @@ make install DESTDIR=$P fi done + install -d $P/sbin + ln -s /$libdir/security/pam_tally $P/sbin + chmod 4755 $P/$libdir/security/unix_chkpwd + for i in libpam libpamc libpam_misc ; do + cp -p $P/usr/$libdir/$i.so.0.*.* $P/$libdir + ( cd $P/$libdir ; ln -s $i.so.0.*.* $i.so.0 ) + done + cat <<- "EOF" > $P/etc/security/console.handlers + console consoledevs tty[0-9][0-9]* vc/[0-9][0-9]* :[0-9]\.[0-9] :[0-9] + EOF + install -d $P/etc/pam.d + cat <<- "EOF" > $P/etc/pam.d/system-auth + #%PAM-1.0 + # + # The PAM configuration file for system authentication + # + + auth required pam_env.so + auth sufficient pam_unix.so try_first_pass nullok + auth required pam_deny.so + + account required pam_unix.so + + password sufficient pam_unix.so try_first_pass nullok md5 shadow + password required pam_deny.so + + session required pam_limits.so + session required pam_unix.so + EOF + for i in halt poweroff reboot ; do + cat <<- "EOF" > $P/etc/pam.d/$i + #%PAM-1.0 + # + # The PAM configuration file for shutdown/reboot operations + # + + auth sufficient pam_rootok.so + auth required pam_unix.so + + account required pam_permit.so + EOF + done + cat <<- "EOF" > $P/etc/pam.d/other + #%PAM-1.0 + # + # The PAM configuration file for other + # + + auth required pam_deny.so + auth required pam_warn.so + + account required pam_deny.so + account required pam_warn.so + + password required pam_deny.so + password required pam_warn.so + + session required pam_deny.so + session required pam_warn.so + EOF + ln -s system-auth $P/etc/pam.d/plamo-default + cat <<- "EOF" > $P/etc/securetty + # /etc/securetty: list of terminals on which root is allowed to login. + # See securetty(5) and login(1). + console + EOF + seq -f "tty%g" 12 >> $P/etc/securetty + seq -f "ttyp%g" 12 >> $P/etc/securetty + seq -f "ttyS%g" 0 3 >> $P/etc/securetty touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/$libdir/security + touch -t `date '+%m%d0900'` $P/$libdir/security for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +338,26 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/Linux-PAM $docdir/$src/doc + mv $docdir/$src/{doc,{ABOUT-NLS,Copyright,README,COPYING,AUTHORS}.gz} $C + mv $docdir/$src/{CHANGELOG,ChangeLog,INSTALL,ChangeLog-CVS,$myname}.gz $C + mv $C/{doc,{ABOUT-NLS,Copyright,README,COPYING,AUTHORS}.gz} $docdir/$src + mv $C/{CHANGELOG,ChangeLog,INSTALL,ChangeLog-CVS,$myname}.gz $docdir/$src + touch -r $S $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` + prune_symlink $P/etc/pam.d + touch -t `date '+%m%d0900'` $P/etc/pam.d + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/security + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P etc/{security,environment,pam.d,securetty} + 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/logrotate/PlamoBuild.logrotate-3.8.1 2016-06-06 08:26:47.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.8.1.tar.gz" +pkgbase=logrotate +vers=3.8.1 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README.HPUX README.Solaris CHANGES COPYING" ###################################################################### fscheck() { @@ -224,17 +223,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -269,9 +257,50 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install PREFIX=$P MANDIR=/usr/share/man fi done + install -d $P/etc/logrotate.d + cat <<- "EOF" > $P/etc/logrotate.conf.new + # /etc/logrotate.conf + # + # logrotate is designed to ease administration of systems that generate large + # numbers of log files. It allows automatic rotation, compression, removal, and + # mailing of log files. Each log file may be handled daily, weekly, monthly, or + # when it grows too large. + # + # logrotate is normally run daily from root's crontab. + # + # For more details, see "man logrotate". + + # rotate log files weekly: + weekly + + # keep 4 weeks worth of backlogs: + rotate 4 + + # create new (empty) log files after rotating old ones: + create + + # uncomment this if you want your log files compressed: + compress + + # some packages install log rotation information in this directory: + include /etc/logrotate.d + + # Rotate /var/log/wtmp: + /var/log/wtmp { + monthly + create 0664 root utmp + rotate 1 + } + + # Note that /var/log/lastlog is not rotated. This is intentional, and it should + # not be. The lastlog file is a database, and is also a sparse file that takes + # up much less space on the drive than it appears. + + # system-specific logs may be also be configured below: + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +323,28 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/examples $docdir/$src + chown -R root.root $docdir/$src/examples + mv $docdir/$src/{examples,{COPYING,$myname}.gz} $C + mv $C/{examples,{COPYING,$myname}.gz} $docdir/$src + touch -r $S $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` + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + mv etc/logrotate.conf.new /tmp + if [ -f etc/logrotate.conf ] ; then + mv /tmp/logrotate.conf.new etc/logrotate.conf.dist + else + mv /tmp/logrotate.conf.new etc/logrotate.conf + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/logrotate.{d,conf.new} + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/lsb_release/PlamoBuild.lsb_release-1.4 2016-03-14 17:42:03.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +url="http://downloads.sourceforge.net/lsb/lsb-release-1.4.tar.gz" +pkgbase=lsb_release +vers=1.4 +arch=noarch +build=P6 +src=lsb-release-$vers OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog INSTALL README lsb-release.template lsb_release.examples" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +199,11 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p Makefile{,.orig} + sed -i -e '/^prefix=/s@/local@@g' -e '/^mandir=/s@/man@/share/man@g' \ + -e 's@${mandir}@$(DESTDIR)&@g' \ + -e '/^mandir=/!s@${prefix}@$(DESTDIR)&@g' Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +213,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +243,10 @@ make install DESTDIR=$P fi done + install -d $P/etc + cat <<- "EOF" > $P/etc/plamo-release + Plamo Linux release 6.1 + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,6 +271,7 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/plamo-release tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/lvm2/PlamoBuild.lvm2-2.02.90 2015-12-23 09:50:40.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://sources.redhat.com/pub/lvm2/releases/LVM2.2.02.90.tgz" +pkgbase=lvm2 +vers=2.02.90 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P3 +src=LVM2.$vers +OPT_CONFIG="--exec-prefix= --enable-static_link --enable-applib + --enable-cmdlib --enable-pkgconfig --enable-dmeventd + --with-thin=internal" +DOCS="COPYING.LIB COPYING INSTALL VERSION_DM README VERSION WHATS_NEW + WHATS_NEW_DM" ###################################################################### fscheck() { @@ -186,35 +188,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + tgz) tar xvpf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +203,9 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p daemons/dmeventd/Makefile.in{,.orig} + sed -i 's@$(ELDFLAGS) @@' daemons/dmeventd/Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +215,10 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-usrlibdir=/usr/$libdir fi done fi @@ -272,11 +246,16 @@ make install DESTDIR=$P fi done + touch $P/usr/$libdir/*.a + touch $P/usr/$libdir/pkgconfig/*.pc + touch $P/etc/lvm/lvm.conf touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/$libdir/device-mapper + touch -t `date '+%m%d0900'` $P/$libdir/device-mapper for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +274,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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir -maxdepth 1 | 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 `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P etc/lvm + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/lzo/PlamoBuild.lzo-2.09 2016-01-13 13:13:06.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz" +pkgbase=lzo +vers=2.09 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-shared" +DOCS="AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -294,10 +260,16 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/{doc,examples} $docdir/$src + chown -R root.root $docdir/$src/{doc,examples} + mv $docdir/$src/{doc,examples,$myname.gz} $C + mv $C/{doc,examples,$myname.gz} $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include/lzo | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/man/PlamoBuild.man-1.6g 2016-01-13 21:15:05.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.ibiblio.org/pub/Linux/apps/doctools/man/man-1.6g.tar.gz" +pkgbase=man +vers=1.6g arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING README README.HP README.GNU-WIN32 INSTALL TODO LSM + README.IRIX HISTORY" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +200,24 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p src/man.conf.in{,.orig} + cat <<- "EOF" | patch src/man.conf.in + 43c43,45 + < MANPATH /usr/X11R6/man + --- + > MANPATH /opt/kde/share/man + > MANPATH /opt/mysql/man + > MANPATH /opt/texlive/2009/texmf/doc/man + 67,69c69,71 + < MANPATH_MAP /usr/X11R6/bin /usr/X11R6/man + < MANPATH_MAP /usr/bin/X11 /usr/X11R6/man + < MANPATH_MAP /usr/bin/mh /usr/share/man + --- + > MANPATH_MAP /opt/kde/bin /opt/kde/share/man + > MANPATH_MAP /opt/mysql/bin /opt/mysql/man + > MANPATH_MAP /opt/texlive /opt/texlive/2009/texmf/doc/man + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +227,7 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure -confdir /etc +fhs +lang all fi done fi @@ -272,11 +255,17 @@ make install DESTDIR=$P fi done + mv $mandir/{ja,ja_JP.eucJP} touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for i in bg cs da de el es fi fr hr it ja_JP.eucJP ko nl pl pt ro sl ; do + gzip_dir $mandir/$i/man1 + gzip_dir $mandir/$i/man5 + gzip_dir $mandir/$i/man8 + done for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,7 +285,17 @@ 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/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/man.conf + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "man"` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` + for i in bg cs da de el es fi fr hr it ja_JP.eucJP ko nl pl pt ro sl ; do + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/$i/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/$i/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/$i/man8 | tail -n+2` + done 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/mdadm/PlamoBuild.mdadm-3.2.3 2016-01-13 21:44:34.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-3.2.3.tar.bz2" +pkgbase=mdadm +vers=3.2.3 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="mdmon-design.txt COPYING ANNOUNCE-3.0.3 ANNOUNCE-3.1.2 TODO + ANNOUNCE-3.0.2 ANNOUNCE-3.1.1 INSTALL ANNOUNCE-3.2.2 ANNOUNCE-3.2.3 + ANNOUNCE-3.2.1 ANNOUNCE-3.1 README.initramfs ANNOUNCE-3.1.3 + ANNOUNCE-3.0.1 ANNOUNCE-3.1.4 ANNOUNCE-3.1.5 ChangeLog ANNOUNCE-3.0 + external-reshape-design.txt ANNOUNCE-3.2" ###################################################################### fscheck() { @@ -186,35 +189,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +205,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +212,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +242,8 @@ make install DESTDIR=$P fi done + install -d $P/etc + install -m 644 mdadm.conf-example $P/etc/mdadm.conf touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,8 +267,12 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find lib/udev/rules.d | tail -n+2` + tar rvpf $pkg.tar -C $P etc/mdadm.conf + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man4 | 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/microcode_ctl/PlamoBuild.microcode_ctl-2.1_6 2016-01-21 20:12:32.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://fedorahosted.org/released/microcode_ctl/microcode_ctl-2.1-6.tar.xz + http://downloadmirror.intel.com/24616/eng/microcode-20150107.tgz" +pkgbase=microcode_ctl +vers=2.1_6 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=$pkgbase-2.1-6 OPT_CONFIG="" -DOCS="README" +DOCS="README Changelog" ###################################################################### fscheck() { @@ -186,35 +186,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -224,17 +203,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +210,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +220,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make MICROCODE_INTEL=$W/microcode-20150107.tgz fi done fi @@ -269,7 +237,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P PREFIX=/usr fi done touch $W/i.et @@ -295,8 +263,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P lib/firmware/intel-ucode 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/mlocate/PlamoBuild.mlocate-0.24 2016-01-13 22:53:23.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://fedorahosted.org/releases/m/l/mlocate/mlocate-0.24.tar.xz" +pkgbase=mlocate +vers=0.24 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--localstatedir=/var" +DOCS="README ChangeLog NEWS INSTALL AUTHORS ABOUT-NLS COPYING" ###################################################################### fscheck() { @@ -186,35 +185,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +239,20 @@ make install DESTDIR=$P fi done + install -d $P/etc + cat <<- "EOF" > $P/etc/updatedb.conf + PRUNEFS="sysfs selinuxfs usbdevfs devpts NFS nfs nfs4 afs sfs proc + smbfs cifs autofs auto iso9660 udf" + PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /net /sfs /selinux /udev + /mnt/floppy /media" + EOF + install -d $P/etc/cron.daily + cat <<- "EOF" > $P/etc/cron.daily/mlocate + #!/bin/sh + renice +19 -p $$ > /dev/null 2>&1 + updatedb + EOF + chmod 755 $P/etc/cron.daily/mlocate touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,7 +277,13 @@ 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/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P var/mlocate + tar rvpf $pkg.tar -C $P etc/updatedb.conf + tar rvpf $pkg.tar -C $P etc/cron.daily/mlocate 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/ncurses/PlamoBuild.ncurses-6.0 2016-04-28 23:01:54.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/ncurses/ncurses-6.0-Charable.patch.gz" +pkgbase=ncurses +vers=6.0 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-shared --without-debug --enable-widec + --with-manpage-format=normal --disable-ext-colors" +DOCS="README.MinGW README README.emx NEWS ANNOUNCE COPYING INSTALL + TO-DO AUTHORS" ###################################################################### fscheck() { @@ -155,6 +157,7 @@ convert() { for i in {$P,$P/usr}/{sbin,bin} ; do prune_symlink $i ; done for i in {$P,$P/usr}/$libdir ; do prune_symlink $i ; done + prune_symlink $P/usr/include prune_symlink $infodir for i in `seq 9` n ; do prune_symlink $mandir/man$i ; done } @@ -187,22 +190,14 @@ if [ $opt_download -eq 1 ] ; then for i in $url ; do if [ ! -f ${i##*/} ] ; then - wget $i ; j=${i%.*} - for sig in asc sig{,n} {sha{256,1},md5}{,sum} ; do + wget $i + for sig in asc sig{,n} {md5,sha{1,256}}{,sum} ; do if wget --spider $i.$sig ; then wget $i.$sig ; break ; fi - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi done if [ -f ${i##*/}.$sig ] ; then case $sig in asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; + md5|sha1|sha256) ${sig}sum -c ${i##*/}.$sig ;; *) $sig -c ${i##*/}.$sig ;; esac if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi @@ -213,8 +208,8 @@ case ${i##*.} in tar) tar xvpf ${i##*/} ;; gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -222,17 +217,12 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + gunzip -c $W/ncurses-6.0-Charable.patch.gz | patch -Np1 -i - + if [ $arch == x86_64 ] ; then + cp -p misc/run_tic.in{,.orig} + sed -i 's@\@lib64@g' misc/run_tic.in + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +232,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir=/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +262,17 @@ make install DESTDIR=$P fi done + ln -s ncursesw6-config $P/usr/bin/ncurses6-config + ln -s libncursesw.so.$vers $P/$libdir/libncurses.so.6 + ln -s libncurses.so.6 $P/$libdir/libncurses.so + ln -s libncursesw.so.$vers $P/$libdir/libcurses.so.6 + ln -s libcurses.so.6 $P/$libdir/libcurses.so + ln -s libncursesw.so.$vers $P/$libdir/libncursesw.so.5 + ln -s libpanelw.so.$vers $P/$libdir/libpanelw.so.5 + ln -s libmenuw.so.$vers $P/$libdir/libmenuw.so.5 + ln -s libformw.so.$vers $P/$libdir/libformw.so.5 + install -d $P/usr/$libdir + ln -s /usr/share/terminfo $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +297,16 @@ 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 $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/{tabset,terminfo} 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/net_tools/PlamoBuild.net_tools-1.60 2016-01-14 11:49:19.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/net-tools/net-tools-1.60.tar.bz2 + http://simosnet.com/livecdroom/source/solydxk/main/n/net-tools/net-tools_1.60-24.1.diff.gz" +pkgbase=net_tools +vers=1.60 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=net-tools-$vers OPT_CONFIG="" -DOCS="README" +DOCS="ABOUT-NLS COPYING INSTALLING README README.ipv6 TODO" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,16 +200,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done + cd $B + gunzip -c $W/net-tools_1.60-24.1.diff.gz | patch -Np1 -i - + for i in `cat debian/patches/series` ; do + patch -Np1 -i debian/patches/$i done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} @@ -242,11 +214,38 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + yes "" | make config + cp -p config.h{,.orig} + cat <<- "EOF" | patch config.h + 22c22 + < #define I18N 0 + --- + > #define I18N 1 + 52,53c52,53 + < #define HAVE_HWSTRIP 1 + < #define HAVE_HWTR 1 + --- + > #define HAVE_HWSTRIP 0 + > #define HAVE_HWTR 0 + EOF + cp -p config.make{,.orig} + cat <<- "EOF" | patch config.make + 1c1 + < # I18N=0 + --- + > I18N=1 + 19,20c19,20 + < HAVE_HWSTRIP=1 + < HAVE_HWTR=1 + --- + > # HAVE_HWSTRIP=0 + > # HAVE_HWTR=0 + EOF fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -269,7 +268,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install BASEDIR=$P fi done touch $W/i.et @@ -295,9 +294,13 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/netkit_combo/PlamoBuild.netkit_combo-0.17 2016-04-09 20:56:43.000000000 +0900 @@ -1,15 +1,51 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-combo-0.17.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/biff+comsat-0.17.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/biff+comsat.offset.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/biff+comsat.badutmp.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/bsd-finger_0.17-13.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/linux-ftpd_0.17-29.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-bootparamd_0.17-9.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-ftp_0.17-19.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-ntalk_0.17-14.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/routed.18.candidate.final.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-routed-0.17.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-rsh_0.17-14.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-rusers_0.17-7.1.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-rwall_0.17-6.2.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-rwho_0.17-12.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-telnet_0.17-36.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-tftp_0.17-17.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-timed-0.17.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netwrite-0.17.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-combo-0.17-diffs.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/netkit_combo/netkit-combo-0.17-tirpc.patch.gz" +pkgbase=netkit_combo +vers=0.17 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P9 +src=netkit-combo-$vers OPT_CONFIG="" -DOCS="README" +DOCS="README + `echo biff+comsat/{ChangeLog,README}` + `echo bsd-finger/{BUGS,ChangeLog,README}` + `echo linux-ftpd/{ftpd/README,ChangeLog,README}` + `echo netkit-base/{BUGS,ChangeLog,README,etc.sample/README}` + `echo netkit-bootparamd/{ChangeLog,README,rpc.bootparamd/README}` + `echo netkit-ftp/{BUGS,ChangeLog,README}` + `echo netkit-ntalk/{BUGS,ChangeLog,README}` + `echo netkit-routed/{ChangeLog,README,routed/README}` + `echo netkit-rpc/{BUGS,ChangeLog,README,rpcgen/ChangeLog}` + `echo netkit-rsh/{BUGS,ChangeLog,README,rexec/README}` + `echo netkit-rusers/{BUGS,ChangeLog,README}` + `echo netkit-rwall/{BUGS,ChangeLog,README}` + `echo netkit-rwho/{ChangeLog,README}` + `echo netkit-telnet/{BUGS,ChangeLog,README,telnet/{README{,.old},TODO}}` + `echo netkit-tftp/{BUGS,ChangeLog,README}` + `echo netkit-timed/{BUGS,ChangeLog,README,timed/CHANGES}` + `echo netwrite/{COPYING,ChangeLog,README{,.old}}`" ###################################################################### fscheck() { @@ -186,35 +222,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +236,50 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B/biff+comsat + gunzip -c $W/biff+comsat-0.17.diff.gz | patch -Np1 -i - + gunzip -c $W/biff+comsat.offset.diff.gz | patch -Np1 -i - + gunzip -c $W/biff+comsat.badutmp.diff.gz | patch -Np1 -i - + cd $B/bsd-finger + gunzip -c $W/bsd-finger_0.17-13.diff.gz | patch -Np1 -i - + patch -Np1 -i debian/patches/01-legacy.patch + patch -Np1 -i debian/patches/02-518559-nsswitch-sources.patch + cd $B/linux-ftpd + gunzip -c $W/linux-ftpd_0.17-29.diff.gz | patch -Np1 -i - + cd $B/netkit-bootparamd + gunzip -c $W/netkit-bootparamd_0.17-9.diff.gz | patch -Np1 -i - + cd $B/netkit-ftp + gunzip -c $W/netkit-ftp_0.17-19.diff.gz | patch -Np1 -i - + cd $B/netkit-ntalk + gunzip -c $W/netkit-ntalk_0.17-14.diff.gz | patch -Np1 -i - + cd $B/netkit-routed + gunzip -c $W/routed.18.candidate.final.patch.gz | patch -Np1 -i - + gunzip -c $W/netkit-routed-0.17.diff.gz | patch -Np1 -i - + cd $B/netkit-rsh + gunzip -c $W/netkit-rsh_0.17-14.diff.gz | patch -Np1 -i - + cd $B/netkit-rusers + gunzip -c $W/netkit-rusers_0.17-7.1.diff.gz | patch -Np1 -i - + cd $B/netkit-rwall + gunzip -c $W/netkit-rwall_0.17-6.2.diff.gz | patch -Np1 -i - + cd $B/netkit-rwho + gunzip -c $W/netkit-rwho_0.17-12.diff.gz | patch -Np1 -i - + cd $B/netkit-tftp + gunzip -c $W/netkit-tftp_0.17-17.diff.gz | patch -Np1 -i - + cd $B/netkit-telnet + gunzip -c $W/netkit-telnet_0.17-36.diff.gz | patch -Np1 -i - + if [ $arch == x86_64 ] ; then + cp -p telnetd/Makefile{,.orig} + sed 's@/lib@/lib64@g' telnetd/Makefile.orig > telnetd/Makefile + fi + cd $B/netkit-timed + gunzip -c $W/netkit-timed-0.17.diff.gz | patch -Np1 -i - + cd $B/netwrite + gunzip -c $W/netwrite-0.17.diff.gz | patch -Np1 -i - + cd $B + gunzip -c $W/netkit-combo-0.17-diffs.patch.gz | patch -Np1 -i - + gunzip -c $W/netkit-combo-0.17-tirpc.patch.gz | patch -Np1 -i - + find . -name "Makefile" -exec sed -i 's@$(RPCGEN)@& -Y /usr/bin@g' {} \; + for i in $B/*/configure ; do sed -i '/^MANDIR=/s@man@share/man@g' $i ; done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +289,7 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --installroot=$P ${OPT_CONFIG[$i]} fi done fi @@ -269,9 +314,11 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install fi done + install -d $P/usr/$libdir + ln -s ../sbin/telnetlogin $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +341,25 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + rm $docdir/$src/netkit-routed/ChangeLog.gz + install2 $B/netkit-routed/ChangeLog $docdir/$src/netkit-routed + touch -t 200012251418.04 $docdir/$src/netkit-routed/ChangeLog + gzip_one $docdir/$src/netkit-routed/ChangeLog + rm $docdir/$src/netkit-routed/README.gz + install2 $B/netkit-routed/README $docdir/$src/netkit-routed + touch -t 200012251420.54 $docdir/$src/netkit-routed/README + gzip_one $docdir/$src/netkit-routed/README + touch -r $S/netkit-routed $docdir/$src/netkit-routed convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/nkf/PlamoBuild.nkf-2.1.2 2016-03-24 11:52:09.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://jaist.dl.sourceforge.jp/nkf/53171/nkf-2.1.2.tar.gz" +pkgbase=nkf +vers=2.1.2 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL INSTALL.j" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +199,24 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p Makefile{,.orig} + sed -i -e 's@/local@@g' -e 's@$(prefix)@$(DESTDIR)&@g' \ + -e 's@/\@/share&@g' Makefile + cat <<- "EOF" | patch Makefile + 36a37 + > -$(MKDIR) $(DESTDIR)$(prefix) + 37a39 + > -$(MKDIR) $(DESTDIR)$(prefix)/share + EOF + cp -p nkf_test.pl{,.orig} + sed -i 's@/local@@g' nkf_test.pl + cat <<- "EOF" | patch nkf_test.pl + 902c902 + < &test("$nkf",$example{'test_data/q-encode-utf-8'},$example{'test_data/q-encode-utf-8.ans'}); + --- + > &test("$nkf -w",$example{'test_data/q-encode-utf-8'},$example{'test_data/q-encode-utf-8.ans'}); + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +226,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -255,6 +239,9 @@ make fi done + make perl + cp -p NKF.mod/Makefile{,.orig} + sed -i 's@/local@@g' NKF.mod/Makefile fi if [ $opt_package -eq 1 ] ; then if [ `id -u` -ne 0 ] ; then @@ -272,11 +259,17 @@ make install DESTDIR=$P fi done + install -d $mandir/ja_JP.eucJP/man1 + ./nkf -e $mandir/ja/man1/nkf.1 > $mandir/ja_JP.eucJP/man1/nkf.1 + ( cd NKF.mod ; make pure_install DESTDIR=$P ) touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/perl5/auto/NKF + touch -t `date '+%m%d0900'` $P/usr/$libdir/perl5/auto/NKF + gzip_dir $mandir/ja_JP.eucJP/man1 for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,7 +289,10 @@ 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/{auto/NKF,NKF.pm} 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 `cd $P ; find usr/share/man/ja_JP.eucJP/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/nvi/PlamoBuild.nvi-1.79 2016-07-10 11:39:09.000000000 +0900 @@ -1,15 +1,25 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://pkgs.fedoraproject.org/repo/pkgs/nvi-m17n/nvi-1.79.tar.gz/765e2153f5fc4f21793f2edc2647305a/nvi-1.79.tar.gz + http://pkgs.fedoraproject.org/repo/pkgs/nvi-m17n/nvi-1.79.m17n-20040401.diff.gz/851650ced51697b3b08400fa75621c97/nvi-1.79.m17n-20040401.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/nvi/nvi-1.79-64bit_breakage.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/nvi/nvi-1.79-DESTDIR.patch.gz" +pkgbase=nvi +vers=1.79 arch=`uname -m` -build=P1 +build=P8 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-multibyte=euc-jp" +DOCS="LAYOUT README FAQ + `echo docs/USD.doc/{edit/edittut,vi.ref/vi.ref}.ps` + `echo docs/USD.doc/vitut/{vitut,summary,viapwh}.ps` + `echo docs/USD.doc/exref/{exref,summary}.ps` + `echo docs/{ev,features,interp/interp,TODO,help}` + `echo docs/internals/{gdb.script,structures,autowrite,quoting}` + `echo docs/internals/{input,context,openmode,cscope.NOTES}` + docs/changelog docs/tutorial/* `echo build/README{,.LynxOS}` LICENSE" ###################################################################### fscheck() { @@ -233,8 +243,16 @@ esac done done + cd $B + chmod -R u+w . + gunzip -c $W/nvi-1.79.m17n-20040401.diff.gz | patch -Np0 -i - + gunzip -c $W/nvi-1.79-64bit_breakage.patch.gz | patch -Np1 -i - + gunzip -c $W/nvi-1.79-DESTDIR.patch.gz | patch -Np1 -i - + cp -p build/configure{,.orig} + sed '/^LDFLAGS=/s@$LDFLAGS@${LDFLAGS-"-lncurses"}@g' build/configure.orig \ + > build/configure for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build if [ -f Makefile ] ; then make clean fi @@ -250,7 +268,7 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build if [ -f Makefile ] ; then make fi @@ -267,16 +285,64 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build if [ -f Makefile ] ; then make install DESTDIR=$P fi done + install -d $P/usr/libexec + mv $P/usr/bin/{vi,ex,view} $P/usr/libexec + cat <<- "EOF" > $P/usr/bin/vi + #!/bin/sh + + optend=0 ; optarg=0 ; nargv=() + for arg in "$@" ; do + file=0 + if [ $optend -eq 1 ] ; then + file=1 + elif [ $optarg -eq 1 ] ; then + optarg=0 + elif [ "${arg:0:1}" == "-" ] ; then + if [ "$arg" == "--" ] ; then + optend=1 + elif [ `expr length "$(expr "$arg" : ".*\([ctw].*\)")"` -eq 1 ] ; then + optarg=1 + fi + elif [ "${arg:0:1}" != "+" ] ; then + file=1 + fi + if [ $file -eq 1 ] ; then + if [ -f "$arg" ] ; then + if [ `nkf -g "$arg"` == UTF-8 ] ; then + temp=`mktemp /tmp/vi.XXXXXX` + nkf -e "$arg" > $temp + touch -r "$arg" $temp + arg=$temp + fi + fi + fi + nargv=("${nargv[@]}" "$arg") + done + /usr/libexec/${0##*/} "${nargv[@]}" + i=0 + for arg in "$@" ; do + if [ "$arg" != "${nargv[$i]}" ] ; then + [ ${nargv[$i]} -nt "$arg" ] && nkf -w ${nargv[$i]} > "$arg" + rm ${nargv[$i]} + fi + let ++i + done + EOF + chmod 755 $P/usr/bin/vi + ln $P/usr/bin/{vi,ex} + ln $P/usr/bin/{vi,view} touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec + gzip_dir $mandir/cat1 for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,8 +360,20 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + chmod 755 $docdir/$src/docs/tutorial/vi.tut.csh.gz + cp -a $B/docs.m17n $docdir/$src + chown -R root.root $docdir/$src/docs.m17n + find $docdir/$src/docs.m17n -exec touch -t `date '+%m%d0900'` {} \; + gzip_dir $docdir/$src/docs.m17n + touch -t `date '+%m%d0900'` $docdir/$src/docs.m17n + mv $docdir/$src/{docs.m17n,$myname.gz} $C + mv $C/{docs.m17n,$myname.gz} $docdir/$src + touch -r $S $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/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/vi + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/cat1 | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/openbsd_inetd/PlamoBuild.openbsd_inetd-0.20080125 2016-01-14 19:12:30.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.debian.org/debian/pool/main/o/openbsd-inetd/openbsd-inetd_0.20080125.orig.tar.gz + http://ftp.debian.org/debian/pool/main/o/openbsd-inetd/openbsd-inetd_0.20080125-6.diff.gz" +pkgbase=openbsd_inetd +vers=0.20080125 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=openbsd-inetd-$vers.orig OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,28 +200,22 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done + cd $B + gunzip -c $W/openbsd-inetd_0.20080125-6.diff.gz | patch -Np1 -i - + for i in `grep "^[^#]" debian/patches/series` ; do + patch -Np1 -i debian/patches/$i done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make clean + make -f Makefile.debian clean fi if [ -f config.log ] ; then rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +224,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make -f Makefile.debian fi done fi @@ -272,6 +244,139 @@ make install DESTDIR=$P fi done + install -d $P/usr/sbin + install inetd $P/usr/sbin + install -d $mandir/man8 + install -m 644 inetd.8 $mandir/man8 + install -d $P/etc + cat <<- "EOF" > $P/etc/inetd.conf + # See "man 8 inetd" for more information. + # + # If you make changes to this file, either reboot your machine or send the + # inetd a HUP signal: + # Do a "ps x" as root and look up the pid of inetd. Then do a + # "kill -HUP ". + # The inetd will re-read this file whenever it gets that signal. + # + # + # + # The first 4 services are really only used for debugging purposes, so + # we comment them out since they can otherwise be used for some nasty + # denial-of-service attacks. If you need them, uncomment them. + # echo stream tcp nowait root internal + # echo dgram udp wait root internal + # discard stream tcp nowait root internal + # discard dgram udp wait root internal + # daytime stream tcp nowait root internal + # daytime dgram udp wait root internal + # chargen stream tcp nowait root internal + # chargen dgram udp wait root internal + time stream tcp nowait root internal + time dgram udp wait root internal + # + # These are standard services. + # + ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd + telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd + # + # Use this one instead if you want to snoop on telnet users (try to use this + # for ethical purposes, ok folks?) : + # telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetsnoopd + # + # This is generally unnecessary. The daemon provided by INN will handle the + # incoming NNTP connections. + # nntp stream tcp nowait root /usr/sbin/tcpd in.nntpd + # + # This is for BSD sendmail. NOTE: It's not a good idea to uncomment this + # one, since sendmail is already set up to run as a daemon in /etc/rc.d/rc.M. + # But, if you really want to run sendmail this way for some reason, you'll + # need to uncomment the smtp line below AND change the line in /etc/rc.d/rc.M + # to run sendmail like this: /usr/sbin/sendmail -q30m + # ...otherwise the queue will not be processed. + # smtp stream tcp nowait root /usr/sbin/tcpd sendmail -bs + # + # The comsat daemon notifies the user of new mail when biff is set to y: + comsat dgram udp wait root /usr/sbin/tcpd in.comsat + # + # Shell, login, exec and talk are BSD protocols. + # + shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L + login stream tcp nowait root /usr/sbin/tcpd in.rlogind + # exec stream tcp nowait root /usr/sbin/tcpd in.rexecd + # talk dgram udp wait root /usr/sbin/tcpd in.talkd + # ntalk dgram udp wait root /usr/sbin/tcpd in.talkd + ssh stream tcp nowait root /usr/sbin/tcpd /usr/sbin/sshd -i + + # + # Kerberos authenticated services + # + # klogin stream tcp nowait root /usr/sbin/tcpd rlogind -k + # eklogin stream tcp nowait root /usr/sbin/tcpd rlogind -k -x + # kshell stream tcp nowait root /usr/sbin/tcpd rshd -k + # + # Services run ONLY on the Kerberos server + # + # krbupdate stream tcp nowait root /usr/sbin/tcpd registerd + # kpasswd stream tcp nowait root /usr/sbin/tcpd kpasswdd + # + # Pop et al + # + # pop2 stream tcp nowait root /usr/sbin/tcpd in.pop2d + pop3 stream tcp nowait root /usr/sbin/tcpd ipop3d + imap stream tcp nowait root /usr/sbin/tcpd imapd + pop3s stream tcp nowait root /usr/sbin/tcpd ipop3d + imaps stream tcp nowait root /usr/sbin/tcpd imapd + # + # The ipop3d POP3 server is part of the Pine distribution. If you've + # installed the Pine package, you may wish to switch to ipop3d by + # commenting out the pop3 line above, and uncommenting the pop3 line below. + #pop3 stream tcp nowait root /usr/sbin/tcpd ipop3d + # imap2 stream tcp nowait root /usr/sbin/tcpd imapd + # + # The Internet UUCP service. + # + # uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/lib/uucp/uucico -l + # + # Tftp service is provided primarily for booting. Most sites + # run this only on machines acting as "boot servers." + # + # tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd + # bootps dgram udp wait root /usr/sbin/in.bootpd in.bootpd + # + # Finger, systat and netstat give out user information which may be + # valuable to potential "system crackers." Many sites choose to disable + # some or all of these services to improve security. + # Try "telnet localhost systat" and "telnet localhost netstat" to see that + # information yourself! + # + # finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd -w + # systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwx + # netstat stream tcp nowait root /usr/sbin/tcpd /bin/netstat -a + # + # Ident service is used for net authentication + auth stream tcp wait root /usr/sbin/in.identd in.identd -w -t120 -l + # + # These are to start Samba, an smb server that can export filesystems to + # Pathworks, Lanmanager for DOS, Windows for Workgroups, Windows95, Lanmanager + # for Windows, Lanmanager for OS/2, Windows NT, etc. + # If you're running smbd and nmbd from daemons in /etc/rc.d/rc.samba, then you + # shouldn't uncomment these lines. + # netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd + # netbios-ns dgram udp wait root /usr/local/samba/bin/nmbd nmbd + # + # Sun-RPC based services. + # + # + # rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rstatd + # rusersd/2-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rusersd + # walld/1 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rwalld + # + + skkserv stream tcp nowait nobody /usr/sbin/tcpd /usr/libexec/dbskkd-cdb + printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd + # End of inetd.conf. + swat stream tcp nowait root /usr/sbin/tcpd /usr/sbin/swat + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,8 +400,9 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` + tar rvpf $pkg.tar -C $P etc/inetd.conf 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/openssh/PlamoBuild.openssh-7.3p1 2016-08-02 20:10:01.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.3p1.tar.gz" +pkgbase=openssh +vers=7.3p1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--sysconfdir=/etc/ssh --with-pam --with-privsep-user=sshd + --with-privsep-path=/var/lib/sshd --with-md5-passwords" +DOCS="CREDITS INSTALL LICENCE OVERVIEW PROTOCOL PROTOCOL.agent + `echo PROTOCOL.{certkeys,chacha20poly1305,key,krl,mux}` + README `echo README.{dns,platform,privsep,tun}` TODO ChangeLog" ###################################################################### fscheck() { @@ -233,6 +236,14 @@ esac done done + cd $B + cp -p sshd_config{,.orig} + sed -i -e 's@^#\(UsePAM\) no$@\1 yes@g' \ + -e 's@^#\(PermitUserEnvironment\) no$@\1 yes@g' sshd_config + if [ $arch == x86_64 ] ; then + cp -p contrib/sshd.pam.generic{,.orig} + sed -i 's@/lib@/lib64@' contrib/sshd.pam.generic + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,11 +283,22 @@ make install DESTDIR=$P fi done + ln -s ssh $P/usr/bin/slogin + ln -s ssh.1 $mandir/man1/slogin.1 + chgrp sys $P/var/lib/sshd + mv $P/etc/ssh/ssh_config{,.new} ; mv $P/etc/ssh/sshd_config{,.new} + mv $P/etc/ssh/{ssh{,d}_config.new,moduli} $C + mv $C/{ssh{,d}_config.new,moduli} $P/etc/ssh + install -d $P/etc/pam.d + install -m 644 contrib/sshd.pam.generic $P/etc/pam.d/sshd + install contrib/ssh-copy-id $P/usr/bin + install -m 644 contrib/ssh-copy-id.1 $mandir/man1 touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +317,31 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + cat <<- "EOF" >> $P/install/doinst.sh + + ssh_config() { + mv etc/ssh/${1}_config.new /tmp + if [ -f etc/ssh/${1}_config ] ; then + mv /tmp/${1}_config.new etc/ssh/${1}_config.dist + else + mv /tmp/${1}_config.new etc/ssh/${1}_config + fi + } + + for i in ssh sshd ; do ssh_config $i ; done + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P var/lib/sshd + tar rvpf $pkg.tar -C $P etc/ssh + tar rvpf $pkg.tar -C $P `cd $P ; find etc/pam.d | tail -n+2` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/openssl/PlamoBuild.openssl-1.0.2h 2016-07-10 12:22:47.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.openssl.org/source/openssl-1.0.2h.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/openssl/mkcabundle.pl" +pkgbase=openssl +vers=1.0.2h arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ACKNOWLEDGMENTS CHANGES CHANGES.SSLeay CONTRIBUTING FAQ INSTALL + INSTALL.DJGPP INSTALL.MacOS INSTALL.NW INSTALL.OS2 INSTALL.VMS + INSTALL.W32 INSTALL.W64 INSTALL.WCE LICENSE NEWS PROBLEMS README + README.ASN1 README.ENGINE" ###################################################################### fscheck() { @@ -209,6 +213,10 @@ fi fi done + if [ ! -f ca-bundle.crt ] ; then + chmod +x mkcabundle.pl + ./mkcabundle.pl > ca-bundle.crt + fi for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; @@ -247,11 +255,19 @@ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + case $arch in + i686) sys=elf ;; + x86_64) sys=x86_64 ;; + armv7l) sys=armv4 ;; + esac + ./Configure linux-$sys --prefix=/usr --openssldir=/etc/ssl \ + shared zlib-dynamic enable-ssl2 fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then + make depend make fi done @@ -269,14 +285,20 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install MANDIR=/usr/share/man MANSUFFIX=ssl INSTALL_PREFIX=$P fi done + install $W/mkcabundle.pl $P/etc/ssl + cp -r certs $P/etc/ssl + install -m 644 $W/ca-bundle.crt $P/etc/ssl/certs + ln -s /etc/ssl $P/usr/share touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/engines + touch -t `date '+%m%d0900'` $P/usr/$libdir/engines for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +316,24 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + touch -t `date '+%m%d0900'` $docdir/$src convert + prune_symlink $P/etc/ssl/certs/demo + prune_symlink $P/usr/share + touch -t `date '+%m%d0900'` $P/etc/ssl/certs/demo tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/engines + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -type f` + tar rvpf $pkg.tar -C $P usr/include/openssl + tar rvpf $pkg.tar -C $P etc/ssl + tar rvpf $pkg.tar -C $P usr/share/ssl 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/os_prober/PlamoBuild.os_prober-1.56 2016-01-15 11:33:11.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://distribution-us.hexxeh.net/raspbian/archive/raspbian/pool/main/o/os-prober/os-prober_1.56.tar.gz" +pkgbase=os_prober +vers=1.56 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=os-prober-$vers OPT_CONFIG="" -DOCS="README" +DOCS="README TODO" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +238,22 @@ make install DESTDIR=$P fi done + install -d $P/usr/bin + install os-prober linux-boot-prober $P/usr/bin + install -d $P/usr/lib/os-prober + install newns $P/usr/lib/os-prober + install -d $P/usr/lib/os-probes/{mounted,init} + install os-probes/common/50mounted-tests $P/usr/lib/os-probes + install os-probes/mounted/common/* $P/usr/lib/os-probes/mounted + install os-probes/mounted/x86/* $P/usr/lib/os-probes/mounted + install os-probes/init/common/10filesystems $P/usr/lib/os-probes/init + install -d $P/usr/lib/linux-boot-probes/mounted + install linux-boot-probes/common/50mounted-tests $P/usr/lib/linux-boot-probes + install linux-boot-probes/mounted/common/* $P/usr/lib/linux-boot-probes/mounted + install linux-boot-probes/mounted/x86/* $P/usr/lib/linux-boot-probes/mounted + install -d $P/usr/share/os-prober + install common.sh $P/usr/share/os-prober + install -d $P/var/lib/os-prober touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,7 +278,9 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/lib -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/os-prober + tar rvpf $pkg.tar -C $P var/lib/os-prober 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/pciutils/PlamoBuild.pciutils-3.1.8 2016-04-02 18:33:35.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.kernel.org/pub/software/utils/pciutils/pciutils-3.1.8.tar.bz2 + http://pciids.sourceforge.net/v2.2/pci.ids" +pkgbase=pciutils +vers=3.1.8 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="TODO README ChangeLog README.Windows COPYING" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +200,12 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p $W/pci.ids . + if [ $arch == x86_64 ] ; then + cp -p Makefile{,.orig} + sed -i '/^LIBDIR=/s@lib@lib64@g' Makefile + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +215,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +225,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make ZLIB=no SHARED=yes PCI_COMPRESSED_IDS=0 PREFIX=/usr fi done fi @@ -269,7 +242,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P ZLIB=no SHARED=yes PREFIX=/usr + make install-lib DESTDIR=$P ZLIB=no SHARED=yes PREFIX=/usr fi done touch $W/i.et @@ -295,9 +269,15 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | 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/pci + tar rvpf $pkg.tar -C $P usr/share/pci.ids + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/pm_utils/PlamoBuild.pm_utils-1.4.1 2016-01-15 15:19:53.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://pm-utils.freedesktop.org/releases/pm-utils-1.4.1.tar.gz" +pkgbase=pm_utils +vers=1.4.1 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P3 +src=pm-utils-$vers +OPT_CONFIG="--sysconfdir=/etc" +DOCS="README* AUTHORS COPYING ChangeLog INSTALL NEWS TODO pm/HOWTO*" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -296,8 +262,14 @@ 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/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/pm-utils + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P etc/pm 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/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/procinfo_ng/PlamoBuild.procinfo_ng-2.0.304 2016-04-09 21:10:53.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/procinfo-ng/procinfo-ng-2.0.304.tar.bz2" +pkgbase=procinfo_ng +vers=2.0.304 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=procinfo-ng-$vers OPT_CONFIG="" -DOCS="README" +DOCS="GPL-2.txt LICENSE.txt LGPL-2.1.txt" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -296,7 +262,7 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/procps_ng/PlamoBuild.procps_ng-3.3.11 2016-04-08 15:09:37.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/procps-ng/procps-ng-3.3.11.tar.xz" +pkgbase=procps_ng +vers=3.3.11 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=procps-ng-$vers +OPT_CONFIG="--exec-prefix= --disable-kill --enable-skill" +DOCS="AUTHORS NEWS COPYING ABOUT-NLS ChangeLog COPYING.LIB + `echo Documentation/{CodingStyle.md,FAQ,TODO,bugs.md}`" ###################################################################### fscheck() { @@ -186,35 +186,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -224,17 +203,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +210,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir=/usr/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -295,9 +263,18 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | 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/proc + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/readline/PlamoBuild.readline-6.3.8 2016-08-27 18:10:21.000000000 +0900 @@ -1,15 +1,23 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-001 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-002 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-003 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-004 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-005 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-006 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-007 + http://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-008" +pkgbase=readline +vers=6.3 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-curses" +DOCS="COPYING README MANIFEST INSTALL CHANGELOG CHANGES NEWS USAGE" ###################################################################### fscheck() { @@ -233,6 +241,15 @@ esac done done + cd $B + patch -Np0 -i $W/readline63-001 + patch -Np0 -i $W/readline63-002 + patch -Np0 -i $W/readline63-003 + patch -Np0 -i $W/readline63-004 + patch -Np0 -i $W/readline63-005 + patch -Np0 -i $W/readline63-006 + patch -Np0 -i $W/readline63-007 + patch -Np0 -i $W/readline63-008 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -243,7 +260,7 @@ fi if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + --libdir=/$libdir --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +269,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make SHLIB_LIBS=-lncursesw fi done fi @@ -272,6 +289,11 @@ make install DESTDIR=$P fi done + install -d $P/usr/$libdir + rm $P/$libdir/lib{history,readline}.so + touch $P/$libdir/lib{history,readline}.so + ln -s /$libdir/libhistory.so.6 $P/usr/$libdir/libhistory.so + ln -s /$libdir/libreadline.so.6 $P/usr/$libdir/libreadline.so touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +317,15 @@ ( 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/$libdir/lib{history,readline}.so + tar cvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/readline + tar rvpf $pkg.tar -C $P usr/share/readline + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/reiserfsprogs/PlamoBuild.reiserfsprogs-3.6.21 2016-01-16 07:37:16.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v3.6.21/reiserfsprogs-3.6.21.tar.bz2" +pkgbase=reiserfsprogs +vers=3.6.21 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS README AUTHORS INSTALL ChangeLog COPYING CREDITS" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -295,8 +261,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/rsyslog/PlamoBuild.rsyslog-4.6.8 2016-01-16 07:36:47.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.rsyslog.com/rsyslog/rsyslog-4.6.8.tar.gz" +pkgbase=rsyslog +vers=4.6.8 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--sbindir=/sbin" +DOCS="COPYING README AUTHORS INSTALL COPYING.LESSER NEWS ChangeLog" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,11 +238,98 @@ make install DESTDIR=$P fi done + install -d $P/etc/rsyslog.d + cat <<- "EOF" | unexpand > $P/etc/rsyslog.conf + # Begin /etc/rsyslog.conf + # CLFS configuration of rsyslog. For more info use man rsyslog.conf + + ####################################################################### + # Rsyslog Modules + + # Support for Local System Logging + $ModLoad imuxsock.so + + # Support for Kernel Logging + $ModLoad imklog.so + + ####################################################################### + # Global Options + + # Use traditional timestamp format. + $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat + + # Set the default permissions for all log files. + $FileOwner root + $FileGroup root + $FileCreateMode 0640 + $DirCreateMode 0755 + + # Provides UDP reception + $ModLoad imudp + $UDPServerRun 514 + + # Disable Repeating of Entries + $RepeatedMsgReduction on + + ####################################################################### + # Include Rsyslog Config Snippets + + $IncludeConfig /etc/rsyslog.d/*.conf + + ####################################################################### + # Standard Log Files + + auth,authpriv.* /var/log/auth.log + *.*;auth,authpriv.none -/var/log/syslog + daemon.* -/var/log/daemon + kern.* -/var/log/kern.log + mail.* -/var/log/mail.log + user.* -/var/log/user.log + + # Catch All Logs + *.=debug;\ + auth,authpriv.none;\ + news.none;mail.none -/var/log/debug + *.=info;*.=notice;*.=warn;\ + auth,authpriv.none;\ + cron,daemon.none;\ + mail,news.none -/var/log/messages + + # Emergencies are shown to everyone + *.emerg * + + # End /etc/rsyslog.conf + EOF + install -d $P/etc/logrotate.d + for i in auth.log syslog daemon {kern,mail,user}.log debug messages ; do + cat <<- EOF > $P/etc/logrotate.d/$i + /var/log/$i { + compress + weekly + rotate 4 + missingok + notifempty + sharedscripts + postrotate + kill -HUP \`cat /var/run/rsyslogd.pid\` 2> /dev/null || true + endscript + } + EOF + done + sed -i '/rotate/s@4@8@' $P/etc/logrotate.d/{auth.log,syslog} + cat <<- "EOF" | patch $P/etc/logrotate.d/mail.log + 9c9 + < kill -HUP `cat /var/run/rsyslogd.pid` 2> /dev/null || true + --- + > /etc/rc.d/init.d/postfix reload 2> /dev/null || true + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/rsyslog + touch -t `date '+%m%d0900'` $P/usr/$libdir/rsyslog for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +348,12 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/rsyslog + tar rvpf $pkg.tar -C $P etc/rsyslog.{d,conf} + tar rvpf $pkg.tar -C $P `cd $P ; find etc/logrotate.d | 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/sed/PlamoBuild.sed-4.2.2 2016-03-17 15:20:12.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.gz" +pkgbase=sed +vers=4.2.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--bindir=/bin" +DOCS="COPYING.DOC INSTALL README README-alpha THANKS AUTHORS COPYING + ChangeLog ABOUT-NLS BUGS NEWS" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -253,6 +220,7 @@ cd ${B[$i]} if [ -f Makefile ] ; then make + make html fi done fi @@ -270,8 +238,11 @@ cd ${B[$i]} if [ -f Makefile ] ; then make install DESTDIR=$P + make -C doc install-html DESTDIR=$P fi done + install -d $P/usr/bin + ln -s /bin/sed $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +265,20 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/sed $docdir/$src/doc + mv $docdir/$src/{doc,{THANKS,AUTHORS,COPYING,ChangeLog,ABOUT-NLS}.gz} $C + mv $docdir/$src/{BUGS,NEWS,$myname}.gz $C + mv $C/{doc,{THANKS,AUTHORS,COPYING,ChangeLog,ABOUT-NLS}.gz} $docdir/$src + mv $C/{BUGS,NEWS,$myname}.gz $docdir/$src + touch -r $S $docdir/$src convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/shadow/PlamoBuild.shadow-git_20130908 2016-03-23 16:42:56.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://github.com/shadow-maint/shadow.git + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/shadow/shadow-adduser-20160122" +pkgbase=shadow +vers=git_20130908 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P5 +src=$pkgbase +OPT_CONFIG="--sysconfdir=/etc --enable-man --without-selinux + --with-libcrack" +DOCS="COPYING ChangeLog NEWS README TODO" ###################################################################### fscheck() { @@ -186,35 +187,20 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; else + ( cd `basename ${i##*/} .git` ; git pull origin master ) ; fi ;; + *) if [ ! -f ${i##*/} ] ; then wget $i ; fi ;; + esac done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + git checkout origin/master ; git reset --hard 578947e + git set-file-times ) ;; esac done fi @@ -222,17 +208,127 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p etc/pam.d/chfn etc/pam.d/chfn.orig + cat <<- "EOF" | patch etc/pam.d/chfn + 2a3 + > auth include system-auth + EOF + cp -p etc/pam.d/chsh etc/pam.d/chsh.orig + cat <<- "EOF" | patch etc/pam.d/chsh + 2a3 + > auth include system-auth + EOF + cp -p etc/pam.d/login etc/pam.d/login.orig + cat <<- "EOF" | patch etc/pam.d/login + 7c7 + < session required pam_selinux.so close + --- + > #session required pam_selinux.so close + 10,11c10,13 + < session optional pam_console.so + < session required pam_selinux.so open + --- + > session optional pam_unix.so + > #session required pam_selinux.so open + > session required pam_lastlog.so + > session optional pam_ck_connector.so nox11 + EOF + cp -p etc/pam.d/su etc/pam.d/su.orig + cat <<- "EOF" | patch etc/pam.d/su + 6c6 + < auth required pam_wheel.so use_uid + --- + > #auth required pam_wheel.so use_uid + 10c10 + < session required pam_selinux.so close + --- + > #session required pam_selinux.so close + 12c12 + < session required pam_selinux.so open multiple + --- + > #session required pam_selinux.so open multiple + EOF + cp -p etc/pam.d/chage etc/pam.d/chage.orig + cat <<- "EOF" | patch etc/pam.d/chage + 2a3 + > auth include system-auth + EOF + cp -p etc/useradd etc/useradd.orig + sed '/^GROUP=/s@1000@100@g' etc/useradd.orig \ + | sed '/^CREATE_MAIL_SPOOL=/s@yes@no@g' > etc/useradd + cp -p etc/login.defs etc/login.defs.orig + cat <<- "EOF" | patch etc/login.defs + 17c17 + < FAILLOG_ENAB yes + --- + > #FAILLOG_ENAB yes + 32c32 + < LASTLOG_ENAB yes + --- + > #LASTLOG_ENAB yes + 40c40 + < MAIL_CHECK_ENAB yes + --- + > #MAIL_CHECK_ENAB yes + 45c45 + < OBSCURE_CHECKS_ENAB yes + --- + > #OBSCURE_CHECKS_ENAB yes + 50c50 + < PORTTIME_CHECKS_ENAB yes + --- + > #PORTTIME_CHECKS_ENAB yes + 55c55 + < QUOTAS_ENAB yes + --- + > #QUOTAS_ENAB yes + 81c81 + < MOTD_FILE /etc/motd + --- + > #MOTD_FILE /etc/motd + 99c99 + < FTMP_FILE /var/log/btmp + --- + > #FTMP_FILE /var/log/btmp + 106c106 + < NOLOGINS_FILE /etc/nologin + --- + > #NOLOGINS_FILE /etc/nologin + 144c144 + < ENV_HZ HZ=100 + --- + > #ENV_HZ HZ=100 + 205c205 + < PASS_MIN_LEN 5 + --- + > #PASS_MIN_LEN 5 + 214c214 + < SU_WHEEL_ONLY no + --- + > #SU_WHEEL_ONLY no + 219c219 + < CRACKLIB_DICTPATH /var/cache/cracklib/cracklib_dict + --- + > #CRACKLIB_DICTPATH /var/cache/cracklib/cracklib_dict + 260c260 + < PASS_CHANGE_TRIES 5 + --- + > #PASS_CHANGE_TRIES 5 + 265c265 + < PASS_ALWAYS_WARN yes + --- + > #PASS_ALWAYS_WARN yes + 277c277 + < CHFN_AUTH yes + --- + > #CHFN_AUTH yes + 359c359 + < ENVIRON_FILE /etc/environment + --- + > #ENVIRON_FILE /etc/environment + EOF + ./autogen.sh for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +338,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,11 +368,23 @@ make install DESTDIR=$P fi done + install $W/shadow-adduser-20160122 $P/usr/sbin/adduser + install -d $mandir/ja_JP.eucJP/man{1,5,8} + for i in `cd $mandir/ja ; find . -type f` ; do + nkf -We $mandir/ja/$i > $mandir/ja_JP.eucJP/$i + done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for loc in cs da de fi fr hu id it ja_JP.eucJP ko pl pt_BR ru sv tr \ + zh_CN zh_TW ; do + gzip_dir $P/usr/share/man/$loc/man1 + gzip_dir $P/usr/share/man/$loc/man3 + gzip_dir $P/usr/share/man/$loc/man5 + gzip_dir $P/usr/share/man/$loc/man8 + done for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +402,47 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + touch -t `date '+%m%d0900'` $docdir/$src convert + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + EOF + cat <<- "EOF" >> $P/install/doinst.sh + if [ -z "`grep "^root:" /etc/shadow | cut -d: -f2`" ] ; then + echo "root(¥·¥¹¥Æ¥à´ÉÍý¼Ô)¤Î¥Ñ¥¹¥ï¡¼¥É¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£" + until passwd root ; do + echo "root(¥·¥¹¥Æ¥à´ÉÍý¼Ô)¤Î¥Ñ¥¹¥ï¡¼¥É¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£" + done + echo "root¤Î¥Ñ¥¹¥ï¡¼¥É¤ÎÀßÄ꤬´°Î»¤·¤Þ¤·¤¿¡£" + fi + #%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/pam.d + tar rvpf $pkg.tar -C $P etc/login.defs + tar rvpf $pkg.tar -C $P etc/default + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name shadow.mo` + for loc in cs da de fi fr hu id it ja_JP.eucJP ko pl pt_BR ru sv tr \ + zh_CN zh_TW ; do + [ -d $P/usr/share/man/$loc/man1 ] && tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/$loc/man1 | tail -n+2` + [ -d $P/usr/share/man/$loc/man3 ] && tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/$loc/man3 | tail -n+2` + [ -d $P/usr/share/man/$loc/man5 ] && tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/$loc/man5 | tail -n+2` + [ -d $P/usr/share/man/$loc/man8 ] && tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/$loc/man8 | tail -n+2` + done 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/sudo/PlamoBuild.sudo-1.8.15 2016-06-07 14:15:45.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.sudo.ws/sudo/dist/sudo-1.8.15.tar.gz" +pkgbase=sudo +vers=1.8.15 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-pam --without-sendmail --with-env-editor + --with-all-insults --with-hal-insults --with-secure-path" +DOCS="ABOUT-NLS ChangeLog INSTALL* MANIFEST NEWS README* + `echo doc/{CONTRIBUTORS,HISTORY,LICENSE,TROUBLESHOOTING,UPGRADE}`" ###################################################################### fscheck() { @@ -155,6 +156,7 @@ convert() { for i in {$P,$P/usr}/{sbin,bin} ; do prune_symlink $i ; done for i in {$P,$P/usr}/$libdir ; do prune_symlink $i ; done + prune_symlink $P/usr/libexec/sudo prune_symlink $infodir for i in `seq 9` n ; do prune_symlink $mandir/man$i ; done } @@ -224,17 +226,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -269,14 +260,25 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install DESTDIR=$P fi done + mv $P/etc/sudoers $C + mv $C/sudoers $P/etc/sudoers.new + install -d $P/etc/pam.d + cat <<- "EOF" > $P/etc/pam.d/sudo + #%PAM-1.0 + auth include plamo-default + account include plamo-default + password include plamo-default + session include plamo-default + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/libexec/sudo for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +296,33 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/sudo/examples $docdir/$src + mv $docdir/$src/{examples,$myname.gz} $C + mv $C/{examples,$myname.gz} $docdir/$src + touch -t `date '+%m%d0900'` $docdir/$src{,/doc} 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` + touch -t `date '+%m%d0900'` $P/usr/libexec/sudo + cat <<- "EOF" >> $P/install/doinst.sh + + mv etc/sudoers.new /tmp + if [ -f etc/sudoers ] ; then + mv /tmp/sudoers.new etc/sudoers.dist + else + mv /tmp/sudoers.new etc/sudoers + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/sudo + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P `cd $P ; find etc -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P var/{run,db}/sudo + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/sysfsutils/PlamoBuild.sysfsutils-2.1.0 2016-08-27 20:08:51.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/linux-diag/sysfsutils-2.1.0.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/sysfsutils/sysfs_get_link.patch" +pkgbase=sysfsutils +vers=2.1.0 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" +patchfiles="sysfs_get_link.patch" OPT_CONFIG="" -DOCS="README" +DOCS="TODO NEWS INSTALL README COPYING CREDITS AUTHORS + docs/libsysfs.txt ChangeLog" ###################################################################### fscheck() { @@ -296,8 +298,11 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/sysfs tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/syslinux/PlamoBuild.syslinux-6.03 2016-03-23 20:36:22.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz + http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-devtools/syslinux/syslinux/syslinux-fix-parallel-building-issue.patch + http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-devtools/syslinux/syslinux/syslinux-libupload-depend-lib.patch + http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-devtools/syslinux/syslinux/syslinux-remove-clean-script.patch + http://www.nasm.us/pub/nasm/releasebuilds/2.11.08/nasm-2.11.08.tar.xz" +pkgbase=syslinux +vers=6.03 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING NEWS README" ###################################################################### fscheck() { @@ -186,35 +189,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -222,17 +204,18 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $W/nasm-2.11.08 + ./configure --prefix=$W/nasm + make install + PATH="$W/nasm/bin:$PATH" + cd $B + patch -Np1 -i $W/syslinux-fix-parallel-building-issue.patch + patch -Np1 -i $W/syslinux-libupload-depend-lib.patch + patch -Np1 -i $W/syslinux-remove-clean-script.patch + if [ $arch == i686 ] ; then + cp -p Makefile{,.orig} + sed -i '/^all_firmware/s@ efi64@@' Makefile + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +225,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,7 +252,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install INSTALLROOT=$P MANDIR=/usr/share/man fi done touch $W/i.et @@ -294,8 +277,16 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/doc $docdir/$src + chmod -R g-w $docdir/$src/doc + chown -R root.root $docdir/$src/doc + mv $docdir/$src/{doc,{NEWS,README,$myname}.gz} $C + mv $C/{doc,{NEWS,README,$myname}.gz} $docdir/$src + 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 sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/syslinux tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/sysvinit/PlamoBuild.sysvinit-2.88dsf 2016-09-08 21:00:03.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.savannah.gnu.org/releases/sysvinit/sysvinit-2.88dsf.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/sysvinit/plamo-rc-scripts-20160908.tgz" +pkgbase=sysvinit +vers=2.88dsf arch=`uname -m` -build=P1 +build=P18 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="doc/bootlogd.README doc/Install doc/Changelog doc/Propaganda + COPYING COPYRIGHT Makefile README" ###################################################################### fscheck() { @@ -269,14 +271,38 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install ROOT=$P fi done + cat <<- "EOF" > $P/sbin/link_rootdev.sh + #!/bin/sh + + root="`cat /proc/cmdline | sed -n 's@.*\=\([^ ]*\).*@\1@p'`" + if grep -q "^PARTUUID=" <<< $root ; then + # root=PARTUUID= + root_part=`blkid | tr -d '"' | grep $root | cut -d: -f1 | sed 's@/dev/@@'` + else + if grep -q "^/dev/" <<< $root ; then + # root=/dev/sda1 (grub) + root_part=${root#/dev/} + else + # root=801 (lilo) + maj=$((`printf "%d" 0x$root` / 256)) + min=$((`printf "%d" 0x$root` % 256)) + root_part=`cat /proc/partitions \ + | sed -n "/ $maj *$min /s@.* \([^ ]*\)@\1@p"` + fi + fi + ln -sf $root_part /dev/root + EOF + chmod 755 $P/sbin/link_rootdev.sh touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + cp -a etc $P + chown -R root.root $P/etc for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +321,27 @@ ( 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` + prune_symlink $P/etc/rc.d + touch -r etc/rc.d $P/etc/rc.d + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $src + EOF + cat <<- "EOF" >> $P/install/doinst.sh + vers=`ls /usr/lib/setup/Plamo* | tail -n1 | cut -d"/" -f5` + echo "%s %r ($vers) %v" > /etc/motd.in + #%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc -maxdepth 1 | tail -n+2` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/tar/PlamoBuild.tar-1.26 2016-04-08 19:38:20.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="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" +pkgbase=tar +vers=1.26 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS TODO README THANKS ChangeLog.1 AUTHORS INSTALL ABOUT-NLS + ChangeLog COPYING" ###################################################################### fscheck() { @@ -186,35 +189,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +203,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + 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 Makefile ] ; then @@ -242,8 +216,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -277,6 +251,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,7 +271,9 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name tar.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/tcp_wrappers/PlamoBuild.tcp_wrappers-7.6.q 2016-06-07 14:34:48.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://archive.debian.org/debian/pool/main/t/tcp-wrappers/tcp-wrappers_7.6.q.orig.tar.gz + http://archive.debian.org/debian/pool/main/t/tcp-wrappers/tcp-wrappers_7.6.q-16.diff.gz" +pkgbase=tcp_wrappers +vers=7.6.q arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P5 +src=tcp_wrappers_7.6 OPT_CONFIG="" -DOCS="README" +DOCS="README BLURB DISCLAIMER CHANGES README.IRIX README.NIS" ###################################################################### fscheck() { @@ -222,16 +222,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done + cd $B + gunzip -c $W/tcp-wrappers_7.6.q-16.diff.gz | patch -Np1 -i - + for i in `cat debian/patches/series` ; do + patch -Np1 -i debian/patches/$i done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} @@ -252,7 +246,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make linux fi done fi @@ -268,10 +262,58 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make install DESTDIR=$P fi done + install -d $P/usr/sbin + for i in tcpd tcpdmatch try-from safe_finger tcpdchk ; do + install $i $P/usr/sbin + done + install -d $P/usr/$libdir + install shared/libwrap.so.0.7.6 $P/usr/$libdir + install -m 644 libwrap.a $P/usr/$libdir + ln -s libwrap.so.0.7.6 $P/usr/$libdir/libwrap.so.0 + ln -s libwrap.so.0.7.6 $P/usr/$libdir/libwrap.so + install -d $P/usr/include + install -m 644 tcpd.h $P/usr/include + install -d $mandir/man{3,5,8} + install -m 644 hosts_access.3 $mandir/man3 + for i in hosts_access hosts_options ; do + install -m 644 $i.5 $mandir/man5 + done + for i in tcpd tcpdmatch try-from safe_finger tcpdchk ; do + install -m 644 $i.8 $mandir/man8 + done + install -d $P/etc + cat <<- "EOF" > $P/etc/hosts.allow.new + # + # hosts.allow This file describes the names of the hosts which are + # allowed to use the local INET services, as decided by + # the '/usr/sbin/tcpd' server. + # + # Version: @(#)/etc/hosts.allow 1.00 05/28/93 + # + # Author: Fred N. van Kempen, $P/etc/hosts.deny.new + # + # hosts.deny This file describes the names of the hosts which are + # *not* allowed to use the local INET services, as decided + # by the '/usr/sbin/tcpd' server. + # + # Version: @(#)/etc/hosts.deny 1.00 05/28/93 + # + # Author: Fred N. van Kempen, > $P/install/doinst.sh + + hosts_config() { + mv etc/hosts.$1.new /tmp + if [ -f etc/hosts.$1 ] ; then + mv /tmp/hosts.$1.new etc/hosts.$1.dist + else + mv /tmp/hosts.$1.new etc/hosts.$1 + fi + } + + for i in allow deny ; do hosts_config $i ; done + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc | 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/tcsh/PlamoBuild.tcsh-6.19.00 2016-04-09 21:13:31.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.osuosl.org/pub/blfs/conglomeration/tcsh/tcsh-6.19.00.tar.gz" +pkgbase=tcsh +vers=6.19.00 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="BUGS Copyright FAQ Fixes NewThings Ported README README.imake + WishList Y2K src.desc" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -270,8 +237,14 @@ cd ${B[$i]} if [ -f Makefile ] ; then make install DESTDIR=$P + make install.man DESTDIR=$P fi done + install -d $P/bin + mv $P/usr/bin/tcsh $P/bin + ln -s /bin/tcsh $P/usr/bin + install -d $mandir/man3 + install -m 644 glob.3 $mandir/man3 touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +268,13 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.cat"` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/timezone/PlamoBuild.timezone-2016f 2016-09-10 23:56:28.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.iana.org/time-zones/repository/releases/tzcode2016f.tar.gz + http://www.iana.org/time-zones/repository/releases/tzdata2016f.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/timezone/plamo_timeconfig.tar.gz" +pkgbase=timezone +vers=2016f arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CONTRIBUTING LICENSE NEWS README Theory tz-art.htm + tz-how-to.html tz-link.htm" ###################################################################### fscheck() { @@ -209,7 +212,7 @@ fi fi done - for i in $url ; do + false && for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; gz|tgz) tar xvpzf ${i##*/} ;; @@ -217,6 +220,10 @@ xz|txz) tar xvpJf ${i##*/} ;; esac done + mkdir timezone-2016f + tar xvpzf tzcode2016f.tar.gz -C timezone-2016f + tar xvpzf tzdata2016f.tar.gz -C timezone-2016f + tar xvpzf plamo_timeconfig.tar.gz fi if [ $opt_config -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -269,9 +276,17 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install TOPDIR=$P/usr/share TZDIR=$P/usr/share/zoneinfo \ + LIBDIR=$P/usr/$libdir fi done + install -d $P/usr/sbin + install $W/plamo_timeconfig/usr/sbin/timeconfig $P/usr/sbin + mv $P/usr/share/zoneinfo{,.new} + install -d $P/var/log/setup + for i in {,e}setup.timeconfig ; do + install $W/plamo_timeconfig/var/log/setup/$i $P/var/log/setup + done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +309,31 @@ 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` + prune_symlink $P/usr/share + cat <<- "EOF" >> $P/install/doinst.sh + + if [ -h usr/share/zoneinfo/localtime ] ; then + ln -sf `readlink usr/share/zoneinfo/localtime` \ + usr/share/zoneinfo.new/localtime + fi + mkdir usr/share/zoneinfo.tmp + mv usr/share/zoneinfo.new usr/share/zoneinfo.tmp + rm -rf usr/share/zoneinfo + mv usr/share/zoneinfo.tmp/zoneinfo.new usr/share/zoneinfo + rmdir usr/share/zoneinfo.tmp + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/zoneinfo{.new,-posix,-leaps} + tar rvpf $pkg.tar -C $P var/log/setup + 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/traceroute/PlamoBuild.traceroute-2.0.18 2016-01-21 20:26:50.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/traceroute/traceroute-2.0.18.tar.gz" +pkgbase=traceroute +vers=2.0.18 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING.LIB CREDITS ChangeLog COPYING VERSION TODO README" ###################################################################### fscheck() { @@ -186,35 +185,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +201,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +208,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +218,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make prefix=/usr fi done fi @@ -269,7 +235,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P prefix=/usr fi done touch $W/i.et @@ -296,7 +262,7 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/udev/PlamoBuild.udev-175 2016-01-19 08:49:58.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.kernel.org/pub/linux/utils/kernel/hotplug/udev-175.tar.bz2" +pkgbase=udev +vers=175 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--libexecdir=/lib/udev --sysconfdir=/etc + --disable-introspection --enable-rule_generator" +DOCS="README extras/keymap/README.keymap.txt INSTALL ChangeLog NEWS + TODO COPYING" ###################################################################### fscheck() { @@ -186,35 +187,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +203,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,9 +210,10 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-rootlibdir=/$libdir fi done fi @@ -272,6 +241,13 @@ make install DESTDIR=$P fi done + install -d $P/sbin + mv $P/lib/udev/udevd $P/sbin + ln -s /sbin/udevd $P/lib/udev + mv $P/usr/sbin/udevadm $P/sbin + ln -s /sbin/udevadm $P/usr/sbin + mv $P/usr/$libdir/{lib{udev,gudev-1.0}.{so,la},pkgconfig} $C + mv $C/{lib{udev,gudev-1.0}.{so,la},pkgconfig} $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +271,23 @@ ( 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` + prune_symlink $P/lib/udev + touch -t `date '+%m%d0900'` $P/lib/udev + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P lib/udev + tar rvpf $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 `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/gtk-doc/html -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P etc/udev + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/unicon_tools/PlamoBuild.unicon_tools-0.0.0.20050707 2016-01-19 08:50:31.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://vdlinux.sourceforge.jp/dists/UNICON/unicon-tools-0.0.0.20050707.tar.gz" +pkgbase=unicon_tools +vers=0.0.0.20050707 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=unicon-tools-$vers OPT_CONFIG="" -DOCS="README" +DOCS="`echo doc/{{README,RELEASE,INSTALL}{,_cn},THANKS,ChangeLog}` + INSTALL COPYING CREDITS" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,7 +236,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P libdir=$P/usr/share fi done touch $W/i.et @@ -296,7 +263,7 @@ 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` + tar rvpf $pkg.tar -C $P usr/share/unicon 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/util_linux/PlamoBuild.util_linux-2.28 2016-04-27 07:35:14.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.kernel.org/pub/linux/utils/util-linux/v2.28/util-linux-2.28.tar.xz" +pkgbase=util_linux +vers=2.28 arch=`uname -m` build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +src=util-linux-$vers +OPT_CONFIG="--localstatedir=/var --disable-setpriv --disable-last + --disable-mesg --disable-chfn-chsh --disable-login --disable-nologin + --disable-sulogin --disable-su --enable-write --disable-pylibmount + --without-user --without-python" +DOCS="COPYING ABOUT-NLS ChangeLog README NEWS README.licensing AUTHORS" ###################################################################### fscheck() { @@ -187,22 +189,14 @@ if [ $opt_download -eq 1 ] ; then for i in $url ; do if [ ! -f ${i##*/} ] ; then - wget $i ; j=${i%.*} - for sig in asc sig{,n} {sha{256,1},md5}{,sum} ; do + wget $i + for sig in asc sig{,n} {md5,sha{1,256}}{,sum} ; do if wget --spider $i.$sig ; then wget $i.$sig ; break ; fi - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi done if [ -f ${i##*/}.$sig ] ; then case $sig in asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; + md5|sha1|sha256) ${sig}sum -c ${i##*/}.$sig ;; *) $sig -c ${i##*/}.$sig ;; esac if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi @@ -213,8 +207,8 @@ case ${i##*.} in tar) tar xvpf ${i##*/} ;; gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -224,17 +218,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +225,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir=/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,9 +252,15 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install DESTDIR=$P fi done + mv $P/usr/bin/logger $P/bin + ln -s /bin/logger $P/usr/bin + mv $P/bin/{,u}mount $P/sbin + ln -s /sbin/mount $P/bin + ln -s /sbin/umount $P/bin + install -d $P/var/lib/hwclock touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +283,34 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/Documentation $docdir/$src + chmod -R g-w $docdir/$src/Documentation + chown -R root.root $docdir/$src/Documentation + mv $docdir/util-linux/getopt $docdir/$src + mv $docdir/$src/{Documentation,{README,NEWS}.gz,getopt} $C + mv $docdir/$src/{README.licensing,AUTHORS,$myname}.gz $C + mv $C/{Documentation,{README,NEWS}.gz,getopt} $docdir/$src + mv $C/{README.licensing,AUTHORS,$myname}.gz $docdir/$src + touch -r $S $docdir/$src convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $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 `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/bash-completion/completions | tail -n+2` + tar rvpf $pkg.tar -C $P var/lib/hwclock 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/xz/PlamoBuild.xz-5.2.2 2016-01-26 13:46:29.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://tukaani.org/xz/xz-5.2.2.tar.xz" +pkgbase=xz +vers=5.2.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="PACKAGERS INSTALL.generic COPYING.LGPLv2.1 COPYING.GPLv3 INSTALL + ChangeLog ABOUT-NLS TODO THANKS README NEWS COPYING.GPLv2 COPYING + AUTHORS" ###################################################################### fscheck() { @@ -186,35 +187,14 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; esac done fi @@ -224,17 +204,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +211,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -272,6 +241,8 @@ make install DESTDIR=$P fi done + install -d $P/bin + for i in {,un}xz {,un}lzma ; do ln -s /usr/bin/$i $P/bin ; done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +265,23 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/xz/{{faq,history,{xz,lzma}-file-format}.txt,examples*} \ + $docdir/$src + mv $docdir/$src/{{faq,history,{xz,lzma}-file-format}.txt,examples*} $C + mv $docdir/$src/$myname.gz $C + mv $C/{{faq,history,{xz,lzma}-file-format}.txt,examples*} $docdir/$src + mv $C/$myname.gz $docdir/$src + touch -r $S $docdir/$src convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | 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 `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/zlib/PlamoBuild.zlib-1.2.8 2016-01-19 20:31:31.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://zlib.net/zlib-1.2.8.tar.gz" +pkgbase=zlib +vers=1.2.8 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog `echo doc/{algorithm,rfc195{0,1,2},txtvsbin}.txt` + FAQ INDEX README" ###################################################################### fscheck() { @@ -186,35 +186,13 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + if [ ! -f ${i##*/} ] ; then wget $i ; fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +202,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,9 +209,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + ${OPT_CONFIG[$i]} fi done fi @@ -294,10 +260,17 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/examples $docdir/$src + chown -R root.root $docdir/$src/examples + mv $docdir/$src/{examples,{FAQ,INDEX,README,$myname}.gz} $C + mv $C/{examples,{FAQ,INDEX,README,$myname}.gz} $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/FDclone/PlamoBuild.FDclone-3.01b 2016-06-13 08:31:38.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://hp.vector.co.jp/authors/VA012337/soft/fd/FD-3.01b.tar.gz" +pkgbase=FDclone +vers=3.01b arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=FD-$vers OPT_CONFIG="" -DOCS="README" +DOCS="`echo {README,HISTORY,FAQ,TECHKNOW,Install,ToAdmin,LICENSES}.eng` + FAQ README HISTORY TECHKNOW Install ToAdmin LICENSES" ###################################################################### fscheck() { @@ -222,17 +222,63 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p Makefile{,.orig} + cat <<- "EOF" | patch Makefile + 41c41,42 + < -DHOSTLDFLAGS='"''$(HOSTLDFLAGS)''"' + --- + > -DHOSTLDFLAGS='"''$(HOSTLDFLAGS)''"' \ + > -DUSEDATADIR + EOF + cp -p machine.h{,.orig} + cat <<- "EOF" | patch machine.h + 962c962 + < /* #define LANGWIDTH ;column width of LANG used man(1) directory */ + --- + > #undef LANGWIDTH /* ;column width of LANG used man(1) directory */ + EOF + cp -p version.h{,.orig} + sed -i 's/NULL/"kojima@linet.gr.jp (Plamo Linux)"/' version.h + cp -p _fdrc{,.orig} + cat <<- "EOF" | patch _fdrc + 30c30 + < #DISPLAYMODE=0 + --- + > DISPLAYMODE=3 + 41c41 + < #WRITEFS=0 + --- + > WRITEFS=1 + 51c51 + < #INHERITCOPY=0 + --- + > INHERITCOPY=1 + 78c78 + < #DEFCOLUMNS=2 + --- + > DEFCOLUMNS=1 + 87c87 + < #WIDEDIGIT=0 + --- + > WIDEDIGIT=1 + 138c138 + < #SECOND=0 + --- + > SECOND=1 + 153c153 + < #SIZEINFO=0 + --- + > SIZEINFO=1 + 160c160 + < #FUNCLAYOUT=1005 + --- + > FUNCLAYOUT=1204 + 186c186 + < #ANSICOLOR=0 + --- + > ANSICOLOR=1 + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -252,7 +298,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make PREFIX=/usr CFLAGS="-DUSEDATADIR" fi done fi @@ -269,14 +315,17 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install BUILD=$P MANTOP=/usr/share/man fi done + install -d $P/etc + install -m 644 _fdrc $P/etc/fd2rc.new touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + gzip_dir $mandir/ja_JP.eucJP/man1 for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +344,24 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + mv etc/fd2rc.new /tmp + if [ -f etc/fd2rc ] ; then + mv /tmp/fd2rc.new etc/fd2rc.dist + else + mv /tmp/fd2rc.new etc/fd2rc + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/fd + tar rvpf $pkg.tar -C $P etc/fd2rc.new 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/ja_JP.eucJP/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/Python2/PlamoBuild.Python2-2.7.9 2016-06-12 17:35:00.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz" +pkgbase=Python2 +vers=2.7.9 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P3 +src=Python-$vers +OPT_CONFIG="--enable-shared --with-system-expat --with-system-ffi + --with-dbmliborder=gdbm:bdb:ndbm" +DOCS="LICENSE README" ###################################################################### fscheck() { @@ -222,17 +222,16 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + sed -i 's@\(#! /usr\)/local\(/bin/python\)@\1\22@' Lib/cgi.py + if [ $arch == x86_64 ] ; then + sed -i 's@lib\(/python\)@lib64\1@' \ + Lib/{distutils/command/install,sysconfig}.py + sed -i 's@"lib"@"lib64"@' Lib/{distutils/sysconfig,site}.py + sed -i '/^SCRIPTDIR/s@lib@lib64@' Makefile.pre.in + sed -i -e '/VERSION/s@lib/@lib64/@' -e '/joinpath/s@lib/@lib64/@' \ + Modules/getpath.c + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,11 +271,17 @@ make install DESTDIR=$P fi done + touch $P/usr/bin/{pydoc,idle,2to3,smtpd.py} + ln -s /usr/$libdir/libpython2.7.so $P/usr/$libdir/python2.7/config + touch $P/usr/$libdir/python2.7/lib-dynload/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/python2.7/config + strip_libdir $P/usr/$libdir/python2.7/lib-dynload + touch -t `date '+%m%d0900'` $P/usr/$libdir/python2.7/lib-dynload for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +300,15 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + touch -t `date '+%m%d0900'` $P/usr/$libdir/python2.7/config tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libpython2.7.*` + tar rvpf $pkg.tar -C $P usr/$libdir/python2.7 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/python2.7 tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/alsa.txz/alsa_lib/PlamoBuild.alsa_lib-1.1.1 2016-06-13 13:50:17.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.1.tar.bz2" +pkgbase=alsa_lib +vers=1.1.1 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=alsa-lib-$vers OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL ChangeLog NOTES TODO COPYING MEMORY-LEAK" ###################################################################### fscheck() { @@ -224,17 +223,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -255,6 +243,7 @@ make fi done + make doc fi if [ $opt_package -eq 1 ] ; then if [ `id -u` -ne 0 ] ; then @@ -272,11 +261,15 @@ make install DESTDIR=$P fi done + install -d $docdir/alsa-lib + cp -r doc/doxygen/html $docdir/alsa-lib touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/alsa-lib/smixer + touch -t `date '+%m%d0900'` $P/usr/$libdir/alsa-lib/smixer for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +287,23 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/alsa-lib/html $docdir/$src + mv $docdir/$src/{html,{INSTALL,ChangeLog,NOTES,TODO,COPYING}.gz} $C + mv $docdir/$src/{MEMORY-LEAK,$myname}.gz $C + mv $C/{html,{INSTALL,ChangeLog,NOTES,TODO,COPYING}.gz} $docdir/$src + mv $C/{MEMORY-LEAK,$myname}.gz $docdir/$src + touch -r $S $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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name "libasound.*"` + tar rvpf $pkg.tar -C $P usr/$libdir/alsa-lib + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/alsa + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include/sys | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/alsa + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/alsa.txz/alsa_utils/PlamoBuild.alsa_utils-1.1.1 2016-06-13 22:40:37.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.1.1.tar.bz2" +pkgbase=alsa_utils +vers=1.1.1 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=alsa-utils-$vers +OPT_CONFIG="--with-asound-state-dir=/etc" +DOCS="ABOUT-NLS INSTALL ChangeLog TODO README COPYING" ###################################################################### fscheck() { @@ -224,17 +223,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -277,6 +265,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + gzip_dir $mandir/fr/man8 for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +284,26 @@ ( 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` + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + # initialize sound card and store data + alsactl init + alsactl store + #%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find lib/udev/rules.d | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/alsa + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P usr/share/sounds/alsa 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/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/fr/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/alsa.txz/alsa_plugins/PlamoBuild.alsa_plugins-1.1.1 2016-06-13 16:20:05.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.alsa-project.org/pub/plugins/alsa-plugins-1.1.1.tar.bz2" +pkgbase=alsa_plugins +vers=1.1.1 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=alsa-plugins-$vers OPT_CONFIG="" -DOCS="README" +DOCS="`echo doc/{{samplerate,a52}.txt,README-{pcm-oss,maemo,jack}}` + `echo doc/{{speex{dsp,rate},lavcrate,vdownmix}.txt,README-pulse}` + `echo doc/{upmix.txt,README-arcam-av}` COPYING COPYING.GPL" ###################################################################### fscheck() { @@ -224,17 +225,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -277,6 +267,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/alsa-lib for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +286,11 @@ ( 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` + touch -t `date '+%m%d0900'` $P/usr/$libdir/alsa-lib + tar cvpf $pkg.tar -C $P usr/$libdir/alsa-lib + tar rvpf $pkg.tar -C $P usr/share/alsa 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/aspell.txz/aspell/PlamoBuild.aspell-0.60.6.1 2016-09-02 09:42:02.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.1.tar.gz" +pkgbase=aspell +vers=0.60.6.1 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="TODO README ABOUT-NLS COPYING" ###################################################################### fscheck() { @@ -272,11 +272,16 @@ make install DESTDIR=$P fi done + sver=`echo $vers | cut -d. -f1-2` + ln -s /usr/$libdir/aspell-$sver/spell $P/usr/bin + ln -s /usr/$libdir/aspell-$sver/ispell $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/aspell-$sver + touch -t `date '+%m%d0900'` $P/usr/$libdir/aspell-$sver for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +301,13 @@ 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/$libdir -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/aspell.txz/aspell6_en/PlamoBuild.aspell6_en-7.1.0 2016-06-15 13:42:28.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-7.1-0.tar.bz2" +pkgbase=aspell6_en +vers=7.1.0 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=aspell6-en-7.1-0 OPT_CONFIG="" -DOCS="README" +DOCS="`echo doc/{extra.txt,ChangeLog,SCOWL-README}` README README.iso" ###################################################################### fscheck() { @@ -224,17 +223,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,9 +230,7 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure fi done fi @@ -295,8 +281,7 @@ ( 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` + tar cvpf $pkg.tar -C $P usr/$libdir/aspell-0.60 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/autofs/PlamoBuild.autofs-5.1.1 2016-07-17 20:49:52.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.1.1.tar.xz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/autofs/autofs_init_sleep.patch" +pkgbase=autofs +vers=5.1.1 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="autofs_init_sleep.patch" +OPT_CONFIG="--with-confdir=/etc --without-openldap" +DOCS="CHANGELOG COPYING COPYRIGHT CREDITS INSTALL README*" ###################################################################### fscheck() { @@ -269,14 +270,22 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P initdir=/etc/rc.d/init.d fi done + chmod 644 $P/etc/rc.d/init.d/autofs + for i in fs fs_ldap_auth.conf .master .misc .net .smb ; do + mv $P/etc/auto$i $C/auto$i.new + done + for i in fs fs_ldap_auth.conf .master .misc .net .smb ; do + mv $C/auto$i.new $P/etc + done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/autofs for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +304,29 @@ ( 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` + cat <<- "EOF" >> $P/install/doinst.sh + + autofs_config() { + mv etc/auto$1.new /tmp + if [ -f etc/auto$1 ] ; then + mv /tmp/auto$1.new etc/auto$1.dist + else + mv /tmp/auto$1.new etc/auto$1 + fi + } + + for i in fs fs_ldap_auth.conf .master .misc .net .smb ; do + autofs_config $i + done + EOF + touch -t `date '+%m%d0900'` $P/usr/$libdir/autofs $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/autofs + tar rvpf $pkg.tar -C $P `cd $P ; find etc -type f` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/bc/PlamoBuild.bc-1.06.95 2016-06-18 22:11:34.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://alpha.gnu.org/gnu/bc/bc-1.06.95.tar.bz2" +pkgbase=bc +vers=1.06.95 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-readline" +DOCS="README AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS FAQ" ###################################################################### fscheck() { @@ -294,8 +294,15 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/{Examples,Test} $docdir/$src + chmod 755 $docdir/$src/{Examples,Test} + chown -R root.root $docdir/$src/{Examples,Test} + mv $docdir/$src/{Examples,Test,{FAQ,$myname}.gz} $C + mv $C/{Examples,Test,{FAQ,$myname}.gz} $docdir/$src + touch -r $S $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/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/berkeley_db/PlamoBuild.berkeley_db-4.7.25 2016-06-16 21:24:28.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.oracle.com/berkeley-db/db-4.7.25.tar.gz" +pkgbase=berkeley_db +vers=4.7.25 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P4 +src=db-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-compat185 --enable-cxx --enable-o_direct + --enable-pthread_api --enable-rpc" +DOCS="LICENSE README" ###################################################################### fscheck() { @@ -223,7 +224,7 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build_unix for j in ${patchfiles[$i]} ; do case ${j##*.} in gz) gunzip -c $W/$j | patch -Np1 -i - ;; @@ -234,23 +235,24 @@ done done for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build_unix if [ -f Makefile ] ; then make clean fi if [ -f config.log ] ; then rm -rf config.cache config.log fi - if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + if [ -x ../dist/configure ] ; then + ../dist/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-tcl=/usr/$libdir fi done fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build_unix if [ -f Makefile ] ; then make fi @@ -267,11 +269,19 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build_unix if [ -f Makefile ] ; then make install DESTDIR=$P fi done + chown -R root.root $P/usr/{bin,$libdir,include,docs} + touch $P/usr/$libdir/* $P/usr/include/* + ( cd $P/usr/docs ; find . -type d ! -path ./articles/inmemory \ + ! -path ./articles/inmemory/C ! -path ./collections/tutorial \ + ! -path ./gsg/JAVA ! -path ./gsg_db_rep/JAVA ! -path ./gsg_txn/JAVA \ + ! -path ./java ! -path ./java/com/sleepycat \ + ! -path ./java/com/sleepycat/util -exec touch {} \; ) + chmod -R g-w $P/usr/docs touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +304,16 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $P/usr/docs $docdir/$src + mv $docdir/$src/{docs,$myname.gz} $C + mv $C/{docs,$myname.gz} $docdir/$src + touch -r $S $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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/bsd_games/PlamoBuild.bsd_games-2.17 2016-06-17 17:39:04.000000000 +0900 @@ -1,15 +1,21 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz + http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-misc/bsd-games/files/bsd-games-2.17-glibc2.10.patch + http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-misc/bsd-games/files/bsd-games-2.17-gcc43.patch + http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-misc/bsd-games/files/bsd-games-2.17-headers.patch + http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-misc/bsd-games/files/bsd-games-2.17-64bit.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/bsd_games/hangman-words.gz" +pkgbase=bsd_games +vers=2.17 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P5 +src=bsd-games-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="THANKS AUTHORS BUGS COPYING NEWS ChangeLog PACKAGING + SECURITY ChangeLog.0 INSTALL README YEAR2000 TODO" ###################################################################### fscheck() { @@ -233,6 +239,17 @@ esac done done + cd $B + patch -Np0 -i $W/bsd-games-2.17-glibc2.10.patch + patch -Np0 -i $W/bsd-games-2.17-gcc43.patch + patch -Np0 -i $W/bsd-games-2.17-headers.patch + patch -Np1 -i $W/bsd-games-2.17-64bit.patch + cat <<- "EOF" > config.params + bsd_games_cfg_non_interactive=y + bsd_games_cfg_install_prefix=\$\{DESTDIR\} + bsd_games_cfg_use_dm=y + bsd_games_cfg_libexecdir=/usr/libexec/games/dm + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -251,7 +268,7 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + if [ -f GNUmakefile ] ; then make fi done @@ -268,15 +285,22 @@ 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 GNUmakefile ] ; then + make -i install DESTDIR=$P fi done + install -d $P/usr/share/dict + gunzip -c $W/hangman-words.gz > $P/usr/share/dict/words + chgrp -R games $P/var/games + chmod -R g+w $P/var/games touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/games + strip_bindir $P/usr/libexec/games/dm + touch -t `date '+%m%d0900'` $P/usr/libexec/games/dm for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +318,25 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/bsd-games $docdir/$src/trek + mv $docdir/$src/{trek,{INSTALL,README,YEAR2000,TODO,$myname}.gz} $C + mv $C/{trek,{INSTALL,README,YEAR2000,TODO,$myname}.gz} $docdir/$src + touch -r $S $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` + prune_symlink $P/usr/games + touch -t `date '+%m%d0900'` $P/usr/games + tar cvpf $pkg.tar -C $P usr/games + tar rvpf $pkg.tar -C $P usr/libexec/games + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/games + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/misc | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/dict/words + tar rvpf $pkg.tar -C $P var/games + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man6 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/bvi/PlamoBuild.bvi-1.4.0 2016-06-17 19:26:49.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/bvi/bvi-1.4.0.src.tar.gz" +pkgbase=bvi +vers=1.4.0 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README COPYING CREDITS CHANGES" ###################################################################### fscheck() { @@ -296,6 +296,7 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/bvi tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/cpio/PlamoBuild.cpio-2.11 2016-07-10 12:03:44.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/cpio/cpio-2.11.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/cpio/cpio-2.11-stdio.in.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/cpio/CVE-2014-9112.patch" +pkgbase=cpio +vers=2.11 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" +patchfiles="cpio-2.11-stdio.in.patch CVE-2014-9112.patch" OPT_CONFIG="" -DOCS="README" +DOCS="README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS THANKS + TODO" ###################################################################### fscheck() { @@ -277,6 +280,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,6 +300,9 @@ 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/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/cpufreqd/PlamoBuild.cpufreqd-2.4.2 2016-07-17 12:54:50.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/cpufreqd/cpufreqd-2.4.2.tar.bz2" +pkgbase=cpufreqd +vers=2.4.2 arch=`uname -m` -build=P1 +build=P5 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING NEWS ChangeLog AUTHORS INSTALL README TODO" ###################################################################### fscheck() { @@ -233,6 +233,12 @@ esac done done + cd $B + cp -p src/Makefile.in{,.orig} + sed -i 's@\@$(libdir)@g' src/Makefile.in + cp -p cpufreqd.conf{,.orig} + sed -i -e 's@^#\(enable_remote\)@\1@' \ + -e 's@^#\(remote_group\)@\1@' cpufreqd.conf for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +278,128 @@ make install DESTDIR=$P fi done + mv $P/etc/cpufreqd.conf $C + mv $C/cpufreqd.conf $P/etc/cpufreqd.conf.new + cat <<- "EOF" > $P/etc/cpufreqd.conf.sample + [General] + pidfile=/var/run/cpufreqd.pid + poll_interval=2 + verbosity=4 + enable_remote=1 + remote_group=root + [/General] + + [sensors_plugin] + sensors_conf=/etc/sensors3.conf + [/sensors_plugin] + + [Profile] + name=On Demand High + minfreq=40% + maxfreq=100% + policy=ondemand + [/Profile] + + [Profile] + name=On Demand Low + minfreq=20% + maxfreq=80% + policy=ondemand + [/Profile] + + [Profile] + name=Performance High + minfreq=100% + maxfreq=100% + policy=performance + [/Profile] + + [Profile] + name=Performance Low + minfreq=80% + maxfreq=80% + policy=performance + [/Profile] + + [Profile] + name=Powersave High + minfreq=70% + maxfreq=70% + policy=powersave + [/Profile] + + [Profile] + name=Powersave Low + minfreq=30% + maxfreq=30% + policy=powersave + [/Profile] + + [Rule] + name=Default Rule + sensor=temp1:0-60 + cpu_interval=0-100 + profile=Performance High + [/Rule] + + [Rule] + name=CPU Too Hot + sensor=temp1:61-100 + cpu_interval=50-100 + profile=On Demand Low + [/Rule] + + EOF + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/cpufreqd + #!/bin/sh + + start() { + for i in cpufreq_{conservative,powersave,userspace,ondemand,stats} \ + freq_table ; do + modprobe $i > /dev/null 2>&1 + done + for i in acpi-cpufreq mperf p4-clockmod powernow-k8 speedstep-centrino \ + speedstep-lib ; do + modprobe $i > /dev/null 2>&1 + done + for i in ac battery container pci_slot processor sbshc video acpi_pad \ + button fan power_meter sbs thermal ; do + modprobe $i >/dev/null 2>&1 + done + if [ -x /usr/sbin/cpufreqd ] ; then + echo $"Starting cpufreqd..." + cpufreqd + fi + } + + stop() { + if [ -f /var/run/cpufreqd.pid ] ; then + echo $"Stopping cpufreqd daemon..." + kill `cat /var/run/cpufreqd.pid` + rm -f /var/run/cpufreqd.pid + fi + } + + case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 3 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 + ;; + esac + exit 0 + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +423,26 @@ ( 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` + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + mv etc/cpufreqd.conf.new /tmp + if [ -f etc/cpufreqd.conf ] ; then + mv /tmp/cpufreqd.conf.new etc/cpufreqd.conf.dist + else + mv /tmp/cpufreqd.conf.new etc/cpufreqd.conf + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P etc/cpufreqd.conf.{new,sample} + tar rvpf $pkg.tar -C $P etc/rc.d/init.d/cpufreqd 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/cpufrequtils/PlamoBuild.cpufrequtils-008 2016-06-22 01:19:10.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-008.tar.xz + http://slackware.uk/people/alien-arm/bootstrap/source.local/a/cpufrequtils/cpufrequtils_no_aperf.diff" +pkgbase=cpufrequtils +vers=008 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING README" ###################################################################### fscheck() { @@ -233,6 +234,13 @@ esac done done + cd $B + if [ $arch != i686 -a $arch != x86_64 ] ; then + patch -Np1 -i $W/cpufrequtils_no_aperf.diff + fi + cp -p Makefile{,.orig} + sed -i -e '/^mandir/s@/man@/share/man@' \ + -e "/^libdir/s@/lib@/$libdir@" Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +280,8 @@ make install DESTDIR=$P fi done + touch $P/usr/$libdir/* + chown root.root $P/usr/$libdir/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +306,12 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/cryptsetup/PlamoBuild.cryptsetup-1.6.2 2016-06-18 22:43:00.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://cryptsetup.googlecode.com/files/cryptsetup-1.6.2.tar.bz2" +pkgbase=cryptsetup +vers=1.6.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="FAQ ChangeLog COPYING NEWS COPYING.LGPL AUTHORS ABOUT-NLS README + INSTALL TODO" ###################################################################### fscheck() { @@ -295,9 +296,14 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | 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 `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/autoconf/PlamoBuild.autoconf-2.69 2016-06-22 16:17:41.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz" +pkgbase=autoconf +vers=2.69 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="THANKS NEWS ChangeLog.2 ChangeLog COPYING ChangeLog.3 README + AUTHORS COPYINGv3 BUGS ChangeLog.0 ChangeLog.1 TODO + COPYING.EXCEPTION INSTALL" ###################################################################### fscheck() { @@ -296,6 +298,9 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/autoconf + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/emacs/site-lisp | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/autoconf213/PlamoBuild.autoconf213-2.13 2016-06-22 19:51:00.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz" +pkgbase=autoconf213 +vers=2.13 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=autoconf-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--program-suffix=-2.13" +DOCS="ChangeLog AUTHORS COPYING ChangeLog.0 ChangeLog.1 INSTALL NEWS + README TODO" ###################################################################### fscheck() { @@ -233,6 +234,10 @@ esac done done + cd $B + cp -p Makefile.in{,.orig} + sed -i -e 's@$(bindir)@$(DESTDIR)&@g' -e 's@$(infodir)@$(DESTDIR)&@g' \ + -e 's@ \($(acdatadir)\)@ $(DESTDIR)\1@g' Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +277,9 @@ make install DESTDIR=$P fi done + mv $P/usr/share/info/{autoconf,standards}.info $C + mv $C/autoconf.info $P/usr/share/info/autoconf-$vers.info + mv $C/standards.info $P/usr/share/info/standards-$vers.info touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,7 +304,8 @@ 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` + tar rvpf $pkg.tar -C $P usr/share/autoconf + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/automake/PlamoBuild.automake-1.14.1 2016-06-23 12:56:09.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.xz" +pkgbase=automake +vers=1.14.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="THANKS ChangeLog HACKING NEWS AUTHORS README INSTALL COPYING" ###################################################################### fscheck() { @@ -294,8 +294,17 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/automake/amhello-1.0.tar.gz $docdir/$src + mv $docdir/$src/{amhello-1.0.tar.gz,{AUTHORS,README}.gz} $C + mv $docdir/$src/{INSTALL,COPYING,$myname}.gz $C + mv $C/{amhello-1.0.tar.gz,{AUTHORS,README}.gz} $docdir/$src + mv $C/{INSTALL,COPYING,$myname}.gz $docdir/$src + touch -r $S $docdir/$src convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/automake-${vers%.*} + tar rvpf $pkg.tar -C $P usr/share/aclocal{-${vers%.*},} + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/binutils/PlamoBuild.binutils-2.25 2016-06-23 11:32:29.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/devel.txz/binutils/pr16825.patch.gz" +pkgbase=binutils +vers=2.25 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="pr16825.patch.gz" +OPT_CONFIG="--enable-shared" +DOCS="ChangeLog COPYING* MAINTAINERS README*" ###################################################################### fscheck() { @@ -244,7 +245,9 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` \ + --host=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -252,7 +255,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make tooldir=/usr fi done fi @@ -269,7 +272,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P tooldir=/usr fi done touch $W/i.et @@ -294,10 +297,19 @@ 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/$libdir | tail -n+2` + if [ $arch == x86_64 ] ; then + tar rvpf $pkg.tar -C $P usr/lib/ldscripts + fi + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/bison/PlamoBuild.bison-3.0.4 2016-08-11 16:10:13.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.xz" +pkgbase=bison +vers=3.0.4 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ABOUT-NLS AUTHORS ChangeLog* COPYING INSTALL NEWS PACKAGING + README* THANKS TODO" ###################################################################### fscheck() { @@ -294,8 +295,19 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/bison/examples $docdir/$src + mv $docdir/$src/{examples,{INSTALL,NEWS,PACKAGING,README}.gz} $C + mv $docdir/$src/{README-{alpha,release},THANKS,TODO,$myname}.gz $C + mv $C/{examples,{INSTALL,NEWS,PACKAGING,README}.gz} $docdir/$src + mv $C/{README-{alpha,release},THANKS,TODO,$myname}.gz $docdir/$src + touch -r $S $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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/bison + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/cloog/PlamoBuild.cloog-0.17.0 2016-09-02 18:30:13.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.bastoul.net/cloog/pages/download/cloog-0.17.0.tar.gz" +pkgbase=cloog +vers=0.17.0 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README ChangeLog" ###################################################################### fscheck() { @@ -233,6 +233,18 @@ esac done done + cd $B + cp -p isl/Makefile.in{,.orig} + cat <<- "EOF" | patch isl/Makefile.in + 2221,2223c2221,2223 + < $(DESTDIR)$(libdir)/$$libisl-gdb.py; \ + < test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \ + < $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac + --- + > $(DESTDIR)/usr/share/gdb/auto-load$(libdir)/$$libisl-gdb.py; \ + > test -z "/usr/share/gdb/auto-load$(libdir)" || $(MKDIR_P) "$(DESTDIR)/usr/share/gdb/auto-load$(libdir)"; \ + > $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)/usr/share/gdb/auto-load$(libdir)/$$libisl-gdb.py; esac + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,8 +308,12 @@ 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` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/gdb/auto-load/usr/$libdir | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/cvs/PlamoBuild.cvs-1.11.23 2016-06-24 13:23:07.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.23/cvs-1.11.23.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/devel.txz/cvs/cvs-1.11.23-getline.patch.gz" +pkgbase=cvs +vers=1.11.23 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" +patchfiles="cvs-1.11.23-getline.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="README AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS TODO + BUGS ChangeLog.zoo DEVEL-CVS FAQ HACKING MINOR-BUGS PROJECTS + README.VMS TESTS " ###################################################################### fscheck() { @@ -296,8 +299,13 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/cvs + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/diffutils/PlamoBuild.diffutils-3.2 2016-06-24 16:11:20.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/diffutils/diffutils-3.2.tar.xz" +pkgbase=diffutils +vers=3.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="TODO INSTALL COPYING ChangeLog-2008 README-release ChangeLog + ABOUT-NLS THANKS NEWS README AUTHORS" ###################################################################### fscheck() { @@ -233,6 +234,9 @@ esac done done + cd $B + cp -p lib/stdio.in.h{,.orig} + sed -i '/gets is a security hole/d' lib/stdio.in.h for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,6 +300,8 @@ 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/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/elfutils/PlamoBuild.elfutils-0.161 2016-06-24 16:42:29.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://fedorahosted.org/releases/e/l/elfutils/0.161/elfutils-0.161.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/devel.txz/elfutils/elfutils-portability-0.161.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/devel.txz/elfutils/CVE-2014-9447.patch.gz" +pkgbase=elfutils +vers=0.161 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="elfutils-portability-0.161.patch.gz CVE-2014-9447.patch.gz" +OPT_CONFIG="--program-prefix=eu-" +DOCS="COPYING THANKS NOTES AUTHORS ABOUT-NLS COPYING-GPLV2 NEWS + COPYING-LGPLV3 CONTRIBUTING INSTALL TODO README ChangeLog" ###################################################################### fscheck() { @@ -277,6 +280,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/elfutils for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +299,13 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + touch -t `date '+%m%d0900'` $P/usr/$libdir/elfutils 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/flex/PlamoBuild.flex-2.5.35 2016-06-24 17:27:59.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/flex/flex-2.5.35.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/flex/flex-2.5.35-gcc44-1.patch.gz" +pkgbase=flex +vers=2.5.35 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" +patchfiles="flex-2.5.35-gcc44-1.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS + README-alpha THANKS TODO ONEWS README.cvs" ###################################################################### fscheck() { @@ -272,6 +274,13 @@ make install DESTDIR=$P fi done + cat <<- "EOF" > $P/usr/bin/lex + #!/bin/sh + + exec flex -l "$@" + EOF + chmod 755 $P/usr/bin/lex + ln -s libfl.a $P/usr/$libdir/libl.a touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +305,13 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/g++/PlamoBuild.g++-4.8.5 2016-01-28 13:42:18.000000000 +0900 @@ -1,15 +1,20 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2 + https://patchwork.ozlabs.org/patch/342434/mbox" +pkgbase=g++ +vers=4.8.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=gcc-$vers +OPT_CONFIG="--disable-werror --disable-multilib --enable-install-libiberty + --enable-__cxa_atexit --enable-threads=posix --enable-shared + --enable-languages=c,c++,fortran,go --enable-gnu-unique-object + --enable-linker-build-id --enable-plugin --with-system-zlib + --with-linker-hash-style=gnu --enable-clocale=gnu --disable-libstdcxx-pch" +DOCS="COPYING ChangeLog ABOUT-NLS NEWS COPYING3.LIB ChangeLog.tree-ssa + COPYING3 COPYING.RUNTIME README COPYING.LIB MAINTAINERS" ###################################################################### fscheck() { @@ -48,9 +53,9 @@ strip_bindir() { echo "compressing in $1" if [ -d $1 ] ; then ( - shopt -s nullglob + shopt -s extglob nullglob cd $1 - for i in * ; do + for i in `echo !(*.so|*.so.*|*.a|*.o)` ; do echo "$i" if [ -h $i ] ; then continue ; fi if [ -n "`file $i | grep "not stripped"`" ] ; then @@ -185,36 +190,19 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=gcc-4.8-filename-output.patch for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi + if [ ${i##*/} == mbox ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then + wget $i fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +210,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np0 -i $W/gcc-4.8-filename-output.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +221,12 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` \ + --host=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -272,11 +254,32 @@ make install DESTDIR=$P fi done + mv $P/usr/bin/{,$arch-*-}{g,c}++ $C + rm -f $P/usr/bin/* + mv $C/{,$arch-*-}{g,c}++ $P/usr/bin + gcclibdir=$P/usr/$libdir/gcc/$arch-pc-linux-gnu + gcclibdir+=`[ $arch == armv7l ] && echo eabi`/$vers + mv $gcclibdir/cc1plus $C + rm -rf $gcclibdir/* + mv $C/cc1plus $gcclibdir + mv $P/usr/$libdir/libsupc++.{la,a} $C + mv $P/usr/$libdir/libstdc++.{so{.6{.0.19,},},{la,a}} $C + mv $P/usr/$libdir/libstdc++.so.6.0.19-gdb.py $C + mv $P/usr/$libdir/libasan_preinit.o $C + mv $P/usr/$libdir/lib{a,t}san.{so{.0{.0.0,},},{la,a}} $C + rm -rf $P/usr/$libdir/{lib*,go} + mv $C/libsupc++.{la,a} $P/usr/$libdir + mv $C/libstdc++.{so{.6{.0.19,},},{la,a}} $P/usr/$libdir + mv $C/libstdc++.so.6.0.19-gdb.py $P/usr/$libdir + mv $C/libasan_preinit.o $P/usr/$libdir + mv $C/lib{a,t}san.{so{.0{.0.0,},},{la,a}} $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $gcclibdir + touch -t `date '+%m%d0900'` $gcclibdir for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +298,19 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + install -d $P/usr/share/gdb/auto-load/usr/$libdir + mv $P/usr/$libdir/libstdc++.so.*-gdb.py \ + $P/usr/share/gdb/auto-load/usr/$libdir 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -type f` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/gdb/auto-load/usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/c++ + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "libstdc++.mo"` + tar rvpf $pkg.tar -C $P usr/share/gcc-$vers + tar rvpf $pkg.tar -C $P usr/share/man/man1/g++.1.gz 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/gcc/PlamoBuild.gcc-4.8.5 2016-01-28 13:21:21.000000000 +0900 @@ -1,15 +1,20 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2 + https://patchwork.ozlabs.org/patch/342434/mbox" +pkgbase=gcc +vers=4.8.5 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--disable-werror --disable-multilib --enable-install-libiberty + --enable-__cxa_atexit --enable-threads=posix --enable-shared + --enable-languages=c,c++,fortran,go --enable-gnu-unique-object + --enable-linker-build-id --enable-plugin --with-system-zlib + --with-linker-hash-style=gnu --enable-clocale=gnu --disable-libstdcxx-pch" +DOCS="COPYING ChangeLog ABOUT-NLS NEWS COPYING3.LIB ChangeLog.tree-ssa + COPYING3 COPYING.RUNTIME README COPYING.LIB MAINTAINERS" ###################################################################### fscheck() { @@ -48,9 +53,9 @@ strip_bindir() { echo "compressing in $1" if [ -d $1 ] ; then ( - shopt -s nullglob + shopt -s extglob nullglob cd $1 - for i in * ; do + for i in `echo !(*.so|*.so.*|*.a|*.o)` ; do echo "$i" if [ -h $i ] ; then continue ; fi if [ -n "`file $i | grep "not stripped"`" ] ; then @@ -185,36 +190,19 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=gcc-4.8-filename-output.patch for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi + if [ ${i##*/} == mbox ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then + wget $i fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +210,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np0 -i $W/gcc-4.8-filename-output.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +221,12 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` \ + --host=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -272,11 +254,46 @@ make install DESTDIR=$P fi done + ln -s gcc $P/usr/bin/cc + install -d $P/$libdir + ln -s /usr/bin/cpp $P/$libdir + mv $P/usr/$libdir/lib{iberty.a,gcc_s.so{.1,}} $C + mv $C/lib{iberty.a,gcc_s.so{.1,}} $P/usr/$libdir + rm -f $P/usr/bin/{*g++,*c++,*gfortran,*gccgo} + mv $P/usr/bin/{gcov,cpp,gcc,$arch-*-gcc-$vers,gcc-{ar,nm}} $C + mv $P/usr/bin/{$arch-*-gcc{,-ar,-nm},gcc-ranlib,$arch-*-gcc-ranlib,cc} $C + mv $C/{gcov,cpp,gcc,$arch-*-gcc-$vers,gcc-{ar,nm}} $P/usr/bin + mv $C/{$arch-*-gcc{,-ar,-nm},gcc-ranlib,$arch-*-gcc-ranlib,cc} $P/usr/bin + gcclibdir=$P/usr/$libdir/gcc/$arch-pc-linux-gnu + gcclibdir+=`[ $arch == armv7l ] && echo eabi`/$vers + rm -rf $gcclibdir/{finclude,cc1plus,f951,go1,lib{caf,gfortran}*} + mv $gcclibdir/{cc1,lto1,collect2,include*,lto-wrapper,plugin} $C + mv $gcclibdir/{lib{gcc{_eh,},gcov}.a,crt{begin,end,prec,fastmath}*} $C + mv $C/{cc1,lto1,collect2,include*,lto-wrapper,plugin} $gcclibdir + mv $C/{lib{gcc{_eh,},gcov}.a,crt{begin,end,prec,fastmath}*} $gcclibdir + rm -rf $P/usr/$libdir/{lib{{sup,std}c++,asan,tsan,gfortran,gobegin,go.}*,go} + mv $P/usr/$libdir/libmudflap{{,th}.{so{.0{.0.0,},},la},{,th}.a} $C + mv $P/usr/$libdir/libssp{.so{.0{.0.0,},},{,_*}.la,{,_*}.a} $C + mv $P/usr/$libdir/libquadmath.{so{.0{.0.0,},},{la,a}} $C + mv $P/usr/$libdir/libatomic.{so{.1{.0.0,},},{la,a}} $C + mv $P/usr/$libdir/lib{gomp,itm}.{spec,so{.1{.0.0,},},{la,a}} $C + mv $C/libmudflap{{,th}.{so{.0{.0.0,},},la},{,th}.a} $P/usr/$libdir + mv $C/libssp{.so{.0{.0.0,},},{,_*}.la,{,_*}.a} $P/usr/$libdir + mv $C/libquadmath.{so{.0{.0.0,},},{la,a}} $P/usr/$libdir + mv $C/libatomic.{so{.1{.0.0,},},{la,a}} $P/usr/$libdir + mv $C/lib{gomp,itm}.{spec,so{.1{.0.0,},},{la,a}} $P/usr/$libdir + chown -R root.root $gcclibdir/include{,-fixed} + touch $gcclibdir/include/*.h + find $gcclibdir/include-fixed -exec touch {} \; touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $gcclibdir/install-tools + strip_bindir $gcclibdir + strip_bindir $gcclibdir/plugin + strip_libdir $gcclibdir for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +312,19 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + touch -t `date '+%m%d0900'` $gcclibdir{/install-tools,,/plugin} 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` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/locale -name "*.mo" ! -name "libstdc++.*"` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info \ + ! -name "gfortran.*" ! -name "gccgo.*" | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 \ + ! -name "g++.*" ! -name "gfortran.*" ! -name "gccgo.*" | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/gdb/PlamoBuild.gdb-7.11 2016-07-02 02:43:15.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.xz" +pkgbase=gdb +vers=7.11 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-host-shared --enable-shared --with-system-readline" +DOCS="ChangeLog COPYING.LIB README MAINTAINERS COPYING COPYING3.LIB + COPYING3 README-maintainer-mode" ###################################################################### fscheck() { @@ -294,10 +295,18 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/gdb + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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/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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/gettext/PlamoBuild.gettext-0.19.7 2016-08-24 20:36:49.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gettext/gettext-0.19.7.tar.gz" +pkgbase=gettext +vers=0.19.7 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog.0 DEPENDENCIES ChangeLog HACKING README INSTALL + AUTHORS README.woe32 THANKS COPYING PACKAGING NEWS" ###################################################################### fscheck() { @@ -233,6 +234,11 @@ esac done done + cd $B + cp -p gettext-tools/src/Makefile.in{,.orig} + sed -i 's@$(GCJ)@LANG=C &@g' gettext-tools/src/Makefile.in + export EMACS=`( which emacs || which emacs_mini ) 2> /dev/null \ + | sed 's@.*/@@'` for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -294,10 +300,28 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/{libasprintf,gettext} $docdir/$src + mv $docdir/$src/{libasprintf,{ChangeLog.0,DEPENDENCIES,ChangeLog}.gz} $C + mv $docdir/$src/{HACKING,README,INSTALL,AUTHORS,README.woe32}.gz $C + mv $docdir/$src/{{THANKS,COPYING,PACKAGING,NEWS}.gz,gettext,$myname.gz} $C + mv $C/{libasprintf,{ChangeLog.0,DEPENDENCIES,ChangeLog}.gz} $docdir/$src + mv $C/{HACKING,README,INSTALL,AUTHORS,README.woe32}.gz $docdir/$src + mv $C/{{THANKS,COPYING,PACKAGING,NEWS}.gz,gettext,$myname.gz} $docdir/$src + touch -r $S $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/$libdir -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/gettext + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/emacs/site-lisp | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/$src + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/gmp/PlamoBuild.gmp-6.0.0a 2016-07-05 00:38:48.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://gmplib.org/download/gmp/gmp-6.0.0a.tar.xz" +pkgbase=gmp +vers=6.0.0a arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=$pkgbase-6.0.0 patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-cxx" +DOCS="INSTALL COPYINGv3 INSTALL.autoconf AUTHORS README COPYING NEWS + COPYINGv2 ChangeLog COPYING.LESSERv3" ###################################################################### fscheck() { @@ -244,7 +245,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -295,9 +297,11 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/indent/PlamoBuild.indent-2.2.10 2016-07-04 10:47:38.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.gnu.org/gnu/indent/indent-2.2.10.tar.gz" +pkgbase=indent +vers=2.2.10 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog ChangeLog-1990 NEWS AUTHORS ChangeLog-1998 ABOUT-NLS + COPYING ChangeLog-2001 INSTALL README" ###################################################################### fscheck() { @@ -294,8 +295,14 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $P/usr/doc/indent/indent.html $docdir/$src + mv $docdir/$src/{indent.html,{README,$myname}.gz} $C + mv $C/{indent.html,{README,$myname}.gz} $docdir/$src + touch -r $S $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/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/intltool/PlamoBuild.intltool-0.50.2 2016-07-04 07:52:12.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://launchpad.net/intltool/trunk/0.50.2/+download/intltool-0.50.2.tar.gz" +pkgbase=intltool +vers=0.50.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS README ChangeLog COPYING NEWS TODO" ###################################################################### fscheck() { @@ -296,7 +296,9 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/intltool + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/kernel_headers/PlamoBuild.kernel_headers-4.1.15_plamoRPi2 2016-02-19 08:30:28.000000000 +0900 @@ -1,15 +1,22 @@ -#!/bin/sh +#!/bin/sh -x ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +url="https://github.com/raspberry/linux.git + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/UNICON/vd_unicon-kernel-20150627-4.1.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/UNICON/vd_unicon-kernel-fonts-20140614.patch.bz2 + https://github.com/sfjro/aufs4-standalone.git + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/mcp/4.1-panic_beep.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/mcp/4.1-morse_code_panics.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/toi/tuxonice-for-linux-4.1.6-2015-08-22.patch.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/ovlfs/overlayfs-allow_unprivileged_mounts.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/config-4.1.15-plamoRPi2" +pkgbase=kernel_headers +vers=4.1.15_plamoRPi2 +arch=arm +build=P3 +src=linux OPT_CONFIG="" -DOCS="README" +DOCS="" ###################################################################### fscheck() { @@ -186,35 +193,22 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; fi ;; + *) if [ ! -f ${i##*/} ] ; then wget $i ; fi ;; + esac done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + case `basename ${i##*/} .git` in + linux) git checkout origin/rpi-4.1.y ; git reset --hard d51c7d8 ;; + aufs4-*) git checkout origin/aufs4.1 ; git reset --hard 2b569cf ;; + esac ) ;; esac done fi @@ -222,17 +216,22 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + rm -rf .git ; touch .git + patch -Np1 -i $W/vd_unicon-kernel-20150627-4.1.patch + bunzip2 -c $W/vd_unicon-kernel-fonts-20140614.patch.bz2 | patch -Np1 -i - + patch -Np1 -i $W/aufs4-standalone/aufs4-kbuild.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-base.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-mmap.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-standalone.patch + cp -av $W/aufs4-standalone/Documentation . + cp -av $W/aufs4-standalone/fs . + cp -pv $W/aufs4-standalone/include/uapi/linux/aufs_type.h include/uapi/linux + patch -Np1 -i $W/4.1-panic_beep.patch + patch -Np1 -i $W/4.1-morse_code_panics.patch + bunzip2 -c $W/tuxonice-for-linux-4.1.6-2015-08-22.patch.bz2 | patch -Np1 -i - + patch -Np1 -i $W/overlayfs-allow_unprivileged_mounts.patch + cp -p $W/config-4.1.15-plamoRPi2 .config for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +241,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -251,7 +250,7 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make fi done @@ -269,9 +268,11 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make headers_install INSTALL_HDR_PATH=$P/usr fi done + find $P/usr/include \( -name ".install" -o -name "..install.cmd" \) \ + -exec rm {} \; touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -285,6 +286,7 @@ gzip_one $docdir/${src[$i]}/${k#${S[$i]}/} done done + install -d $docdir/$src if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname @@ -294,9 +296,9 @@ 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/libc/PlamoBuild.libc-2.20 2016-06-07 07:55:19.000000000 +0900 @@ -1,15 +1,24 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/glibc/glibc-2.20.tar.xz + http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.19-fhs-1.patch + http://ftp.su.se/pub/mirrors/lunar-linux.org/lunar/patches/glibc-2.20-do_ftell_wide-memleak.patch + http://ftp.su.se/pub/mirrors/lunar-linux.org/lunar/patches/glibc-2.20-getifaddrs_internal-segfault.patch + http://ftp.su.se/pub/mirrors/lunar-linux.org/lunar/patches/glibc-2.20-linux-3.16-additions.patch + http://slackware.cs.utah.edu/pub/slackware/slackware-current/source/l/glibc/glibc-c-utf8-locale.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-7547.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-8776.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-8778.patch + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/glibc/CVE-2015-8779.patch" +pkgbase=libc +vers=2.20 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P4 +src=glibc-$vers +OPT_CONFIG="--enable-kernel=2.6.32 --enable-obsolete-rpc" +DOCS="BUGS CONFORMANCE COPYING* ChangeLog* INSTALL LICENSES NEWS + PROJECTS README" ###################################################################### fscheck() { @@ -163,6 +172,7 @@ W=`pwd` for i in `seq 0 $((${#src[@]} - 1))` ; do S[$i]=$W/${src[$i]} ; B[$i]=$W/build`test ${#src[@]} -eq 1 || echo $i` + S2[$i]=$W/source`test ${#src[@]} -eq 1 || echo $i` done P=$W/work ; C=$W/pivot infodir=$P/usr/share/info @@ -220,31 +230,54 @@ fi if [ $opt_config -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done + if [ -d ${S2[$i]} ] ; then rm -rf ${S2[$i]} ; fi ; cp -a ${S[$i]} ${S2[$i]} + if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; mkdir ${B[$i]} done + cd $S2 + patch -Np1 -i $W/glibc-2.19-fhs-1.patch + patch -Np1 -i $W/glibc-2.20-do_ftell_wide-memleak.patch + patch -Np1 -i $W/glibc-2.20-getifaddrs_internal-segfault.patch + patch -Np1 -i $W/glibc-2.20-linux-3.16-additions.patch + gunzip -c $W/glibc-c-utf8-locale.patch.gz | patch -Np1 -i - + patch -Np1 -i $W/CVE-2015-7547.patch + patch -Np1 -i $W/CVE-2015-8776.patch + patch -Np1 -i $W/CVE-2015-8778.patch + patch -Np1 -i $W/CVE-2015-8779.patch + cp -p localedata/Makefile{,.orig} + cat <<- "EOF" | patch localedata/Makefile + 235a236 + > --no-archive \ + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${S2[$i]} if [ -f Makefile ] ; then make clean fi if [ -f config.log ] ; then rm -rf config.cache config.log fi - if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + cd ${B[$i]} + case $arch in + i686) + cat <<- "EOF" > configparms ;; + CFLAGS += -march=i486 -mtune=native -O3 -pipe + EOF + x86_64) + cat <<- "EOF" > configparms ;; + slibdir=/lib64 + CFLAGS += -march=x86-64 -mtune=generic -O3 -pipe + EOF + armv7l) + cat <<- "EOF" > configparms ;; + CFLAGS += -march=armv7-a -mtune=native -O3 -pipe + EOF + esac + if [ -x ${S2[$i]}/configure ] ; then + ${S2[$i]}/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir/glibc \ + --build=$arch-pc-linux --target=$arch-pc-linux fi done fi @@ -295,9 +328,11 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 ! -type d` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/libtool/PlamoBuild.libtool-2.4.6 2016-07-05 00:24:29.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz" +pkgbase=libtool +vers=2.4.6 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO" ###################################################################### fscheck() { @@ -244,7 +244,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -296,8 +297,14 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/libtool + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/m4/PlamoBuild.m4-1.4.16 2016-07-05 00:21:32.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.xz" +pkgbase=m4 +vers=1.4.16 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="THANKS NEWS ChangeLog COPYING BACKLOG README AUTHORS TODO INSTALL" ###################################################################### fscheck() { @@ -233,6 +233,9 @@ esac done done + cd $B + cp -p lib/stdio.in.h{,.orig} + sed -i '/gets is a security hole/d' lib/stdio.in.h for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,6 +299,7 @@ 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/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/make/PlamoBuild.make-4.1 2016-07-04 23:39:43.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/make/make-4.1.tar.bz2" +pkgbase=make +vers=4.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING README README.W32 ABOUT-NLS INSTALL NEWS README.customs + README.Amiga README.DOS README.VMS AUTHORS README.OS2" ###################################################################### fscheck() { @@ -296,6 +297,9 @@ 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/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/mpc/PlamoBuild.mpc-1.0.2 2016-07-05 00:18:43.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/mpc/mpc-1.0.2.tar.gz" +pkgbase=mpc +vers=1.0.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING.LESSER NEWS ChangeLog README TODO INSTALL" ###################################################################### fscheck() { @@ -295,9 +295,11 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/mpfr/PlamoBuild.mpfr-3.1.2 2016-07-05 01:06:51.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.2.tar.xz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/devel.txz/mpfr/mpfr-3.1.2-upstream_fixes-1.patch.gz" +pkgbase=mpfr +vers=3.1.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="mpfr-3.1.2-upstream_fixes-1.patch.gz" +OPT_CONFIG="--enable-thread-safe" +DOCS="INSTALL BUGS AUTHORS TODO ChangeLog COPYING.LESSER COPYING + README NEWS" ###################################################################### fscheck() { @@ -294,10 +296,20 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/mpfr/{FAQ.html,examples} $docdir/$src + mv $docdir/$src/{FAQ.html,{INSTALL,BUGS,AUTHORS,TODO,ChangeLog}.gz} $C + mv $docdir/$src/{COPYING.LESSER.gz,examples,{COPYING,README,NEWS}.gz} $C + mv $docdir/$src/$myname.gz $C + mv $C/{FAQ.html,{INSTALL,BUGS,AUTHORS,TODO,ChangeLog}.gz} $docdir/$src + mv $C/{COPYING.LESSER.gz,examples,{COPYING,README,NEWS}.gz} $docdir/$src + mv $C/$myname.gz $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/onig/PlamoBuild.onig-5.9.3 2016-07-07 08:36:37.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.openpkg.org/components/cache/onig/onig-5.9.3.tar.gz" +pkgbase=onig +vers=5.9.3 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL `echo doc/{RE,API,FAQ,{RE,API,FAQ}.ja}` README.ja + README index.html index_ja.html COPYING HISTORY AUTHORS" ###################################################################### fscheck() { @@ -296,8 +297,10 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/patch/PlamoBuild.patch-2.7.3 2016-07-07 08:42:07.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/patch/patch-2.7.3.tar.gz" +pkgbase=patch +vers=2.7.3 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README INSTALL COPYING ChangeLog NEWS ChangeLog-2011 AUTHORS" ###################################################################### fscheck() { --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/pkg_config/PlamoBuild.pkg_config-0.28 2016-07-07 09:25:55.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" +pkgbase=pkg_config +vers=0.28 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=pkg-config-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--disable-host-tool --with-internal-glib" +DOCS="README.win32 NEWS INSTALL COPYING README AUTHORS ChangeLog" ###################################################################### fscheck() { @@ -187,7 +187,7 @@ if [ $opt_download -eq 1 ] ; then for i in $url ; do if [ ! -f ${i##*/} ] ; then - wget $i ; j=${i%.*} + wget --no-check-certificate $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 if wget --spider $j.$sig ; then @@ -294,8 +294,15 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/pkg-config/pkg-config-guide.html $docdir/$src + mv $docdir/$src/{pkg-config-guide.html,{NEWS,INSTALL,COPYING}.gz} $C + mv $docdir/$src/{README,AUTHORS,ChangeLog,$myname}.gz $C + mv $C/{pkg-config-guide.html,{NEWS,INSTALL,COPYING}.gz} $docdir/$src + mv $C/{README,AUTHORS,ChangeLog,$myname}.gz $docdir/$src + touch -r $S $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/aclocal | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/ppl/PlamoBuild.ppl-0.12 2016-07-08 08:07:35.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.cs.unipr.it/pub/ppl/releases/0.12/ppl-0.12.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/devel.txz/ppl/0001-GMP-version-5.1.0-and-presumably-later-versions-defi.patch" +pkgbase=ppl +vers=0.12 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" +patchfiles="0001-GMP-version-5.1.0-and-presumably-later-versions-defi.patch" OPT_CONFIG="" -DOCS="README" +DOCS="README.configure README.arm README NEWS README.solaris BUGS + STANDARDS CREDITS COPYING ChangeLog README.alpha TODO INSTALL + ChangeLog_2001-2008" ###################################################################### fscheck() { @@ -294,10 +297,25 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/ppl $docdir/$src/doc + rm $docdir/$src/doc/{BUGS,COPYING,CREDITS,ChangeLog,NEWS,README*,TODO} + touch -t `date '+%m%d0900'` $docdir/$src/doc + mv $docdir/$src/{doc,{NEWS,README.solaris,BUGS,STANDARDS,CREDITS}.gz} $C + mv $docdir/$src/{COPYING,ChangeLog,README.alpha,TODO,INSTALL}.gz $C + mv $docdir/$src/{ChangeLog_2001-2008,$myname}.gz $C + mv $C/{doc,{NEWS,README.solaris,BUGS,STANDARDS,CREDITS}.gz} $docdir/$src + mv $C/{COPYING,ChangeLog,README.alpha,TODO,INSTALL}.gz $docdir/$src + mv $C/{ChangeLog_2001-2008,$myname}.gz $docdir/$src + touch -r $S $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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/pth/PlamoBuild.pth-2.0.7 2016-07-07 13:05:29.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz" +pkgbase=pth +vers=2.0.7 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ANNOUNCE AUTHORS COPYING ChangeLog HACKING HISTORY INSTALL NEWS + PORTING README SUPPORT TESTS THANKS USERS" ###################################################################### fscheck() { @@ -294,10 +295,16 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/slang/PlamoBuild.slang-2.2.4 2016-07-07 14:22:25.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://space.mit.edu/pub/davis/slang/v2.2/slang-2.2.4.tar.bz2" +pkgbase=slang +vers=2.2.4 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL.pc NEWS COPYING changes.txt INSTALL.unx README + UPGRADE.txt INSTALL.vms" ###################################################################### fscheck() { @@ -277,6 +278,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/slang/v2/modules + touch -t `date '+%m%d0900'` $P/usr/$libdir/slang/v2/modules for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +297,24 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/slsh $docdir/$src + mv $docdir/slang $docdir/$src/doc + rm $docdir/$src/doc/v2/COPYING + touch -t `date '+%m%d0900'` $docdir/$src/doc/v2 + mv $docdir/$src/{slsh,doc,{README,UPGRADE.txt,INSTALL.vms,$myname}.gz} $C + mv $C/{slsh,doc,{README,UPGRADE.txt,INSTALL.vms,$myname}.gz} $docdir/$src + touch -r $S $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/$libdir -name "libslang.*"` + tar rvpf $pkg.tar -C $P usr/$libdir/slang + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/slsh + tar rvpf $pkg.tar -C $P etc/slsh.rc tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/strace/PlamoBuild.strace-4.6 2016-07-07 16:12:39.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/strace/strace-4.6.tar.xz" +pkgbase=strace +vers=4.6 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README-svr4 README-sunos4 README-linux README-freebsd PORTING + CREDITS COPYRIGHT ChangeLog-CVS ChangeLog TODO NEWS INSTALL + AUTHORS README" ###################################################################### fscheck() { --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/yasm/PlamoBuild.yasm-1.3.0 2016-07-07 16:25:19.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz" +pkgbase=yasm +vers=1.3.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL NEWS GNU_LGPL-2.0 ChangeLog AUTHORS README COPYING + GNU_GPL-2.0 BSD.txt Artistic.txt ABOUT-NLS" ###################################################################### fscheck() { @@ -296,7 +297,10 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` 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/man7 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/emacs_bin/PlamoBuild.emacs_bin-24.5 2016-07-09 23:34:00.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz" +pkgbase=emacs_bin +vers=24.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P3 +src=emacs-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--without-all --without-x" +DOCS="README INSTALL COPYING BUGS ChangeLog" ###################################################################### fscheck() { @@ -272,11 +272,14 @@ make install DESTDIR=$P fi done + rm $P/usr/bin/emacs{-$vers,} touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/emacs/$vers/* + touch -t `date '+%m%d0900'` $P/usr/libexec/emacs/$vers/* for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,7 +299,7 @@ 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` + tar rvpf $pkg.tar -C $P usr/libexec/emacs 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/emacs_lib/PlamoBuild.emacs_lib-24.5 2016-07-09 23:28:25.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers +url="http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz + http://homepage1.nifty.com/blankspace/emacs/wb-line-number.el" +pkgbase=emacs_lib +vers=24.5 +arch=noarch +build=P3 +src=emacs-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--without-all --without-x" +DOCS="README INSTALL COPYING BUGS ChangeLog" ###################################################################### fscheck() { @@ -233,6 +234,17 @@ esac done done + cd $B + cp -p lisp/eshell/esh-util.el{,.orig} + sed -i 's@|z2\\\\@&|xz\\\\@g' lisp/eshell/esh-util.el + cp -p lisp/ibuffer.el{,.orig} + sed -i 's@|z\\\\@&|txz\\\\@g' lisp/ibuffer.el + cp -p lisp/ldefs-boot.el{,.orig} + cp -p lisp/loaddefs.el{,.orig} + sed -i 's@"\.tgz"@& ".txz"@g' lisp/{ldefs-boot,loaddefs}.el + cp -p lisp//pcmpl-gnu.el{,.orig} + sed -i -e '/let/s@|bz2\\\\@&|txz\\\\@g' \ + -e '/let/!s@|z2\\\\@&|xz\\\\@g' lisp/pcmpl-gnu.el for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +284,9 @@ make install DESTDIR=$P fi done + find $P/usr/share/emacs/$vers/lisp -mtime -1 -exec touch {} \; + chgrp -R root $P/usr/share/emacs/$vers/{etc,lisp} + install -m 644 $W/wb-line-number.el $P/usr/share/emacs/site-lisp touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,8 +310,8 @@ ( 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` + tar cvpf $pkg.tar -C $P usr/share/emacs + tar rvpf $pkg.tar -C $P var/games/emacs 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/emacs_mini/PlamoBuild.emacs_mini-24.5 2016-07-09 23:47:56.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz" +pkgbase=emacs_mini +vers=24.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P3 +src=emacs-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--without-all --without-x" +DOCS="README INSTALL COPYING BUGS ChangeLog" ###################################################################### fscheck() { @@ -272,6 +272,9 @@ make install DESTDIR=$P fi done + rm $P/usr/bin/{{e,c}tags,emacsclient,ebrowse,grep-changelog,emacs} + mv $P/usr/bin/emacs{,_mini}-$vers + ln -s emacs_mini-$vers $P/usr/bin/emacs_mini touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +299,10 @@ 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/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/fortune_mod/PlamoBuild.fortune_mod-1.99.1 2016-07-12 13:05:52.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.jabawok.net/gentoo/distfiles/fortune-mod-1.99.1.tar.gz + http://kambing.ui.ac.id/gentoo-portage/games-misc/fortune-mod/files/01_all_fortune_all-fix.patch" +pkgbase=fortune_mod +vers=1.99.1 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P3 +src=fortune-mod-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog INDEX INSTALL Notes Offensive README TODO cookie-files" ###################################################################### fscheck() { @@ -233,6 +234,23 @@ esac done done + cd $B + patch -Np0 -i $W/01_all_fortune_all-fix.patch + cp -p Makefile Makefile.orig + sed -i -e '/^FORTDIR=/s@games@bin@g' -e '/^COOKIEDIR=/s@/games@@g' \ + -e '/^LOCALDIR=/s@/games@@g' -e '/^BINDIR=/s@bin@sbin@g' \ + -e '/^FORTMANDIR=/s@man6@man1@g' -e '/^FORTMANEXT=/s@6@1@g' \ + -e '/^REGEXDEFS=/s@BSD@POSIX@g' -e 's@$(FORTDIR)@$(DESTDIR)&@g' \ + -e 's@$(BINDIR)@$(DESTDIR)&@g' -e 's@$(FORTMANDIR)@$(DESTDIR)&@g' \ + -e 's@$(BINMANDIR)@$(DESTDIR)&@g' Makefile + cat <<- "EOF" | patch Makefile + 180,181c180,181 + < cd datfiles && $(MAKE) COOKIEDIR=$(COOKIEDIR) \ + < OCOOKIEDIR=$(OCOOKIEDIR) WCOOKIEDIR=$(WCOOKIEDIR) \ + --- + > cd datfiles && $(MAKE) COOKIEDIR=$(DESTDIR)$(COOKIEDIR) \ + > OCOOKIEDIR=$(DESTDIR)$(OCOOKIEDIR) WCOOKIEDIR=$(DESTDIR)$(WCOOKIEDIR) \ + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -255,6 +273,7 @@ make fi done + make fortune/fortune.man fi if [ $opt_package -eq 1 ] ; then if [ `id -u` -ne 0 ] ; then @@ -295,9 +314,14 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + prune_symlink $P/usr/share/fortunes + touch -t `date '+%m%d0900'` $P/usr/share/fortunes{,/off} tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/fortunes tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gc/PlamoBuild.gc-7.1 2016-07-12 13:18:56.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.hboehm.info/gc/gc_source/gc-7.1.tar.gz" +pkgbase=gc +vers=7.1 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog README.QUICK" ###################################################################### fscheck() { @@ -295,9 +295,12 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/gc 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gdbm/PlamoBuild.gdbm-1.10 2016-09-03 23:08:19.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gdbm/gdbm-1.10.tar.gz" +pkgbase=gdbm +vers=1.10 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-libgdbm-compat" +DOCS="NEWS README THANKS AUTHORS INSTALL ABOUT-NLS ChangeLog COPYING + NOTE-WARNING" ###################################################################### fscheck() { @@ -296,8 +297,13 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/get_pkginfo/PlamoBuild.get_pkginfo-git_20160222 2016-07-19 07:46:16.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` +url="https://github.com/plamolinux/get_pkginfo.git + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/get_pkginfo/gitlog2changelog.py" +pkgbase=get_pkginfo +vers=git_20160222 +arch=noarch build=P1 -src=$pkgbase-$vers +src=$pkgbase patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog" ###################################################################### fscheck() { @@ -186,35 +187,47 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; else + ( cd `basename ${i##*/} .git` ; git pull origin master ) ; fi ;; + *) + if [ ! -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 + if wget --spider $j.$sig ; then + case ${i##*.} in + gz) gunzip -c ${i##*/} > ${j##*/} ;; + bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; + xz) unxz -c ${i##*/} > ${j##*/} ;; + esac + touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break + fi + done + if [ -f ${i##*/}.$sig ] ; then + case $sig in + asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; + sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; + *) $sig -c ${i##*/}.$sig ;; esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break + if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi fi - fi + ;; + esac done + if [ ! -x gitlog2changelog.py ] ; then + chmod 755 gitlog2changelog.py + fi for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; gz|tgz) tar xvpzf ${i##*/} ;; bz2|tbz) tar xvpjf ${i##*/} ;; xz|txz) tar xvpJf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + git checkout origin/master ; git reset --hard facec2d + git set-file-times ; TZ=UTC ../gitlog2changelog.py) ;; esac done fi @@ -255,6 +268,9 @@ make fi done + nkf -w --overwrite README.md + pandoc -f markdown_github -t plain -o README README.md + nkf -e --overwrite README fi if [ $opt_package -eq 1 ] ; then if [ `id -u` -ne 0 ] ; then @@ -272,6 +288,10 @@ make install DESTDIR=$P fi done + install -d $P/usr/bin + install get_pkginfo.py $P/usr/bin/get_pkginfo + install -d $docdir/$src~ + install -m 644 README $docdir/$src~ touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,9 +314,13 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/$src~/README $docdir/$src + gzip_one $docdir/$src/README + mv $docdir/$src/{README,$myname}.gz $C + mv $C/{README,$myname}.gz $docdir/$src + 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` 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/gnupg/PlamoBuild.gnupg-2.0.30 2016-09-04 23:16:19.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-2.0.30.tar.bz2" +pkgbase=gnupg +vers=2.0.30 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-gpgtar" +DOCS="ABOUT-NLS README ChangeLog-2011 COPYING ChangeLog TODO NEWS + README.GIT COPYING.LIB THANKS AUTHORS INSTALL" ###################################################################### fscheck() { @@ -272,11 +273,13 @@ make install DESTDIR=$P fi done + ln -s gpg2 $P/usr/bin/gpg touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +297,23 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/gnupg $docdir/$src/doc + rm $docdir/$src/doc/README + touch -t `date '+%m%d0900'` $docdir/$src/doc + mv $docdir/$src/{doc,{THANKS,AUTHORS,INSTALL,$myname}.gz} $C + mv $C/{doc,{THANKS,AUTHORS,INSTALL,$myname}.gz} $docdir/$src + touch -r $S $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/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/gnupg + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/gnutls/PlamoBuild.gnutls-2.12.23 2016-07-19 22:27:14.000000000 +0900 @@ -1,15 +1,23 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://mirrors.dotsrc.org/gnupg/gnutls/v2.12/gnutls-2.12.23.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/gnutls/cve-2014-1959.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/gnutls/cve-2014-0092.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/gnutls/cve-2014-3466.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/gnutls/CVE-2015-0294.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/gnutls/CVE-2015-0282.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/gnutls/Fix-build-with-perl-5.18.patch" +pkgbase=gnutls +vers=2.12.23 arch=`uname -m` -build=P1 +build=P6 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="`echo cve-2014-{1959,0092,3466}.patch.gz` + `echo CVE-2015-{0294,0282}.patch.gz`" +OPT_CONFIG="--with-libgcrypt --without-p11-kit" +DOCS="THANKS ChangeLog COPYING INSTALL AUTHORS TODO ABOUT-NLS NEWS + README" ###################################################################### fscheck() { @@ -233,6 +241,7 @@ esac done done + patch -Np0 -i $W/Fix-build-with-perl-5.18.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,8 +305,15 @@ 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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/gnutls + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/gpgme/PlamoBuild.gpgme-1.4.3 2016-07-15 10:48:32.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.4.3.tar.bz2" +pkgbase=gpgme +vers=1.4.3 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--disable-fd-passing --with-gpg=/usr/bin/gpg2" +DOCS="COPYING.LESSER NEWS README ChangeLog-2011 ChangeLog INSTALL + TODO AUTHORS THANKS COPYING" ###################################################################### fscheck() { @@ -296,8 +297,13 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/common-lisp/source/gpgme 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/libassuan/PlamoBuild.libassuan-2.0.3 2016-07-15 10:10:54.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-2.0.3.tar.bz2" +pkgbase=libassuan +vers=2.0.3 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS README COPYING.LIB ChangeLog-2011 ChangeLog INSTALL TODO + AUTHORS THANKS COPYING README.GIT" ###################################################################### fscheck() { @@ -296,8 +297,12 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/libgcrypt/PlamoBuild.libgcrypt-1.5.6 2016-09-06 14:56:54.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.5.6.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/libgcrypt/CVE-2015-0837-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/libgcrypt/CVE-2015-0837-2.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls.txz/libgcrypt/CVE-2015-0837-3.patch.gz" +pkgbase=libgcrypt +vers=1.5.6 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="`echo CVE-2015-0837-{1,2,3}.patch.gz`" +OPT_CONFIG="--with-capabilities" +DOCS="README ChangeLog-2011 COPYING ChangeLog TODO NEWS README.GIT + COPYING.LIB THANKS AUTHORS INSTALL" ###################################################################### fscheck() { @@ -296,8 +300,12 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/libgpg_error/PlamoBuild.libgpg_error-1.17 2016-07-15 10:43:56.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.17.tar.bz2" +pkgbase=libgpg_error +vers=1.17 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=libgpg-error-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS INSTALL ABOUT-NLS COPYING COPYING.LIB AUTHORS ChangeLog + THANKS README ChangeLog-2011" ###################################################################### fscheck() { @@ -296,8 +297,15 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P usr/share/common-lisp/source/gpg-error tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/libksba/PlamoBuild.libksba-1.3.2 2016-07-15 11:06:45.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.gnupg.org/ftp/gcrypt/libksba/libksba-1.3.2.tar.bz2" +pkgbase=libksba +vers=1.3.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS COPYING.GPLv2 INSTALL COPYING COPYING.GPLv3 COPYING.LGPLv3 + AUTHORS ChangeLog THANKS README ChangeLog-2011 TODO" ###################################################################### fscheck() { @@ -296,8 +297,12 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/libtasn1/PlamoBuild.libtasn1-2.14 2016-07-15 11:31:04.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/libtasn1/libtasn1-2.14.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls/libtasn1/CVE-2014-3467.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls/libtasn1/CVE-2014-3468.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls/libtasn1/CVE-2014-3469.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/gnupg_tls/libtasn1/CVE-2015-2806.patch.gz" +pkgbase=libtasn1 +vers=2.14 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" +patchfiles="`echo CVE-2014-346{7,8,9}.patch.gz` CVE-2015-2806.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog COPYING.LIB INSTALL THANKS README COPYING AUTHORS NEWS" ###################################################################### fscheck() { @@ -296,8 +300,14 @@ 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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gnupg_tls.txz/pinentry/PlamoBuild.pinentry-0.9.0 2016-07-16 10:17:20.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-0.9.0.tar.bz2" +pkgbase=pinentry +vers=0.9.0 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS INSTALL ChangeLog-old COPYING AUTHORS ChangeLog THANKS + README.GIT README TODO" ###################################################################### fscheck() { @@ -233,6 +234,17 @@ esac done done + cd $B + cp -p configure{,.orig} + cat <<- "EOF" | patch configure + 8365a8366 + > PINENTRY_DEFAULT=pinentry-curses + EOF + cp -p qt4/pinentrydialog.moc{,.orig} + cp -p qt4/qsecurelineedit.moc{,.orig} + cp -p qt4/pinentryconfirm.moc{,.orig} + sed -i '/^#include/s@".*/\(.*\)"@"\1"@' \ + qt4/{pinentrydialog,qsecurelineedit,pinentryconfirm}.moc for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,8 +308,9 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/gpm/PlamoBuild.gpm-1.20.7 2016-07-16 23:52:57.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.nico.schottelius.org/software/gpm/archives/gpm-1.20.7.tar.bz2" +pkgbase=gpm +vers=1.20.7 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING MANIFEST README* TODO + doc/Announce doc/FAQ doc/HACK_GPM doc/README.* doc/changelog + doc/specs/synaptics/www.synaptics.com/decaf/utilities/* + doc/support/* doc/todo/*" ###################################################################### fscheck() { @@ -233,6 +236,7 @@ esac done done + ./autogen.sh for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +276,74 @@ make install DESTDIR=$P fi done + install -m 644 conf/* $P/etc + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/gpm + #!/bin/sh + # Time-stamp: <2008-09-02 11:31:18 kojima> + + # This file is derived from avahi. + # Start/stop/restart daemon in init.d/XXXX + + DESC="gpm (General Purpose Mouse)" + NAME="gpm" + DAEMON1="/usr/sbin/gpm -m /dev/input/mice -t imps2" + DAEMON2="/usr/bin/gpm-root" + + status() { + if [ -n "`ps axww | gawk '{print $5}' | grep $NAME`" ] ; then + return 0 + else + return 1 + fi + } + + start() { + echo "Starting $DESC:" + $DAEMON1 & + $DAEMON2 & + } + + stop() { + echo "Stopping $DESC:" + killall gpm + killall gpm-root + } + + case "$1" in + start) + if status ; then + echo "$DESC is already running (will not start it twice)." + else + start + fi + ;; + stop) + if status ; then + stop + else + echo "$DESC seems already stopped." + fi + ;; + restart) + stop + start + ;; + status) + if status ; then + echo "$DESC is currently running." + else + echo "$DESC is not running." + fi + ;; + *) + echo "Usage: $0 {start|stop|status|restart}" + exit 1 + ;; + esac + exit 0 + EOF + chmod 755 $P/etc/rc.d/init.d/gpm touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +367,18 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/emacs/site-lisp | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc -type f` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/hddtemp/PlamoBuild.hddtemp-0.3_beta15 2016-07-17 00:47:06.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.savannah.gnu.org/releases/hddtemp/hddtemp-0.3-beta15.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/hddtemp/hddtemp-0.3-beta15-reg-eip.patch.gz + http://download.savannah.gnu.org/releases/hddtemp/hddtemp.db" +pkgbase=hddtemp +vers=0.3_beta15 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P4 +src=$pkgbase-0.3-beta15 +patchfiles="hddtemp-0.3-beta15-reg-eip.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="README COPYING ABOUT-NLS AUTHORS TODO INSTALL ChangeLog LICENSE + GPL-2 NEWS" ###################################################################### fscheck() { @@ -277,6 +280,9 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + install -d $P/usr/share/misc + cp -p $W/hddtemp.db $P/usr/share/misc + chown root.root $P/usr/share/misc/hddtemp.db for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +301,10 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/misc | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/hdparm/PlamoBuild.hdparm-9.38 2016-07-17 01:28:48.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/hdparm/hdparm-9.38.tar.gz" +pkgbase=hdparm +vers=9.38 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="TODO README.acoustic LICENSE.TXT Changelog" ###################################################################### fscheck() { @@ -295,8 +295,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/keyutils/PlamoBuild.keyutils-1.5.1 2016-08-01 17:17:50.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://people.redhat.com/dhowells/keyutils/keyutils-1.5.1.tar.bz2" +pkgbase=keyutils +vers=1.5.1 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="LICENCE.GPL LICENCE.LGPL README" ###################################################################### fscheck() { @@ -233,6 +233,10 @@ esac done done + if [ $arch != i686 -a $arch != x86_64 ] ; then + cp -p Makefile{,.orig} + sed -i '/m\(32\|64\)/s@^@#@' Makefile + fi for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -295,9 +299,19 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/keyutils + tar rvpf $pkg.tar -C $P etc/request-key.conf 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/libelf/PlamoBuild.libelf-0.8.13 2016-07-18 20:01:49.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.mr511.de/software/libelf-0.8.13.tar.gz" +pkgbase=libelf +vers=0.8.13 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="MANIFEST INSTALL README ChangeLog COPYING.LIB" ###################################################################### fscheck() { @@ -269,7 +269,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install instroot=$P fi done touch $W/i.et @@ -295,9 +295,12 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/libelf + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/libieee1284/PlamoBuild.libieee1284-0.2.11 2016-07-17 04:42:50.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/libieee1284/libieee1284-0.2.11.tar.bz2" +pkgbase=libieee1284 +vers=0.2.11 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README AUTHORS COPYING ChangeLog INSTALL NEWS TODO + README.FreeBSD README.OpenBSD README.Solaris README.win95 + README.winNT README.VC6" ###################################################################### fscheck() { @@ -277,6 +279,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/python*/site-packages for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +299,11 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -type f` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/libusb/PlamoBuild.libusb-1.0.20 2016-07-17 04:59:41.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/libusb/libusb-1.0.20.tar.bz2" +pkgbase=libusb +vers=1.0.20 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING ChangeLog README PORTING AUTHORS INSTALL NEWS TODO" ###################################################################### fscheck() { @@ -295,9 +295,11 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/libusb-${vers%.*} 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/libusb_compat/PlamoBuild.libusb_compat-0.1.3 2016-07-17 05:11:41.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/libusb/libusb-compat-0.1.3.tar.bz2" +pkgbase=libusb_compat +vers=0.1.3 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=libusb-compat-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog README NEWS INSTALL LICENSE AUTHORS COPYING" ###################################################################### fscheck() { @@ -296,8 +296,11 @@ 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` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/libxml2/PlamoBuild.libxml2-2.9.4 2016-07-17 10:41:32.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://xmlsoft.org/sources/libxml2-2.9.4.tar.gz" +pkgbase=libxml2 +vers=2.9.4 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-history" +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO Copyright + TODO_SCHEMAS README.tests" ###################################################################### fscheck() { @@ -269,7 +270,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P HTML_DIR=/usr/share/doc/libxml2/html \ + DOC_MODULE=libxml2 fi done touch $W/i.et @@ -277,6 +279,7 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/python*/site-packages for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +297,30 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/libxml2/examples $docdir/$src + mv $docdir/libxml2/html $docdir/$src/doc + mv $docdir/libxml2-python-$vers $docdir/$src/python + mv $docdir/$src/{examples,{Copyright,TODO_SCHEMAS,README.tests}.gz} $C + mv $docdir/$src/{doc,python,$myname.gz} $C + mv $C/{examples,{Copyright,TODO_SCHEMAS,README.tests}.gz} $docdir/$src + mv $C/{doc,python,$myname.gz} $docdir/$src + 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/$libdir -maxdepth 1 -name libxml2.*` + tar rvpf $pkg.tar -C $P usr/$libdir/xml2Conf.sh + tar rvpf $pkg.tar -C $P usr/$libdir/cmake/libxml2 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir/python*/site-packages | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/libxml2 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/gtk-doc/html/libxml2 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/libzip/PlamoBuild.libzip-0.11.2 2016-07-17 10:58:19.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.nih.at/libzip/libzip-0.11.2.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/libzip/CVE-2015-2331.patch.gz" +pkgbase=libzip +vers=0.11.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" +patchfiles="CVE-2015-2331.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS INSTALL NEWS README THANKS TODO API-CHANGES LICENSE" ###################################################################### fscheck() { @@ -296,8 +297,14 @@ 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/$libdir -maxdepth 1 -name libzip.*` + tar rvpf $pkg.tar -C $P usr/$libdir/libzip + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/lm_sensors/PlamoBuild.lm_sensors-3.3.1 2016-07-17 12:47:31.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://repository.timesys.com/buildsources/l/lm_sensors/lm_sensors-3.3.1/lm_sensors-3.3.1.tar.bz2" +pkgbase=lm_sensors +vers=3.3.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README INSTALL COPYING COPYING.LGPL CONTRIBUTORS CHANGES" ###################################################################### fscheck() { @@ -252,7 +252,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make PREFIX=/usr LIBDIR=/usr/$libdir fi done fi @@ -269,9 +269,12 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P PREFIX=/usr LIBDIR=/usr/$libdir \ + MANDIR=/usr/share/man fi done + mv $P/etc/sensors3.conf $C + mv $C/sensors3.conf $P/etc/sensors3.conf.new touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +298,27 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + cat <<- "EOF" >> $P/install/doinst.sh + + mv etc/sensors3.conf.new /tmp + if [ -f etc/sensors3.conf ] ; then + mv /tmp/sensors3.conf.new etc/sensors3.conf.dist + else + mv /tmp/sensors3.conf.new etc/sensors3.conf + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/sensors + tar rvpf $pkg.tar -C $P `cd $P ; find etc -maxdepth 1 | tail -n+2` 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/lshw/PlamoBuild.lshw-B.02.16 2016-07-17 14:50:03.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ezix.org/software/files/lshw-B.02.16.tar.gz" +pkgbase=lshw +vers=B.02.16 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README `echo docs/{TODO,IODC.txt,Changelog,proc_usb_info.txt}` + COPYING" ###################################################################### fscheck() { @@ -253,6 +254,7 @@ cd ${B[$i]} if [ -f Makefile ] ; then make + make gui fi done fi @@ -269,9 +271,30 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install install-gui DESTDIR=$P fi done + touch $P/usr/sbin/gtk-lshw + install -d $P/usr/share/polkit-1/actions + cat <<- "EOF" > $P/usr/share/polkit-1/actions/org.plamolinux.pkexec.gtk-lshw.policy + + + + + Authentication is required to run the gtk-lshw + gtk-lshw + + auth_admin + auth_admin + auth_admin + + /usr/sbin/gtk-lshw + true + + + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,7 +318,10 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/lshw + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/polkit-1/actions | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/lsof/PlamoBuild.lsof-4.81.dfsg.1 2016-07-17 19:19:03.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.uni-erlangen.de/ubuntu/pool/main/l/lsof/lsof_4.81.dfsg.1.orig.tar.gz" +pkgbase=lsof +vers=4.81.dfsg.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="00*" ###################################################################### fscheck() { @@ -247,6 +247,7 @@ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + yes "" | ./Configure linux fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -272,6 +273,10 @@ make install DESTDIR=$P fi done + install -d $P/usr/bin + install -m 4755 lsof $P/usr/bin + install -d $mandir/man8 + install -m 644 lsof.8 $mandir/man8 touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,7 +301,7 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/lv/PlamoBuild.lv-451 2016-07-17 21:42:10.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://pkgs.fedoraproject.org/repo/pkgs/lv/lv451.tar.gz/85b70ae797f935741ec9a1cbe92f00e9/lv451.tar.gz" +pkgbase=lv +vers=451 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P4 +src=$pkgbase$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README GPL.txt" ###################################################################### fscheck() { @@ -233,16 +233,45 @@ esac done done + cp -p src/Makefile.in{,.orig} + cat <<- "EOF" | patch src/Makefile.in + 67,69c67,70 + < $(INSTALL) -s -m 555 lv $(bindir) + < if test -f $(bindir)/lgrep; then \ + < /bin/rm -f $(bindir)/lgrep; \ + --- + > mkdir -p $(DESTDIR)$(bindir) + > $(INSTALL) -s -m 555 lv $(DESTDIR)$(bindir) + > if test -f $(DESTDIR)$(bindir)/lgrep; then \ + > /bin/rm -f $(DESTDIR)$(bindir)/lgrep; \ + 71,73c72,74 + < (cd $(bindir); ln lv lgrep) + < if test ! -d $(lvlibdir); then \ + < mkdir -p $(lvlibdir); \ + --- + > (cd $(DESTDIR)$(bindir); ln lv lgrep) + > if test ! -d $(DESTDIR)$(lvlibdir); then \ + > mkdir -p $(DESTDIR)$(lvlibdir); \ + 75,77c76,79 + < $(INSTALL) -m 444 $(srcdir)/../lv.hlp $(lvlibdir) + < if test -d $(mandir) -a -d $(mandir)/man1; then \ + < $(INSTALL) -m 444 $(srcdir)/../lv.1 $(mandir)/man1; \ + --- + > $(INSTALL) -m 444 $(srcdir)/../lv.hlp $(DESTDIR)$(lvlibdir) + > mkdir -p $(DESTDIR)$(mandir)/man1 + > if test -d $(DESTDIR)$(mandir) -a -d $(DESTDIR)$(mandir)/man1; then \ + > $(INSTALL) -m 444 $(srcdir)/../lv.1 $(DESTDIR)$(mandir)/man1; \ + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build if [ -f Makefile ] ; then make clean fi if [ -f config.log ] ; then rm -rf config.cache config.log fi - if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + if [ -x ../src/configure ] ; then + ../src/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi @@ -250,7 +279,7 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build if [ -f Makefile ] ; then make fi @@ -267,7 +296,7 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build if [ -f Makefile ] ; then make install DESTDIR=$P fi @@ -296,6 +325,7 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/lv tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/man_pages/PlamoBuild.man_pages-3.47 2016-07-27 10:03:08.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers +url="https://www.kernel.org/pub/linux/docs/man-pages/Archive/man-pages-3.47.tar.xz" +pkgbase=man_pages +vers=3.47 +arch=noarch +build=P2 +src=man-pages-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="Changes.old README man-pages-3.47.Announce Changes" ###################################################################### fscheck() { @@ -251,7 +251,7 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make fi done @@ -295,8 +295,14 @@ ( 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` + tar cvpf $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/man2 | 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 `cd $P ; find usr/share/man/man4 | 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 `cd $P ; find usr/share/man/man6 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/man_pages_ja/PlamoBuild.man_pages_ja-20100415 2016-07-27 10:03:26.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers +url="https://pkgs.fedoraproject.org/repo/pkgs/man-pages-ja/man-pages-ja-20100415.tar.gz/78041d36eb491cd5b0eaf16aac34361a/man-pages-ja-20100415.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/man_pages_ja/manpage_list + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/man_pages_ja/man-pages-ja-20100828-plamo.tar.gz" +pkgbase=man_pages_ja +vers=20100415 +arch=noarch +build=P4 +src=man-pages-ja-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="manual/LDP_man-pages/translation_list ChangeLog README INSTALL" ###################################################################### fscheck() { @@ -187,7 +189,7 @@ if [ $opt_download -eq 1 ] ; then for i in $url ; do if [ ! -f ${i##*/} ] ; then - wget $i ; j=${i%.*} + wget --no-check-certificate $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 if wget --spider $j.$sig ; then @@ -251,7 +253,7 @@ if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make fi done @@ -268,15 +270,24 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make install DESTDIR=$P fi done + for i in `seq 8` ; do + install -d $mandir/ja_JP.eucJP/man$i + done + while read manpage ; do + install -m 644 manual/$manpage $mandir/ja_JP.eucJP/man${manpage##*.} + done < $W/manpage_list + install -m 644 $W/man-pages-ja-20100828-plamo/manual/coreutils/* \ + $mandir/ja_JP.eucJP/man1 touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for i in `seq 8` ; do gzip_dir $mandir/ja_JP.eucJP/man$i ; done for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +306,22 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man2 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man3 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man4 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man6 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/man/ja_JP.eucJP/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/mcelog/PlamoBuild.mcelog-git_20160907 2016-10-13 16:30:39.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/mcelog/gitlog2changelog.py" +pkgbase=mcelog +vers=git_20160907 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=$pkgbase patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CHANGES README.md README.releases TODO ChangeLog" ###################################################################### fscheck() { @@ -186,35 +187,47 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; else + ( cd `basename ${i##*/} .git` ; git pull origin master ) ; fi ;; + *) + if [ ! -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 + if wget --spider $j.$sig ; then + case ${i##*.} in + gz) gunzip -c ${i##*/} > ${j##*/} ;; + bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; + xz) unxz -c ${i##*/} > ${j##*/} ;; + esac + touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break + fi + done + if [ -f ${i##*/}.$sig ] ; then + case $sig in + asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; + sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; + *) $sig -c ${i##*/}.$sig ;; esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break + if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi fi - fi + ;; + esac done + if [ ! -x gitlog2changelog.py ] ; then + chmod 755 gitlog2changelog.py + fi for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; gz|tgz) tar xvpzf ${i##*/} ;; bz2|tbz) tar xvpjf ${i##*/} ;; xz|txz) tar xvpJf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + git checkout origin/master ; git reset --hard e6386a0 + git set-file-times ; TZ=UTC ../gitlog2changelog.py) ;; esac done fi @@ -233,6 +246,23 @@ esac done done + cd $B + cp -p mcelog.init{,.orig} + cat <<- "EOF" | patch mcelog.init + 56c56 + < startproc $MCELOG --daemon $MCELOG_OPTIONS + --- + > $MCELOG --daemon $MCELOG_OPTIONS + 66c66 + < killproc -TERM $MCELOG + --- + > killall $MCELOG + 89c89,90 + < checkproc $MCELOG + --- + > pgrep -x ${MCELOG##*/} + > exit $? + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +302,9 @@ make install DESTDIR=$P fi done + touch $P/usr/sbin/mcelog + install -d $P/etc/rc.d/init.d + install -m 644 mcelog.init $P/etc/rc.d/init.d/mcelog touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,9 +327,13 @@ 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/mcelog + tar rvpf $pkg.tar -C $P etc/rc.d/init.d/mcelog + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/mtools/PlamoBuild.mtools-4.0.18 2016-07-29 22:55:22.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/mtools/mtools-4.0.18.tar.bz2" +pkgbase=mtools +vers=4.0.18 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README.BEBOX README NEWS COPYING Release.notes INSTALL" ###################################################################### fscheck() { @@ -297,7 +297,10 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/bind/PlamoBuild.bind-9.9.9_P3 2016-10-01 07:53:30.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.isc.org/isc/bind/9.9.9-P3/bind-9.9.9-P3.tar.gz + http://www.internic.net/domain/named.root" +pkgbase=bind +vers=9.9.9_P3 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=$pkgbase-9.9.9-P3 patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-libxml2=no --with-libtool" +DOCS="CHANGES COPYRIGHT FAQ HISTORY README" ###################################################################### fscheck() { @@ -272,6 +273,102 @@ make install DESTDIR=$P fi done + cat <<- "EOF" > $P/etc/named.conf.new + // CACHING NAME SERVER + options { + directory "/var/named"; + // version statement - inhibited for security + // (avoids hacking any known weaknesses) + version "not currently available"; + // disables all zone transfer requests + allow-transfer { + "none"; + }; + // Closed DNS - permits only local IPs to issue queries + // remove if an Open DNS required to support all users + // or add additional IP ranges + // in this case either allow-query or allow-recursion can be used + allow-query { + 192.168.1.0/24; + }; + }; + + // log to /var/log/named.log events + // from info UP in severity (no debug) + // defaults to use 3 files in rotation + // BIND 8.x logging MUST COME FIRST in this file + // BIND 9.x parses the whole file before using the log + // failure messages up to this point are in (syslog) + // typically /var/log/messages + logging { + channel example_log { + file "/var/log/named.log" versions 3 size 2m; + severity info; + print-severity yes; + print-time yes; + print-category yes; + }; + category default { + example_log; + }; + }; + + // required zone for recursive queries + zone "." { + type hint; + file "named.root"; + }; + + // required local host domain + zone "localhost" in { + type master; + file "master.localhost"; + allow-update { + none; + }; + }; + + // localhost reverse map + zone "0.0.127.in-addr.arpa" in { + type master; + file "localhost.rev"; + allow-update { + none; + }; + }; + EOF + install -d $P/var/named + cat <<- "EOF" | sed 's/^|//' > $P/var/named/master.localhost.new + |$TTL 86400 ; 24 hours could have been written as 24h + |$ORIGIN localhost. + |; line below = localhost 1D IN SOA localhost root.localhost + |@ 1D IN SOA @ root ( + | 2009073001 ; serial + | 3h ; refresh + | 15 ; retry + | 1w ; expire + | 3h ; minimum + | ) + |@ 1D IN NS @ + | 1D IN A 127.0.0.1 + EOF + chmod 600 $P/var/named/master.localhost.new + cat <<- "EOF" | sed 's/^|//' > $P/var/named/localhost.rev.new + |$TTL 86400 + |; could use $ORIGIN 0.0.127.IN-ADDR.ARPA. + |@ IN SOA localhost. root.localhost. ( + | 1997022700 ; serial + | 3h ; refresh + | 15 ; retry + | 1w ; expire + | 3h ; minimum + | ) + | IN NS localhost. + |1 IN PTR localhost. + EOF + chmod 600 $P/var/named/localhost.rev.new + cp -p $W/named.root $P/var/named/named.root.new + chown root.root $P/var/named/named.root.new touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +392,59 @@ ( 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` + cat <<- "EOF" >> $P/install/doinst.sh + + named_config() { + mv var/named/$1.new /tmp + if [ -f var/named/$1 ] ; then + mv /tmp/$1.new var/named/$1.dist + else + mv /tmp/$1.new var/named/$1 + fi + } + + mv etc/named.conf.new /tmp + if [ -f etc/named.conf ] ; then + mv /tmp/named.conf.new etc/named.conf.dist + else + mv /tmp/named.conf.new etc/named.conf + fi + for i in master.localhost localhost.rev ; do + named_config $i + done + mv var/named/named.root.new /tmp + if [ -f var/named/named.root ] ; then + if diff -q var/named/named.root.internic var/named/named.root \ + > /dev/null 2>&1 ; then + mv var/named/named.root var/named/named.root.old + mv /tmp/named.root.new var/named/named.root + cp -p var/named/named.root var/named/named.root.internic + echo "New root hint file has been installed." + echo "Old one has been moved to /var/named/named.root.old." + else + mv /tmp/named.root.new var/named/named.root.internic + echo "You might have to update your root hint file." + echo "New one has been installed to /var/named/named.root.internic." + fi + else + mv /tmp/named.root.new var/named/named.root + cp -p var/named/named.root var/named/named.root.internic + echo "New root hint file has been installed." + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc | tail -n+2` + tar rvpf $pkg.tar -C $P var/named 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/bridge_utils/PlamoBuild.bridge_utils-1.5 2016-08-06 09:15:41.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/bridge/bridge-utils-1.5.tar.gz" +pkgbase=bridge_utils +vers=1.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=bridge-utils-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING ChangeLog README THANKS TODO + `echo doc/{FAQ,FIREWALL,HOWTO,PROJECTS,SMPNOTES,WISHLIST}`" ###################################################################### fscheck() { @@ -233,6 +234,8 @@ esac done done + cd $B + autoreconf for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -252,7 +255,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make KERNEL_HEADERS=/usr/src/linux/include/uapi fi done fi @@ -295,8 +298,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/curl/PlamoBuild.curl-7.50.3 2016-09-24 08:32:13.000000000 +0900 @@ -1,15 +1,23 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://curl.haxx.se/download/curl-7.50.3.tar.bz2" +pkgbase=curl +vers=7.50.3 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--disable-ldap --disable-rtsp + --with-gssapi-includes=/usr/heimdal/include --without-librtmp" +DOCS="`echo docs/{VERSIONS,MAIL-ETIQUETTE,HTTP-COOKIES.md,BINDINGS}` + `echo docs/{RELEASE-PROCEDURE,BUGS,SSL-PROBLEMS.md,CODE_STYLE.md}` + `echo docs/{KNOWN_BUGS,HTTP2.md,README.win32,INTERNALS.md}` + `echo docs/{LICENSE-MIXING.md,THANKS,README.netware,TheArtOfHttpScripting}` + `echo docs/{INSTALL.devcpp,CHECKSRC.md,FAQ,INSTALL,ROADMAP.md,FEATURES}` + `echo docs/{MANUAL,CODE_OF_CONDUCT.md,RESOURCES,SECURITY.md,TODO}` + `echo docs/{CONTRIBUTE.md,HISTORY.md,SSLCERTS.md}` + README CHANGES RELEASE-NOTES COPYING" ###################################################################### fscheck() { @@ -244,7 +252,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-gssapi-libs=/usr/heimdal/$libdir fi done fi @@ -296,8 +305,14 @@ 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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/curl + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/cyrus_sasl/PlamoBuild.cyrus_sasl-2.1.26 2016-09-25 07:18:16.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz" +pkgbase=cyrus_sasl +vers=2.1.26 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=cyrus-sasl-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-dbpath=/var/lib/sasl/sasldb2 + --with-saslauthd=/var/run/saslauthd" +DOCS="ChangeLog INSTALL AUTHORS INSTALL.TXT COPYING NEWS README" ###################################################################### fscheck() { @@ -233,6 +234,10 @@ esac done done + cp -p Makefile.in{,.orig} + sed -i 's@$(prefix)/lib@$(libdir)@g' Makefile.in + cp -p plugins/Makefile.in{,.orig} + sed -i 's@$(prefix)/lib/sasl2@$(plugindir)@g' plugins/Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -244,7 +249,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-plugindir=/usr/$libdir/sasl2 fi done fi @@ -272,11 +278,58 @@ make install DESTDIR=$P fi done + install -d $P/etc/sasl2 + cat <<- "EOF" > $P/etc/sasl2/smtpd.conf + pwcheck_method: saslauthd + mech_list: plain login + EOF + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/saslauthd + #!/bin/sh + + start() { + if [ -x /usr/sbin/saslauthd ] ; then + echo $"Starting saslauthd..." + saslauthd -a shadow + fi + } + + stop() { + if [ -f /var/run/saslauthd/saslauthd.pid ] ; then + echo $"Stopping saslauthd..." + kill `cat /var/run/saslauthd/saslauthd.pid` + rm -f /var/run/saslauthd/saslauthd.pid + fi + } + + case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 3 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 + ;; + esac + exit 0 + EOF + chmod 755 $P/etc/rc.d/init.d/saslauthd + install -d -m 700 $P/var/lib/sasl + install -d -g postfix $P/var/run/saslauthd touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/sasl2 for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +348,21 @@ ( 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` + touch -t `date '+%m%d0900'` $P/usr/$libdir/sasl2 + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libsasl2.*` + tar rvpf $pkg.tar -C $P usr/$libdir/sasl2 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/sasl + tar rvpf $pkg.tar -C $P etc/sasl2 + tar rvpf $pkg.tar -C $P etc/rc.d/init.d/saslauthd + tar rvpf $pkg.tar -C $P var/lib/sasl + tar rvpf $pkg.tar -C $P var/run/saslauthd + 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/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/dnsmasq/PlamoBuild.dnsmasq-2.76 2016-09-25 07:54:28.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.76.tar.gz" +pkgbase=dnsmasq +vers=2.76 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="FAQ COPYING setup.html CHANGELOG COPYING-v3 CHANGELOG.archive + doc.html" ###################################################################### fscheck() { @@ -252,7 +253,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make all-i18n PREFIX=/usr fi done fi @@ -269,9 +270,45 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install-i18n DESTDIR=$P PREFIX=/usr fi done + install -d $P/etc + install -m 644 $B/dnsmasq.conf.example $P/etc/dnsmasq.conf.new + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/dnsmasq + #!/bin/sh + + start() { + if [ -x /usr/sbin/dnsmasq ] ; then + dnsmasq + fi + } + + stop() { + killall dnsmasq + } + + case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 1 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 + ;; + esac + exit 0 + EOF + chmod 644 $P/etc/rc.d/init.d/dnsmasq touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +332,24 @@ ( 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` + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + mv etc/dnsmasq.conf.new /tmp + if [ -f etc/dnsmasq.conf ] ; then + mv /tmp/dnsmasq.conf.new etc/dnsmasq.conf.dist + else + mv /tmp/dnsmasq.conf.new etc/dnsmasq.conf + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find etc -type f` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/es/man8 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/fr/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/ethtool/PlamoBuild.ethtool-4.6 2016-09-23 16:36:42.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/software/network/ethtool/ethtool-4.6.tar.xz" +pkgbase=ethtool +vers=4.6 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS NEWS INSTALL COPYING README ChangeLog LICENSE" ###################################################################### fscheck() { @@ -295,8 +295,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/fetchmail/PlamoBuild.fetchmail-6.3.26 2016-09-20 10:57:00.000000000 +0900 @@ -1,15 +1,23 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://download.sourceforge.net/fetchmail/fetchmail-6.3.26.tar.xz" +pkgbase=fetchmail +vers=6.3.26 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-ssl" +DOCS="Mailbox-Names-UTF7.txt ABOUT-NLS fetchmail-EN-2010-03.txt + fetchmail-SA-2005-02.txt fetchmail-SA-2012-02.txt fetchmail-SA-2005-03.txt + README.SSL-SERVER FEATURES fetchmail-SA-2005-01.txt FAQ + fetchmail-SA-2006-03.txt fetchmail-SA-2011-01.txt fetchmail-SA-2007-01.txt + fetchmail-SA-2012-01.txt fetchmail-SA-2007-02.txt INSTALL + fetchmail-SA-2010-02.txt TODO fetchmail-SA-2006-02.txt NOTES + fetchmail-SA-2006-01.txt README.SSL fetchmail-SA-2009-01.txt + fetchmail-SA-2008-01.txt README README.NTLM fetchmail-SA-2010-01.txt + README.packaging NEWS OLDNEWS COPYING" ###################################################################### fscheck() { @@ -296,6 +304,9 @@ 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/$libdir/python*/site-packages | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/heimdal/PlamoBuild.heimdal-1.5.3 2016-09-23 09:54:57.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.h5l.org/dist/src/heimdal-1.5.3.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/heimdal/heimdal-1.5.3-texinfo_fix.patch" +pkgbase=heimdal +vers=1.5.3 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="heimdal-1.5.3-texinfo_fix.patch" +OPT_CONFIG="--prefix=/usr/heimdal --infodir=/usr/share/info + --mandir=/usr/share/man --with-sqlite3=/usr LIBS=-pthread" +DOCS="ChangeLog* LICENSE NEWS README TODO" ###################################################################### fscheck() { @@ -233,6 +235,9 @@ esac done done + cd $B + cp -p krb5.conf{,.orig} + sed -i '/default_realm/s@^ *@\t@' krb5.conf for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,11 +277,179 @@ make install DESTDIR=$P fi done + mkdir $P/usr/heimdal/heimdal.tmp + mv $P/usr/heimdal/{{{,s}bin,libexec,$libdir,include},heimdal.tmp} + mv $P/usr/heimdal{/heimdal.tmp/{{,s}bin,libexec,$libdir,include},} + rmdir $P/usr/heimdal/heimdal.tmp + install -d $P/usr/$libdir/pkgconfig + ln -sf /usr/heimdal/$libdir/pkgconfig/heimdal-gssapi.pc \ + $P/usr/$libdir/pkgconfig + ln -sf mech.5 $mandir/man5/qop.5 + install -d $P/etc + install -m 644 krb5.conf $P/etc + install -m 644 etc/services.append $P/etc/services.append-kerberos + install -d $P/etc/profile.d + cat <<- "EOF" > $P/etc/profile.d/heimdal.sh + # add /usr/heimdal/bin to $PATH for bash + heimdal=/usr/heimdal + + if [ -n "$PATH" ] ; then + PATH=$PATH:$heimdal/bin + else + PATH=/bin:/usr/bin:$heimdal/bin + fi + if [ `id -u` = 0 ] ; then + PATH=$PATH:$heimdal/sbin + fi + export PATH + EOF + cat <<- "EOF" > $P/etc/profile.d/heimdal.csh + # add /usr/heimdal/bin to $PATH for tcsh + set heimdal=/usr/heimdal + + if ($?PATH) then + setenv PATH $PATH:$heimdal/bin + else + setenv PATH /bin:/usr/bin:$heimdal/bin + endif + if (`id -u` == 0) then + setenv PATH $PATH:$heimdal/sbin + endif + EOF + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/heimdal + #!/bin/sh -f + # + # description: The Heimdal Kerberos5 KDC Master server and its administration + # daemons. + # processname: heimdal + # chkconfig: 2345 11 89 + # + # Creation: 1997-04-10 + # Auther: JuK + # HISTORY + # 2006-01-02 JuK port to Heimdal on Plamo Linux + # 2001-10-01 JuK port to RH7.1 + # + KDC=/usr/heimdal/libexec/kdc + kdcdaemon="heimdal (Kerberos 5 KDC)" + KADMIND=/usr/heimdal/libexec/kadmind + kdmdaemon="kadmind (Kerberos DB admin. daemon)" + KPASSWDD=/usr/heimdal/libexec/kpasswdd + kpwdaemon="kpasswdd (Kerberos password daemon)" + + kdcpid=`ps ax | grep $KDC | grep -v grep | sed -e 's/^ *//' -e 's/ .*//'` + kdmpid=`ps ax | grep $KADMIND | grep -v grep | sed -e 's/^ *//' -e 's/ .*//'` + kpwpid=`ps ax | grep $KPASSWDD | grep -v grep | sed -e 's/^ *//' -e 's/ .*//'` + + # + # start or stop kdc (KDC) + # start or stop kadmind (Kerberos DB admin. daemon) + # start or stop kpasswdd (Kerberos password daemon) + # + case $1 in + start) + if [ -f $KDC ] ; then + if [ -z "$kdcpid" ] ; then + $KDC & + echo "$0: $kdcdaemon started." + kdcpid=`ps ax | grep $KDC | grep -v grep | sed -e 's/^ *//' -e 's/ .*//'` + echo "$0: Proccess ID = $kdcpid" + else + echo "$0: $kdcdaemon is ALREADY running (PID = $kdcpid)." + fi + else + echo "$0: $KDC does NOT exist." + exit 1 + fi + if [ -f $KADMIND ] ; then + if [ -z "$kdmpid" ] ; then + $KADMIND & + echo "$0: $kdmdaemon started." + kdmpid=`ps ax | grep $KADMIND | grep -v grep | sed -e 's/^ *//' -e 's/ .*//'` + echo "$0: Proccess ID = $kdmpid" + else + echo "$0: $kdmdaemon is ALREADY running (PID = $kdmpid)." + fi + else + echo "$0: $KADMIND does NOT exist." + exit 1 + fi + if [ -f $KPASSWDD ] ; then + if [ -z "$kpwpid" ] ; then + $KPASSWDD & + echo "$0: $kpwdaemon started." + kpwpid=`ps ax | grep $KPASSWDD | grep -v grep | sed -e 's/^ *//' -e 's/ .*//'` + echo "$0: Proccess ID = $kpwpid" + else + echo "$0: $kpwdaemon is ALREADY running (PID = $kpwpid)." + fi + else + echo "$0: $KPASSWDD does NOT exist." + exit 1 + fi + ;; + stop) + if [ -f $KDC ] ; then + if [ -n "$kdcpid" ] ; then + kill $kdcpid + echo "$0: $kdcdaemon has been killed." + else + echo "$0: $kdcdaemon is NOT running." + fi + fi + if [ -f $KADMIND ] ; then + if [ -n "$kdmpid" ] ; then + kill $kdmpid + echo "$0: $kdmdaemon has been killed." + else + echo "$0: $kdmdaemon is NOT running." + fi + fi + if [ -f $KPASSWDD ] ; then + if [ -n "$kpwpid" ] ; then + kill $kpwpid + echo "$0: $kpwdaemon has been killed." + else + echo "$0: $kpwdaemon is NOT running." + fi + fi + ;; + *) + echo "usage: $0 {start|stop}" + # check kdc + if [ -n "$kdcpid" ] ; then + echo "$0: $kdcdaemon is ALREADY running (PID = $kdcpid)." + else + echo "$0: $kdcdaemon is NOT running." + fi + # check kadmind + if [ -n "$kdmpid" ] ; then + echo "$0: $kdmdaemon is ALREADY running (PID = $kdmpid)." + else + echo "$0: $kdmdaemon is NOT running." + fi + # check kpasswdd + if [ -n "$kpwpid" ] ; then + echo "$0: $kpwdaemon is ALREADY running (PID = $kpwpid)." + else + echo "$0: $kpwdaemon is NOT running." + fi + exit 1 + ;; + esac + exit 0 + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/heimdal/bin + strip_bindir $P/usr/heimdal/sbin + strip_bindir $P/usr/heimdal/libexec/heimdal + strip_bindir $P/usr/heimdal/libexec + strip_libdir $P/usr/heimdal/$libdir for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +467,19 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + prune_symlink $P/usr/heimdal convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + touch -t `date '+%m%d0900'` \ + $P/usr/heimdal/{{,s}bin,libexec{,/heimdal},$libdir} + tar cvpf $pkg.tar -C $P usr/heimdal + tar rvpf $pkg.tar -C $P `cd $P ; find etc -type f` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/hostapd/PlamoBuild.hostapd-2.5 2016-10-01 20:43:06.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://hostap.epitest.fi/releases/hostapd-2.5.tar.gz" +pkgbase=hostapd +vers=2.5 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CONTRIBUTIONS COPYING README + `echo hostapd/{ChangeLog,README{,-WPS},{eap_testing,hlr_auc_gw}.txt}`" ###################################################################### fscheck() { @@ -233,8 +234,28 @@ esac done done + cd $B + cp -p hostapd/{defconfig,.config} + cat <<- "EOF" | patch hostapd/.config + 16c16 + < #CONFIG_DRIVER_WIRED=y + --- + > CONFIG_DRIVER_WIRED=y + 31c31 + < #CONFIG_LIBNL32=y + --- + > CONFIG_LIBNL32=y + 114c114 + < #CONFIG_WPS=y + --- + > CONFIG_WPS=y + 164c164 + < #CONFIG_DEBUG_FILE=y + --- + > CONFIG_DEBUG_FILE=y + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/hostapd if [ -f Makefile ] ; then make clean fi @@ -250,9 +271,9 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/hostapd if [ -f Makefile ] ; then - make + make BINDIR=/usr/sbin fi done fi @@ -267,11 +288,74 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/hostapd if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P BINDIR=/usr/sbin fi done + install -d $mandir/man1 + install -m 644 $B/hostapd/hostapd_cli.1 $mandir/man1 + install -d $mandir/man8 + install -m 644 $B/hostapd/hostapd.8 $mandir/man8 + install -d $P/etc + cat <<- "EOF" > $P/etc/hostapd.conf.new + interface=wlan0 + ctrl_interface=/var/run/hostapd + ctrl_interface_group=wheel + ssid="replace SSID" + country_code=JP + ieee80211d=1 + hw_mode=g + macaddr_acl=0 + accept_mac_file=/etc/hostapd.accept + deny_mac_file=/etc/hostapd.deny + auth_algs=1 + wpa=2 + wpa_psk_file=/etc/hostapd.wpa_psk + wpa_key_mgmt=WPA-PSK + rsn_pairwise=CCMP + EOF + install -m 644 $B/hostapd/hostapd.accept $P/etc/hostapd.accept.new + sed -i '/^00/s/^/#/' $P/etc/hostapd.accept.new + install -m 644 $B/hostapd/hostapd.deny $P/etc/hostapd.deny.new + sed -i '/^00/s/^/#/' $P/etc/hostapd.deny.new + install -m 644 $B/hostapd/hostapd.wpa_psk $P/etc/hostapd.wpa_psk.new + sed -i '/^00/s/^/#/' $P/etc/hostapd.wpa_psk.new + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/hostapd + #!/bin/sh + # Start/stop/restart the hostapd (IEEE 802.11 Wireless AP) server: + + start() { + if [ -x /usr/sbin/hostapd ] ; then + hostapd -B /etc/hostapd.conf + fi + } + + stop() { + killall hostapd + } + + case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 3 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 + ;; + esac + exit 0 + EOF + chmod 644 $P/etc/rc.d/init.d/hostapd touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +378,34 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + install -d $docdir/$src/hostapd/examples + cp -p $S/hostapd/hostapd.[a-z]* $docdir/$src/hostapd/examples + chmod -R g-w $docdir/$src/hostapd/examples + chown -R root.root $docdir/$src/hostapd/examples + touch -r $S $docdir/$src/hostapd{/examples,} convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + hostapd_config() { + mv etc/hostapd.$1.new /tmp + if [ -f etc/hostapd.$1 ] ; then + mv /tmp/hostapd.$1.new etc/hostapd.$1.dist + else + mv /tmp/hostapd.$1.new etc/hostapd.$1 + fi + } + + for i in conf accept deny wpa_psk ; do + hostapd_config $i + done + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc -type f` 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/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/iptables/PlamoBuild.iptables-1.4.21 2016-09-23 20:58:58.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.netfilter.org/pub/iptables/iptables-1.4.21.tar.bz2" +pkgbase=iptables +vers=1.4.21 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-libipq" +DOCS="INSTALL INCOMPATIBILITIES COPYING COMMIT_NOTES" ###################################################################### fscheck() { @@ -272,11 +272,14 @@ make install DESTDIR=$P fi done + touch $P/usr/$libdir/xtables/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/xtables + touch -t `date '+%m%d0900'` $P/usr/$libdir/xtables for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +298,23 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libip*tc.*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libxtables.*` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libipq.*` + tar rvpf $pkg.tar -C $P usr/$libdir/xtables + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/include -maxdepth 1 | tail -n+2` 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 `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/iw/PlamoBuild.iw-4.7 2016-09-23 21:11:34.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/software/network/iw/iw-4.7.tar.xz" +pkgbase=iw +vers=4.7 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CONTRIBUTING COPYING README" ###################################################################### fscheck() { @@ -295,8 +295,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/libidn/PlamoBuild.libidn-1.33 2016-09-23 21:26:08.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/libidn/libidn-1.33.tar.gz" +pkgbase=libidn +vers=1.33 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS FAQ COPYING.LESSERv2 THANKS ABOUT-NLS README AUTHORS + COPYINGv2 TODO COPYING.LESSERv3 COPYING INSTALL COPYINGv3 + HACKING ChangeLog" ###################################################################### fscheck() { @@ -296,8 +298,16 @@ 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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/emacs/site-lisp | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/libiec61883/PlamoBuild.libiec61883-1.2.0 2016-09-23 21:35:52.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/libs/ieee1394/libiec61883-1.2.0.tar.xz" +pkgbase=libiec61883 +vers=1.2.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README AUTHORS COPYING ChangeLog INSTALL NEWS" ###################################################################### fscheck() { @@ -296,8 +296,12 @@ 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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/libiec61883 tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/libnl3/PlamoBuild.libnl3-3.2.25 2016-09-23 23:56:11.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz" +pkgbase=libnl3 +vers=3.2.25 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=libnl-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog COPYING" ###################################################################### fscheck() { @@ -277,6 +277,9 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/libnl/cli/qdisc + strip_libdir $P/usr/$libdir/libnl/cli/cls + touch -t `date '+%m%d0900'` $P/usr/$libdir/libnl/cli/{qdisc,cls} for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +298,14 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libnl*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/libnl3 + tar rvpf $pkg.tar -C $P etc/libnl + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/libpcap/PlamoBuild.libpcap-1.8.0 2016-09-24 06:23:18.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.tcpdump.org/release/libpcap-1.8.0.tar.gz" +pkgbase=libpcap +vers=1.8.0 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README.Win32 VERSION LICENSE README.tru64 README.dag README + pcap-sita.html CHANGES README.septel README.macosx README.hpux + README.sita README.linux INSTALL.txt CREDITS TODO README.aix" ###################################################################### fscheck() { @@ -296,8 +298,14 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` 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 `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/libraw1394/PlamoBuild.libraw1394-2.1.2 2016-09-24 06:39:39.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/libs/ieee1394/libraw1394-2.1.2.tar.xz" +pkgbase=libraw1394 +vers=2.1.2 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING.LIB ChangeLog INSTALL NEWS README" ###################################################################### fscheck() { @@ -296,8 +296,13 @@ 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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/libraw1394 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/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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/libssh/PlamoBuild.libssh-0.7.3 2016-09-24 06:53:59.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://red.libssh.org/attachments/download/195/libssh-0.7.3.tar.xz" +pkgbase=libssh +vers=0.7.3 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="BSD COPYING AUTHORS INSTALL README README.CodingStyle + SubmittingPatches ChangeLog" ###################################################################### fscheck() { @@ -220,7 +221,7 @@ fi if [ $opt_config -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} + if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; mkdir ${B[$i]} done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} @@ -247,6 +248,7 @@ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=${libdir#lib} $S fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -272,6 +274,7 @@ make install DESTDIR=$P fi done + find $P/usr/$libdir -type f -exec touch {} \; touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +297,14 @@ 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/cmake/libssh + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libssh*` + tar rvpf $pkg.tar -C $P usr/include/libssh 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/libssh2/PlamoBuild.libssh2-1.7.0 2016-09-24 07:29:19.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.libssh2.org/download/libssh2-1.7.0.tar.gz" +pkgbase=libssh2 +vers=1.7.0 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="`echo docs/{BINDINGS,HACKING,INSTALL_CMAKE,AUTHORS,TODO}` + `echo docs/{INSTALL_AUTOTOOLS,HACKING.CRYPTO}` + README RELEASE-NOTES ChangeLog COPYING NEWS" ###################################################################### fscheck() { @@ -295,9 +297,12 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/mailx/PlamoBuild.mailx-12.5 2016-09-25 07:50:47.000000000 +0900 @@ -1,15 +1,33 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5.orig.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/nail-11.25-config.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/mailx-12.3-pager.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/mailx-12.5-collect.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/mailx-12.5-fname-null.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/mailx-12.5-lzw.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/mailx-12.5-man-page-fixes.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/mailx-12.5-usage.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/0001-outof-Introduce-expandaddr-flag.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/0002-unpack-Disable-option-processing-for-email-addresses.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/0003-fio.c-Unconditionally-require-wordexp-support.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/mailx/0004-globname-Invoke-wordexp-with-WRDE_NOCMD-CVE-2004-277.patch.gz" +pkgbase=mailx +vers=12.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=heirloom-mailx-$vers +patchfiles="nail-11.25-config.patch.gz mailx-12.3-pager.patch.gz + mailx-12.5-collect.patch.gz mailx-12.5-fname-null.patch.gz + mailx-12.5-lzw.patch.gz mailx-12.5-man-page-fixes.patch.gz + mailx-12.5-usage.patch.gz + 0001-outof-Introduce-expandaddr-flag.patch.gz + 0002-unpack-Disable-option-processing-for-email-addresses.patch.gz + 0003-fio.c-Unconditionally-require-wordexp-support.patch.gz + 0004-globname-Invoke-wordexp-with-WRDE_NOCMD-CVE-2004-277.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING ChangeLog INSTALL README TODO" ###################################################################### fscheck() { @@ -252,7 +270,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make SENDMAIL=/usr/sbin/sendmail fi done fi @@ -269,7 +287,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P PREFIX=/usr UCBINSTALL=/usr/bin/install fi done touch $W/i.et @@ -296,6 +314,7 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/nail.rc tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/metamail/PlamoBuild.metamail-2.7 2016-09-25 10:11:43.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://old-releases.ubuntu.com/ubuntu/pool/universe/m/metamail/metamail_2.7.orig.tar.gz + http://old-releases.ubuntu.com/ubuntu/pool/universe/m/metamail/metamail_2.7-54.diff.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/metamail/metamail-2.7-uue.c_getline.patch.gz" +pkgbase=metamail +vers=2.7 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P4 +src=$pkgbase-$vers.orig +patchfiles="metamail_2.7-54.diff.gz metamail-2.7-uue.c_getline.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="CREDITS README mailers.txt" ###################################################################### fscheck() { @@ -233,6 +235,9 @@ esac done done + cd $B + chmod 755 bootstrap configure + ./bootstrap for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +277,10 @@ make install DESTDIR=$P fi done + for i in 1 5 ; do + install -d $mandir/man$i + for j in man/*.$i ; do install -m 644 $j $mandir/man$i ; done + done touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +305,12 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/metamail 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/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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/ncftp/PlamoBuild.ncftp-3.2.5 2016-09-25 10:50:18.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://ftp.ncftpd.com/ncftp/ncftp-3.2.5-src.tar.bz2" +pkgbase=ncftp +vers=3.2.5 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="`echo doc/{CHANGELOG,FIREWALLS_AND_PROXIES,LICENSE}.txt` + `echo doc/{Location_of_Programs_is_C_Windows,READLINE}.txt` + `echo doc/{readme_{ncftpget_,}windows,what_changed_between_v2_v3}.txt` + DONATE.txt README.txt" ###################################################################### fscheck() { --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/ntp/PlamoBuild.ntp-4.2.8p8 2016-10-13 08:06:33.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p8.tar.gz" +pkgbase=ntp +vers=4.2.8p8 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README.hackers README.bk NEWS WHERE-TO-START README.leapsmear + readme.y2kfixes CommitLog-4.1.0 README NOTES.y2kfixes CommitLog + COPYRIGHT INSTALL README.refclocks TODO ChangeLog README.versions + README.patches README.pullrequests" ###################################################################### fscheck() { @@ -272,6 +275,54 @@ make install DESTDIR=$P fi done + install -d $P/etc + cat <<- "EOF" > $P/etc/ntp.conf.new + # peer configuration for your host + # (expected to operate at stratum 3) + server ntp1.jst.mfeed.ad.jp + server ntp2.jst.mfeed.ad.jp + server ntp3.jst.mfeed.ad.jp + driftfile /etc/ntp.drift + EOF + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/ntp + #!/bin/sh + + start() { + if ps ax | grep ntpd | grep -vq grep ; then + echo "NTP daemon already running. NTP start aborted." + exit 0 + fi + if [ -x /usr/bin/ntpd -a -f /etc/ntp.conf ] ; then + ntpdate -s `sed -n '/^server/p' /etc/ntp.conf | cut -d' ' -f2` + ntpd -c /etc/ntp.conf + fi + } + + stop() { + killall ntpd + } + + case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 3 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 + ;; + esac + exit 0 + EOF + chmod 755 $P/etc/rc.d/init.d/ntp touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +345,36 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/sntp $docdir/$src + mv $docdir/ntp $docdir/$src/html + mv $docdir/$src/{sntp,README.gz,html,{NOTES.y2kfixes,CommitLog}.gz} $C + mv $docdir/$src/{COPYRIGHT,INSTALL,README.refclocks,TODO,ChangeLog}.gz $C + mv $docdir/$src/{README.versions,README.patches,README.pullrequests}.gz $C + mv $docdir/$src/$myname.gz $C + mv $C/{sntp,README.gz,html,{NOTES.y2kfixes,CommitLog}.gz} $docdir/$src + mv $C/{COPYRIGHT,INSTALL,README.refclocks,TODO,ChangeLog}.gz $docdir/$src + mv $C/{README.versions,README.patches,README.pullrequests}.gz $docdir/$src + mv $C/$myname.gz $docdir/$src + touch -r $S $docdir/$src convert + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + mv etc/ntp.conf.new /tmp + if [ -f etc/ntp.conf ] ; then + mv /tmp/ntp.conf.new etc/ntp.conf.dist + else + mv /tmp/ntp.conf.new etc/ntp.conf + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/ntp + tar rvpf $pkg.tar -C $P `cd $P ; find etc -type f` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/ntrack/PlamoBuild.ntrack-016 2016-10-05 09:10:09.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://launchpad.net/ntrack/main/016/+download/ntrack-016.tar.gz" +pkgbase=ntrack +vers=016 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README COPYING AUTHORS COPYING.LESSER NEWS ChangeLog INSTALL" ###################################################################### fscheck() { @@ -233,6 +233,18 @@ esac done done + cd $B + cp -p modules/ntrack-libnl.c{,.orig} + cat <<- "EOF" | patch modules/ntrack-libnl.c + 533,534c533,534 + < if ((diff_bits = (route_obj_ops.oo_id_attrs | ROUTE_ATTR_OIF + < | ROUTE_ATTR_GATEWAY) & + --- + > if ((diff_bits = (nl_object_get_id_attrs(nl_object_alloc(&route_obj_ops)) + > | ROUTE_ATTR_OIF | ROUTE_ATTR_GATEWAY) & + EOF + cp -p modules/Makefile.in{,.orig} + sed -i '/-Werror/d' modules/Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -277,6 +289,10 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/ntrack/modules + strip_libdir $P/usr/$libdir/python*/site-packages + touch -t `date '+%m%d0900'` \ + $P/usr/$libdir/{ntrack/modules,python*/site-packages} for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +311,19 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libntrack.*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/ntrack + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libntrack-g*` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir/python*/site-packages | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libntrack-q*` + tar rvpf $pkg.tar -C $P usr/include/ntrack 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/parprouted/PlamoBuild.parprouted-0.7 2016-09-26 12:07:08.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.hazard.maks.net/parprouted/parprouted-0.7.tar.gz" +pkgbase=parprouted +vers=0.7 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CHANGELOG README COPYING" ###################################################################### fscheck() { @@ -233,6 +233,18 @@ esac done done + cd $B + cp -p Makefile Makefile.orig + cat <<- "EOF" | patch Makefile +16,17c16,19 + < install parprouted /usr/local/sbin + < install parprouted.8 /usr/local/man/man8 + --- + > install -d $(DESTDIR)/usr/sbin + > install parprouted $(DESTDIR)/usr/sbin + > install -d $(DESTDIR)/usr/share/man/man8 + > install parprouted.8 $(DESTDIR)/usr/share/man/man8 + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -295,8 +307,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/postfix/PlamoBuild.postfix-2.11.8 2016-10-01 22:29:30.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://mirror.postfix.jp/postfix-release/official/postfix-2.11.8.tar.gz" +pkgbase=postfix +vers=2.11.8 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="AAAREADME COMPATIBILITY COPYRIGHT HISTORY INSTALL IPv6-ChangeLog + LICENSE PORTING RELEASE_NOTES* TLS_* US_PATENT_6321267" ###################################################################### fscheck() { @@ -247,6 +248,15 @@ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + cp -p conf/postfix-files{,.orig} + cat <<- "EOF" >> conf/postfix-files + $command_directory/smtp-source:f:root:root:-:755 + $command_directory/smtp-sink:f:root:root:-:755 + $command_directory/qmqp-source:f:root:root:-:755 + $command_directory/qmqp-sink:f:root:root:-:755 + EOF + make makefiles CCARGS="-DNO_NIS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL \ + -DUSE_TLS -I/usr/include/sasl" AUXLIBS="-lsasl2 -lssl -lcrypto" fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -268,15 +278,67 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make install DESTDIR=$P fi done + sh postfix-install -non-interactive -package install_root=$P \ + html_directory=/usr/share/doc/postfix/html \ + manpage_directory=/usr/share/man \ + readme_directory=/usr/share/doc/postfix/README_FILES + install -d $P/usr/lib + ln -s /usr/sbin/sendmail $P/usr/lib + for i in access aliases canonical generic \ + header_checks main.cf master.cf relocated transport virtual ; do + mv $P/etc/postfix/$i{,.new} + done + mv $P/etc/postfix/{{access,aliases}.new,bounce.cf.default,canonical.new} $C + mv $P/etc/postfix/{{generic,header_checks}.new,main.cf.default} $C + mv $P/etc/postfix/{main.cf.new,makedefs.out,{master.cf,relocated}.new} $C + mv $P/etc/postfix/{transport,virtual}.new $C + mv $C/{{access,aliases}.new,bounce.cf.default,canonical.new} $P/etc/postfix + mv $C/{{generic,header_checks}.new,main.cf.default} $P/etc/postfix + mv $C/{main.cf.new,makedefs.out,{master.cf,relocated}.new} $P/etc/postfix + mv $C/{transport,virtual}.new $P/etc/postfix + sed -i "/^\(html\|readme\)_directory/s@postfix@$src@" \ + $P/etc/postfix/main.cf.new + cat <<- "EOF" >> $P/etc/postfix/main.cf.new + + # Plamo local configurations (for fml and SMTP auth with SASL2) + alias_maps = hash:/etc/aliases + allow_mail_to_commands = alias,forward,include + smtpd_recipient_limit = 5000 + + #smtpd_sasl_auth_enable = yes + #smtpd_sasl_local_domain = + #smtpd_sasl_authenticated_header = yes + #smtpd_recipient_restrictions = + # permit_mynetworks + # permit_sasl_authenticated + # reject_unauth_destination + ## for Cyrus SASL + #smtpd_sasl_path = smtpd + #smtp_sasl_password_maps = hash:/etc/postfix/sasl_password + ## for Dovecot SASL + #smtpd_sasl_type = dovecot + #data_directory = /var/lib/postfix + EOF + sed -i 's@^#\(submission\)@\1@' $P/etc/postfix/master.cf.new + install -m 644 proto/aliases0 $P/etc/aliases.new + install -d $P/etc/rc.d/init.d + ln -s /usr/sbin/postfix $P/etc/rc.d/init.d + for i in active bounce corrupt defer deferred flush \ + hold incoming private maildrop public saved trace ; do + chown postfix $P/var/spool/postfix/$i + done + chgrp postdrop $P/var/spool/postfix/{maildrop,public} touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/postfix + touch -t `date '+%m%d0900'` $P/usr/libexec/postfix for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,10 +356,68 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/postfix/html $docdir/$src + mv $docdir/postfix/README_FILES $docdir/$src + mv $docdir/$src/{README_FILES,{RELEASE_NOTES*,TLS_*}.gz} $C + mv $docdir/$src/{US_PATENT_6321267.gz,html,$myname.gz} $C + mv $C/{README_FILES,{RELEASE_NOTES*,TLS_*}.gz} $docdir/$src + mv $C/{US_PATENT_6321267.gz,html,$myname.gz} $docdir/$src + touch -r $S $docdir/$src convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + prune_symlink $P/usr/lib + prune_symlink $P/etc/rc.d/init.d + cat <<- "EOF" >> $P/install/doinst.sh + + postfix_config() { + mv etc/postfix/$1.new /tmp + if [ -f etc/postfix/$1 ] ; then + mv /tmp/$1.new etc/postfix/$1.dist + else + mv /tmp/$1.new etc/postfix/$1 + fi + } + + for i in access aliases canonical generic \ + header_checks main.cf master.cf relocated transport virtual ; do + postfix_config $i + done + mv etc/aliases.new /tmp + if [ -f etc/aliases ] ; then + mv /tmp/aliases.new etc/aliases.dist + else + mv /tmp/aliases.new etc/aliases + fi + EOF + cat <<- EOF | sed 's/^|//' >> $P/install/doinst.sh + |#%% begin initialize $pkg + |if ! grep -q submission /etc/services ; then + | cat <<- "EOF" >> /etc/services + | submission 587/tcp + | submission 587/udp + | EOF + |fi + |if ps ax | grep inetd | grep -vq grep ; then + | killall -HUP inetd + |fi + |postfix upgrade-configuration + |postfix set-permissions + |[ -f /etc/aliases.db ] || newaliases + |#%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/lib/sendmail + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/postfix + tar rvpf $pkg.tar -C $P etc/postfix + tar rvpf $pkg.tar -C $P etc/aliases.new + tar rvpf $pkg.tar -C $P etc/rc.d/init.d/postfix + tar rvpf $pkg.tar -C $P var/{lib,spool}/postfix 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/ppp/PlamoBuild.ppp-2.4.7 2016-09-28 16:41:13.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://download.samba.org/pub/ppp/ppp-2.4.7.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/ppp/plamo-ppp-scripts.tgz" +pkgbase=ppp +vers=2.4.7 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="Changes-2.3 FAQ PLUGINS README.* SETUP" ###################################################################### fscheck() { @@ -233,6 +234,14 @@ esac done done + cd $B + if [ "$arch" == "x86_64" ] ; then + sed -i '/DESTDIR/s@lib@&64@g' pppd/pathnames.h + find . -name "Makefile.linux" -exec sed -i 's@$(DESTDIR)/lib@&64@g' {} \; + fi + sed -i -e 's@#\(USE_PAM\)@\1@g' -e 's@#\(CBCP\)@\1@g' \ + -e 's@pppusers@tty@g' pppd/Makefile.linux + sed -i 's/@DESTDIR@/$(INSTROOT)&/g' pppd/plugins/pppol2tp/Makefile.linux for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -269,14 +278,24 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install INSTROOT=$P fi done + install $W/scripts/{p{on,off},pppsetup}.sh $P/usr/sbin + install -d $P/usr/bin + install $W/scripts/{pppselect.sh,xpppselect.py} $P/usr/bin + install -d $P/etc/ppp + install $W/scripts/ip-{up,down}.sh $P/etc/ppp + echo "lock" > $P/etc/ppp/options + install -d $P/etc/pam.d + install -m 644 pppd/ppp.pam $P/etc/pam.d/ppp touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/pppd/$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/pppd/$vers for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,9 +313,20 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -p $W/scripts/README.plamo.euc $docdir/$src + chown root.root $docdir/$src/README.plamo.euc + gzip_one $docdir/$src/README.plamo.euc + mv $docdir/$src/{README.plamo.euc,$myname}.gz $C + mv $C/{README.plamo.euc,$myname}.gz $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/pppd + tar rvpf $pkg.tar -C $P usr/include/pppd + tar rvpf $pkg.tar -C $P etc/ppp + tar rvpf $pkg.tar -C $P etc/pam.d/ppp + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/pptpd/PlamoBuild.pptpd-1.4.0 2016-09-28 16:04:12.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/poptop/pptpd-1.4.0.tar.gz" +pkgbase=pptpd +vers=1.4.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-bcrelay --with-libwrap" +DOCS="NEWS COPYING AUTHORS README.inetd README.slirp README.bcrelay + README.cvs TODO README.portslave README ChangeLog INSTALL + README.logwtmp" ###################################################################### fscheck() { @@ -233,6 +235,8 @@ esac done done + cd $B + sed -i 's@$(LIBDIR)@$(DESTDIR)&@g' plugins/Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -269,7 +273,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install DESTDIR=$P fi done touch $W/i.et @@ -277,6 +281,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/pptpd + touch -t `date '+%m%d0900'` $P/usr/$libdir/pptpd for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +301,10 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/pptpd + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/procmail/PlamoBuild.procmail-3.22 2016-09-29 01:04:34.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.ring.gr.jp/archives/net/mail/procmail/procmail-3.22.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/procmail/procmail-3.22-glibc-2.10.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/procmail/CVE-2014-3618.patch.gz" +pkgbase=procmail +vers=3.22 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" +patchfiles="procmail-3.22-glibc-2.10.patch.gz CVE-2014-3618.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="Artistic COPYING FAQ FEATURES HISTORY INSTALL KNOWN_BUGS README" ###################################################################### fscheck() { @@ -252,7 +254,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make LOCKINGTEST=/tmp fi done fi @@ -269,9 +271,12 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install BASENAME=$P/usr VISIBLE_BASENAME=/usr \ + MANDIR=$P/usr/share/man fi done + chgrp mail $P/usr/bin/{procmail,lockfile} + chmod +s $P/usr/bin/{procmail,lockfile} touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -297,6 +302,7 @@ 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` + 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 touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/rsync/PlamoBuild.rsync-3.1.2 2016-09-29 10:07:22.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz" +pkgbase=rsync +vers=3.1.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="TODO INSTALL COPYING rsyncsh.txt csprotocol.txt rsync3.txt + OLDNEWS NEWS README tech_report.tex" ###################################################################### fscheck() { @@ -297,6 +298,7 @@ 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` + 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 touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/setserial/PlamoBuild.setserial-2.17 2016-09-29 10:37:31.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://repository.timesys.com/buildsources/s/setserial/setserial-2.17/setserial-2.17.tar.gz" +pkgbase=setserial +vers=2.17 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README Documentation/byterunner-setup" ###################################################################### fscheck() { @@ -233,6 +233,17 @@ esac done done + cd $B + cp -p Makefile.in{,.orig} + cat <<- "EOF" | patch Makefile.in + 28a29 + > $(INSTALL_PROGRAM) -d $(DESTDIR)/bin + 31c32,33 + < $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8 + --- + > $(INSTALL_PROGRAM) -d $(DESTDIR)/usr/share/man/man8 + > $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/share/man/man8 + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -295,8 +306,8 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/socat/PlamoBuild.socat-1.7.3.1 2016-09-29 11:20:15.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.dest-unreach.org/socat/download/socat-1.7.3.1.tar.bz2" +pkgbase=socat +vers=1.7.3.1 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="FAQ DEVELOPMENT PORTING COPYING.OpenSSL FILES README.FIPS + README CHANGES SECURITY BUGREPORTS COPYING EXAMPLES" ###################################################################### fscheck() { --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/stunnel/PlamoBuild.stunnel-5.36 2016-09-29 13:04:18.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.stunnel.org/downloads/stunnel-5.36.tar.gz" +pkgbase=stunnel +vers=5.36 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README ChangeLog COPYING CREDITS INSTALL.FIPS COPYRIGHT.GPL + AUTHORS TODO INSTALL.WCE NEWS INSTALL.W32 INSTALL BUGS PORTS" ###################################################################### fscheck() { @@ -277,6 +278,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/stunnel + touch -t `date '+%m%d0900'` $P/usr/$libdir/stunnel for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,9 +297,21 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mkdir $docdir/$src/doc + mv $docdir/stunnel/stunnel{,.pl}.html $docdir/$src/doc + touch -t `date '+%m%d0900'` $docdir/$src/doc + mv $docdir/stunnel/examples $docdir/$src + mv $docdir/$src/{doc,{COPYRIGHT.GPL,AUTHORS,TODO,INSTALL.WCE,NEWS}.gz} $C + mv $docdir/$src/{examples,{INSTALL.W32,INSTALL,BUGS,PORTS,$myname}.gz} $C + mv $C/{doc,{COPYRIGHT.GPL,AUTHORS,TODO,INSTALL.WCE,NEWS}.gz} $docdir/$src + mv $C/{examples,{INSTALL.W32,INSTALL,BUGS,PORTS,$myname}.gz} $docdir/$src + touch -r $S $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` + tar rvpf $pkg.tar -C $P usr/$libdir/stunnel + tar rvpf $pkg.tar -C $P etc/stunnel + tar rvpf $pkg.tar -C $P var/lib/stunnel + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/w3m/PlamoBuild.w3m-0.5.3 2016-09-29 13:39:28.000000000 +0900 @@ -1,15 +1,23 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/w3m/w3m-0.5.3.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/network.txz/w3m/w3m-0.5.3-GC_fix.patch.gz" +pkgbase=w3m +vers=0.5.3 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="`echo doc-jp/{FAQ.html,HISTORY,MANUAL.html,README}` + `echo doc-jp/README.{SSL,cookie,cygwin,dict,func,img,keymap,m17n}` + `echo doc-jp/README.{mailcap,menu,migemo,mouse,pre_form,tab}` + `echo doc-jp/{STORY.html,keymap.{default,lynx},menu.{default,submenu}}` + doc-jp/README.passwd `echo doc/{FAQ.html,HISTORY,MANUAL.html,README}` + `echo doc/README.{cygwin,dict,func,img,m17n,mouse,pre_form,tab}` + `echo doc/{STORY.html,keymap.{default,lynx},menu.{default,submenu}}` + `echo doc/README.{cookie,passwd}` ABOUT-NLS ChangeLog NEWS README TODO" ###################################################################### fscheck() { @@ -233,6 +241,10 @@ esac done done + cd $B + sed -i '/w3mimgdisplay/s@$(LIBS)@& -lX11@g' Makefile.in + sed -i 's@file_handle@w3m_&@g' istream.[ch] + gunzip -c $W/w3m-0.5.3-GC_fix.patch.gz | patch -Np1 -i - for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,11 +284,14 @@ make install DESTDIR=$P fi done + install -d $mandir/ja_JP.eucJP + mv $mandir/ja/man1 $mandir/ja_JP.eucJP touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + gzip_dir $mandir/ja_JP.eucJP/man1 for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,7 +311,11 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/w3m + tar rvpf $pkg.tar -C $P usr/share/w3m + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` 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/ja_JP.eucJP/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/wget/PlamoBuild.wget-1.18 2016-09-29 14:09:55.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/wget/wget-1.18.tar.xz" +pkgbase=wget +vers=1.18 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL COPYING README MAILING-LIST ChangeLog ABOUT-NLS AUTHORS + NEWS" ###################################################################### fscheck() { @@ -296,6 +297,9 @@ 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/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P etc/wgetrc tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/wireless_tools/PlamoBuild.wireless_tools-29 2016-09-29 20:07:07.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz" +pkgbase=wireless_tools +vers=29 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=$pkgbase.$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL README README.fr COPYING PCMCIA.txt CHANGELOG.h + DISTRIBUTIONS.txt HOTPLUG.txt IFRENAME-VS-XXX.txt" ###################################################################### fscheck() { @@ -269,7 +270,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install PREFIX=$P/usr \ + INSTALL_LIB=$P/usr/$libdir INSTALL_MAN=$mandir fi done touch $W/i.et @@ -295,9 +297,14 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 `cd $P ; find usr/share/man/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/network.txz/wpa_supplicant/PlamoBuild.wpa_supplicant-2.5 2016-09-29 16:25:35.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://hostap.epitest.fi/releases/wpa_supplicant-2.5.tar.gz" +pkgbase=wpa_supplicant +vers=2.5 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="`echo wpa_supplicant/{README-HS20,eap_testing.txt,README-Windows.txt}` + `echo wpa_supplicant/{ChangeLog,README-WPS,todo.txt,README-P2P,README}` + CONTRIBUTIONS COPYING README" ###################################################################### fscheck() { @@ -233,8 +235,40 @@ esac done done + cd $B + cp -p wpa_supplicant/{defconfig,.config} + cat <<- "EOF" | patch wpa_supplicant/.config + 44c44 + < #CONFIG_LIBNL32=y + --- + > CONFIG_LIBNL32=y + 151c151 + < #CONFIG_WPS=y + --- + > CONFIG_WPS=y + 203c203 + < #CONFIG_READLINE=y + --- + > CONFIG_READLINE=y + 331c331 + < #CONFIG_CTRL_IFACE_DBUS=y + --- + > CONFIG_CTRL_IFACE_DBUS=y + 335c335 + < #CONFIG_CTRL_IFACE_DBUS_NEW=y + --- + > CONFIG_CTRL_IFACE_DBUS_NEW=y + 338c338 + < #CONFIG_CTRL_IFACE_DBUS_INTRO=y + --- + > CONFIG_CTRL_IFACE_DBUS_INTRO=y + 365c365 + < #CONFIG_DEBUG_FILE=y + --- + > CONFIG_DEBUG_FILE=y + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/wpa_supplicant if [ -f Makefile ] ; then make clean fi @@ -250,11 +284,12 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/wpa_supplicant if [ -f Makefile ] ; then make fi done + make wpa_gui-qt4 fi if [ $opt_package -eq 1 ] ; then if [ `id -u` -ne 0 ] ; then @@ -267,11 +302,90 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/wpa_supplicant if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P BINDIR=/usr/sbin fi done + wpadir=$B/wpa_supplicant + install $wpadir/wpa_gui-qt4/wpa_gui $P/usr/sbin + cat <<- "EOF" > $P/usr/sbin/wpa_action.sh + #!/bin/sh + + IFNAME=$1 + CMD=$2 + + if [ "$CMD" == "CONNECTED" ] ; then + dhclient $IFNAME + fi + + if [ "$CMD" == "DISCONNECTED" ] ; then + ifconfig $IFNAME down + fi + EOF + chmod 755 $P/usr/sbin/wpa_action.sh + install -d $P/usr/share/dbus-1/system-services + install -m 644 $wpadir/dbus/fi.*.service $P/usr/share/dbus-1/system-services + install -d $P/etc/dbus-1/system.d + install -m 644 $wpadir/dbus/*.conf $P/etc/dbus-1/system.d/wpa_supplicant.conf + install -d $mandir/man5 + install -m 644 $wpadir/doc/docbook/wpa_supplicant.conf.5 $mandir/man5 + install -d $mandir/man8 + install -m 644 $wpadir/doc/docbook/wpa_supplicant.8 $mandir/man8 + install -m 644 $wpadir/doc/docbook/wpa_cli.8 $mandir/man8 + install -m 644 $wpadir/doc/docbook/wpa_passphrase.8 $mandir/man8 + install -m 644 $wpadir/doc/docbook/wpa_priv.8 $mandir/man8 + install -m 644 $wpadir/doc/docbook/wpa_gui.8 $mandir/man8 + install -m 644 $wpadir/doc/docbook/wpa_background.8 $mandir/man8 + install -m 644 $wpadir/doc/docbook/eapol_test.8 $mandir/man8 + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/wpa_supplicant + #!/bin/sh + + IFNAME=`iwconfig 2> /dev/null | grep "IEEE 802.11" | awk '{print $1}'` + + start() { + if [ -x /usr/sbin/wpa_supplicant ] ; then + wpa_supplicant -B -c /etc/wpa_supplicant.conf -i $IFNAME + fi + if [ -x /usr/sbin/wpa_cli ] ; then + wpa_cli -a /usr/sbin/wpa_action.sh -B + fi + } + + stop() { + killall wpa_supplicant + } + + case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 3 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 + ;; + esac + exit 0 + EOF + chmod 644 $P/etc/rc.d/init.d/wpa_supplicant + cat <<- "EOF" | unexpand > $P/etc/wpa_supplicant.conf.new + ctrl_interface=/var/run/wpa_supplicant + ctrl_interface_group=wheel + network={ + ssid="replace SSID" + key_mgmt=WPA-PSK + psk="very secret passphrase" + } + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +408,30 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/wpa_supplicant/examples $docdir/$src/wpa_supplicant + chmod -R g-w $docdir/$src/wpa_supplicant/examples + chown -R root.root $docdir/$src/wpa_supplicant/examples + touch -r $S $docdir/$src/wpa_supplicant 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` + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + mv etc/wpa_supplicant.conf.new /tmp + if [ -f etc/wpa_supplicant.conf ] ; then + mv /tmp/wpa_supplicant.conf.new etc/wpa_supplicant.conf.dist + else + mv /tmp/wpa_supplicant.conf.new etc/wpa_supplicant.conf + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/dbus-1/system-services | tail -n+2` + tar rvpf $pkg.tar -C $P etc/dbus-1/system.d/wpa_supplicant.conf + tar rvpf $pkg.tar -C $P etc/rc.d/init.d/wpa_supplicant + tar rvpf $pkg.tar -C $P etc/wpa_supplicant.conf.new + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/nfs.txz/libevent/PlamoBuild.libevent-2.0.22 2016-10-05 11:35:59.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/levent/libevent-2.0.22-stable.tar.gz" +pkgbase=libevent +vers=2.0.22 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=$pkgbase-$vers-stable patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="whatsnew-2.0.txt README ChangeLog LICENSE" ###################################################################### fscheck() { @@ -296,8 +296,11 @@ 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` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/nfs.txz/libnfsidmap/PlamoBuild.libnfsidmap-0.25 2016-10-05 14:33:34.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/libnfsidmap-0.25.tar.gz" +pkgbase=libnfsidmap +vers=0.25 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL README ChangeLog AUTHORS NEWS BUILDING_FROM_CVS COPYING" ###################################################################### fscheck() { @@ -244,7 +244,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-pluginpath=/usr/$libdir/libnfsidmap fi done fi @@ -277,6 +278,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/libnfsidmap + touch -t `date '+%m%d0900'` $P/usr/$libdir/libnfsidmap for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +298,13 @@ ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libnfsidmap*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 `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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/nfs.txz/nfs_utils/PlamoBuild.nfs_utils-1.3.4 2016-10-06 08:07:19.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/utils/nfs-utils/1.3.4/nfs-utils-1.3.4.tar.xz + https://raw.githubusercontent.com/pld-linux/nfs-utils/master/nfs-utils-heimdal.patch" +pkgbase=nfs_utils +vers=1.3.4 arch=`uname -m` build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +src=nfs-utils-$vers +patchfiles="nfs-utils-heimdal.patch" +OPT_CONFIG="--disable-nfsv4 --disable-gss --with-krb5=/usr/heimdal" +DOCS="README NEWS INSTALL COPYING" ###################################################################### fscheck() { @@ -233,6 +234,14 @@ esac done done + cd $B + cp -p configure{,.orig} + cat <<- "EOF" | patch configure + 19966c19966 + < -f $dir/lib/libroken.a; then + --- + > \( -f $dir/lib/libroken.so -o -f $dir/lib64/libroken.so \); then + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +281,39 @@ make install DESTDIR=$P fi done + cat <<- "EOF" > $P/sbin/nfs4_setup.sh + #!/bin/sh + # + # Simple NFSv4 setup scripts for NFS mount by hands + # If you don't invoke rpc.idmapd, NFSv4's UID/username mapping + # function doesn't work and cannot chown files on NFS + + modprobe sunrpc + mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs + /usr/bin/rpcbind + /usr/sbin/rpc.nfsd 4 + /usr/sbin/rpc.mountd + /usr/sbin/rpc.idmapd + /usr/sbin/rpc.statd + EOF + chmod 755 $P/sbin/nfs4_setup.sh + mv $P/usr/sbin/{sm-notify,rpc.statd} $C + mv $C/{sm-notify,rpc.statd} $P/usr/sbin + ln -s /bin/ture $P/usr/sbin/rpc.gssd + mkdir -m 700 $P/var/lib/nfs/{rpc_pipefs,v4recovery} + chown nobody $P/var/lib/nfs/{rpc_pipefs,v4recovery} + mkdir $P/etc + cat <<- "EOF" > $P/etc/idmapd.conf + [General] + Verbosity = 1 + Pipefs-Directory = /var/lib/nfs/rpc_pipefs + Domain = localdomain + + [Mapping] + + Nobody-User = nobody + Nobody-Group = nogroup + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +337,29 @@ ( 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` + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + EOF + cat <<- "EOF" | unexpand >> $P/install/doinst.sh + if [ -z `grep "^nfs" etc/services` ] ; then + echo "adding nfs service into /etc/services" + cat <<- "EOF" >> etc/services + nfs 2049/tcp + nfs 2049/udp + EOF + fi + #%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P var/lib/nfs + tar rvpf $pkg.tar -C $P etc/idmapd.conf + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/nfs.txz/rpcbind/PlamoBuild.rpcbind-0.2.1 2016-10-06 08:13:20.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/rpcbind/rpcbind-0.2.1.tar.bz2" +pkgbase=rpcbind +vers=0.2.1 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README NEWS INSTALL ChangeLog COPYING AUTHORS" ###################################################################### fscheck() { @@ -296,7 +296,7 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/nilfs_utils/PlamoBuild.nilfs_utils-2.2.5 2016-10-07 08:05:02.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://nilfs.sourceforge.net/download/nilfs-utils-2.2.5.tar.bz2" +pkgbase=nilfs_utils +vers=2.2.5 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=nilfs-utils-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--without-selinux" +DOCS="AUTHORS README COPYING NEWS ChangeLog INSTALL" ###################################################################### fscheck() { @@ -295,9 +295,17 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P etc/nilfs_cleanerd.conf 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/open_iscsi/PlamoBuild.open_iscsi-2.0.873 2016-10-06 11:28:10.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://fossies.org/linux/misc/open-iscsi-2.0-873.tar.gz" +pkgbase=open_iscsi +vers=2.0_873 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P5 +src=open-iscsi-2.0-873 patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING Changelog README THANKS TODO" ###################################################################### fscheck() { @@ -233,6 +233,29 @@ esac done done + cd $B + cp -p Makefile Makefile.orig + cat <<- "EOF" | patch Makefile + 118c118 + < if [ ! -f /etc/iscsi/iscsid.conf ]; then \ + --- + > if true || [ ! -f /etc/iscsi/iscsid.conf ]; then \ + 131c131 + < if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then \ + --- + > if true || [ ! -f /etc/iscsi/initiatorname.iscsi ]; then \ + EOF + cp -p usr/Makefile{,.orig} + cat <<- "EOF" | patch usr/Makefile + 57c57 + < $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns + --- + > $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns -lslp + 60c60 + < $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns + --- + > $(CC) $(CFLAGS) $^ -o $@ -L../utils/open-isns -lisns -lslp + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,6 +295,52 @@ make install DESTDIR=$P fi done + sed -i 's/:.*/:000000000000/' $P/etc/iscsi/initiatorname.iscsi + for i in iscsid.conf initiatorname.iscsi ; do + mv $P/etc/iscsi/$i $C/$i.new + done + mv $P/etc/iscsi/ifaces $C + for i in iscsid.conf initiatorname.iscsi ; do + mv $C/$i.new $P/etc/iscsi + done + mv $C/ifaces $P/etc/iscsi + install -d $P/etc/rc.d/init.d + cat <<- "EOF" > $P/etc/rc.d/init.d/open-iscsi + #!/bin/sh + + start() + { + iscsid + iscsiadm -m node -L automatic + } + + stop() + { + sync + iscsiadm -m node -U all + iscsiadm -k 0 + modprobe -r iscsi_tcp ib_iser 2> /dev/null + } + + case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 + ;; + esac + exit 0 + EOF + chmod 755 $P/etc/rc.d/init.d/open-iscsi touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +364,31 @@ ( 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` + install -d $P/install + cat <<- "EOF" > $P/install/doinst.sh + mv etc/iscsi/iscsid.conf.new /tmp + if [ -f etc/iscsi/iscsid.conf ] ; then + mv /tmp/iscsid.conf.new etc/iscsi/iscsid.conf.dist + else + mv /tmp/iscsid.conf.new etc/iscsi/iscsid.conf + fi + EOF + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + # generate iSCSI initiator IQN + rm /etc/iscsi/initiatorname.iscsi.new + if [ ! -f /etc/iscsi/initiatorname.iscsi ] ; then + echo "InitiatorName=\`iscsi-iname\`" > /etc/iscsi/initiatorname.iscsi + fi + #%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P etc/iscsi + tar rvpf $pkg.tar -C $P etc/rc.d/init.d/open-iscsi + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/openslp/PlamoBuild.openslp-1.2.1 2016-10-06 12:56:48.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/openslp/openslp-1.2.1.tar.gz" +pkgbase=openslp +vers=1.2.1 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="FAQ NEWS README THANKS README.W32 AUTHORS INSTALL ChangeLog + COPYING" ###################################################################### fscheck() { @@ -269,7 +270,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P DOC_DIR=/usr/share/doc/openslp fi done touch $W/i.et @@ -294,10 +295,20 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/openslp $docdir/$src/doc + mv $docdir/$src/{doc,{NEWS,README,THANKS,README.W32,AUTHORS}.gz} $C + mv $docdir/$src/{INSTALL,ChangeLog,$myname}.gz $C + mv $C/{doc,{NEWS,README,THANKS,README.W32,AUTHORS}.gz} $docdir/$src + mv $C/{INSTALL,ChangeLog,$myname}.gz $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/pcre/PlamoBuild.pcre-8.39 2016-10-08 10:54:14.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/pcre/pcre-8.39.tar.bz2" +pkgbase=pcre +vers=8.39 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-pcre16 --enable-pcre32 --enable-unicode-properties + --enable-pcregrep-libz --enable-pcregrep-libbz2 + --enable-pcretest-libreadline" +DOCS="LICENCE README COPYING INSTALL ChangeLog HACKING AUTHORS + NON-AUTOTOOLS-BUILD NEWS NON-UNIX-USE" ###################################################################### fscheck() { @@ -272,6 +275,7 @@ make install DESTDIR=$P fi done + ln -s libpcre.so.1.2.7 $P/usr/$libdir/libpcre.so.0 touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +298,21 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mkdir $docdir/$src/doc + mv $docdir/pcre/{pcre{,-config,grep,test}.txt,html} $docdir/$src/doc + touch -t `date '+%m%d0900'` $docdir/$src/doc + mv $docdir/$src/{doc,{NON-UNIX-USE,$myname}.gz} $C + mv $C/{doc,{NON-UNIX-USE,$myname}.gz} $docdir/$src + touch -r $S $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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/perl/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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/popt/PlamoBuild.popt-1.16 2016-10-12 10:07:27.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://rpm5.org/files/popt/popt-1.16.tar.gz" +pkgbase=popt +vers=1.16 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING README ABOUT-NLS CHANGES" ###################################################################### fscheck() { @@ -269,7 +269,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P pkgconfigdir=/usr/$libdir/pkgconfig fi done touch $W/i.et @@ -295,9 +295,13 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + 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 + 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/psmisc/PlamoBuild.psmisc-22.21 2016-10-12 10:34:01.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/psmisc/psmisc-22.21.tar.gz" +pkgbase=psmisc +vers=22.21 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README AUTHORS INSTALL NEWS COPYING ABOUT-NLS ChangeLog" ###################################################################### fscheck() { @@ -272,6 +272,8 @@ make install DESTDIR=$P fi done + install -d $P/bin + mv $P/usr/bin/{killall,prtstat,fuser,peekfd} $P/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,9 +297,12 @@ ( 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 cvpf $pkg.tar -C $P `cd $P ; find bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/recode/PlamoBuild.recode-3.6 2016-07-14 20:50:25.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://mirrors.tds.net/gentoo/distfiles/recode-3.6.tar.gz + http://ftp.osuosl.org/pub/blfs/svn/r/recode-3.6-fixes-2.patch" +pkgbase=recode +vers=3.6 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="recode-3.6-fixes-2.patch" +OPT_CONFIG="--without-included-gettext" +DOCS="README ABOUT-NLS AUTHORS BACKLOG COPYING ChangeLog INSTALL + NEWS THANKS TODO COPYING-LIB" ###################################################################### fscheck() { @@ -233,6 +235,8 @@ esac done done + cd $B + cp -p /usr/share/libtool/build-aux/config.{guess,sub} . for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,8 +300,13 @@ 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/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/rpm2targz/PlamoBuild.rpm2targz-git_20120517 2016-10-14 07:46:27.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://anongit.gentoo.org/git/proj/rpm2targz.git + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/rpm2targz/rpm2cpio + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/rpm2targz/gitlog2changelog.py" +pkgbase=rpm2targz +vers=git_20120517 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="rpm2targz.README rpm2targz.README.Gentoo" ###################################################################### fscheck() { @@ -186,35 +188,47 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; else + ( cd `basename ${i##*/} .git` ; git pull origin master ) ; fi ;; + *) + if [ ! -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 + if wget --spider $j.$sig ; then + case ${i##*.} in + gz) gunzip -c ${i##*/} > ${j##*/} ;; + bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; + xz) unxz -c ${i##*/} > ${j##*/} ;; + esac + touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break + fi + done + if [ -f ${i##*/}.$sig ] ; then + case $sig in + asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; + sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; + *) $sig -c ${i##*/}.$sig ;; esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break + if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi fi - fi + ;; + esac done + if [ ! -x gitlog2changelog.py ] ; then + chmod 755 gitlog2changelog.py + fi for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; gz|tgz) tar xvpzf ${i##*/} ;; bz2|tbz) tar xvpjf ${i##*/} ;; xz|txz) tar xvpJf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + git checkout origin/master ; git reset --hard e47270a + git set-file-times ; TZ=UTC ../gitlog2changelog.py) ;; esac done fi @@ -272,6 +286,7 @@ make install DESTDIR=$P fi done + install $W/rpm2cpio $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -294,10 +309,11 @@ 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` 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/ruby/PlamoBuild.ruby-2.2.3 2016-10-18 06:53:57.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.xz" +pkgbase=ruby +vers=2.2.3 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-shared" +DOCS="README.md ChangeLog README.ja.md COPYING.ja KNOWNBUGS.rb COPYING + LEGAL BSDL README.EXT NEWS README.EXT.ja CONTRIBUTING.md GPL" ###################################################################### fscheck() { @@ -272,11 +273,29 @@ make install DESTDIR=$P fi done + touch $P/usr/{bin/ruby,$libdir/libruby*} + find $P/usr/$libdir/ruby/${vers%.*}.0 -type f -exec touch {} \; + touch $P/usr/$libdir/pkgconfig/* + triplet=$arch-linux`[ $arch == armv7l ] && echo -eabi` + touch $P/usr/include/ruby-${vers%.*}.0/{ruby/digest,$triplet/ruby/*}.h + find $P/usr/share/ri -type f -exec touch {} \; + install -d $P/etc/profile.d + cat <<- "EOF" > $P/etc/profile.d/ruby.sh + export SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt + EOF + cat <<- "EOF" > $P/etc/profile.d/ruby.csh + setenv SSL_CERT_FILE /etc/ssl/certs/ca-bundle.crt + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for i in `find $P/usr/$libdir/ruby/${vers%.*}.0/$triplet -name "*.so" \ + | sed 's@\(.*\)/.*@\1@' | sort | uniq` ; 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,8 +315,15 @@ 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/$libdir -name libruby*` + tar rvpf $pkg.tar -C $P usr/$libdir/ruby + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/ruby-${vers%.*}.0 + tar rvpf $pkg.tar -C $P `cd $P ; find etc/profile.d | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/ri tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/screen/PlamoBuild.screen-4.4.0 2016-10-15 00:06:07.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/screen/screen-4.4.0.tar.gz" +pkgbase=screen +vers=4.4.0 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="FAQ NEWS.3.9 COPYING NEWS.3.5 NEWS.3.7 HACKING NEWS NEWS.3.6 + ChangeLog INSTALL TODO README" ###################################################################### fscheck() { @@ -233,6 +234,14 @@ esac done done + cp -p Makefile.in{,.orig} + cat <<- "EOF" | patch Makefile.in + 99,102d98 + < -if [ -d /usr/lib/terminfo ]; then \ + < PATH="$$PATH:/usr/5bin" tic ${srcdir}/terminfo/screeninfo.src; \ + < chmod 644 /usr/lib/terminfo/s/screen*; \ + < fi + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -295,9 +304,24 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + cat <<- "EOF" | sed 's/^|//' > /tmp/screeninfo.src + EOF + cat $B/terminfo/screeninfo.src | sed 's@^@\t|@' >> $P/install/doinst.sh + cat <<- "EOF" | sed 's/^|//' >> $P/install/doinst.sh + | EOF + |tic -s /tmp/screeninfo.src + |rm /tmp/screeninfo.src + |#%% end + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/screen + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/sg3_utils/PlamoBuild.sg3_utils-1.42 2016-10-16 06:50:07.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://sg.danny.cz/sg/p/sg3_utils-1.42.tar.xz" +pkgbase=sg3_utils +vers=1.42 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS README README.sg_start README.iscsi README.solaris CREDITS + ChangeLog BSD_LICENSE COPYING README.win32 AUTHORS COVERAGE + README.freebsd INSTALL README.tru64" ###################################################################### fscheck() { @@ -296,8 +298,11 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/scsi + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/sharutils/PlamoBuild.sharutils-4.15.2 2016-10-15 07:05:45.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/sharutils/sharutils-4.15.2.tar.gz" +pkgbase=sharutils +vers=4.15.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL ChangeLog COPYING ABOUT-NLS NEWS README TODO THANKS + AUTHORS" ###################################################################### fscheck() { @@ -296,7 +297,10 @@ 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/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` 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/man5 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/sqlite/PlamoBuild.sqlite-3.15.0 2016-10-16 06:53:06.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://sqlite.org/2016/sqlite-autoconf-3150000.tar.gz" +pkgbase=sqlite +vers=3.15.0 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase-autoconf-3150000 patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL README.txt" ###################################################################### fscheck() { @@ -252,7 +252,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA \ + -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE -g -O2" fi done fi @@ -296,8 +297,12 @@ 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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/squashfs/PlamoBuild.squashfs-4.3 2016-10-16 06:59:18.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/squashfs/squashfs4.3.tar.gz" +pkgbase=squashfs +vers=4.3 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ACKNOWLEDGEMENTS README README-4.3 pseudo-file.example DONATIONS + `echo OLD-READMEs/README-{3.{0,3,2},2.0,3.1,4.0,2.1,4.2,AMD64,4.1}` + COPYING INSTALL PERFORMANCE.README CHANGES" ###################################################################### fscheck() { @@ -233,8 +235,32 @@ esac done done + cd $B/squashfs-tools + cp -p Makefile Makefile.orig + cat <<- "EOF" | patch Makefile + 29c29 + < #XZ_SUPPORT = 1 + --- + > XZ_SUPPORT = 1 + 40c40 + < #LZO_SUPPORT = 1 + --- + > LZO_SUPPORT = 1 + 111c111 + < INSTALL_DIR = /usr/local/bin + --- + > INSTALL_DIR = /usr/bin + 303,305c303,305 + < mkdir -p $(INSTALL_DIR) + < cp mksquashfs $(INSTALL_DIR) + < cp unsquashfs $(INSTALL_DIR) + --- + > mkdir -p $(DESTDIR)$(INSTALL_DIR) + > cp mksquashfs $(DESTDIR)$(INSTALL_DIR) + > cp unsquashfs $(DESTDIR)$(INSTALL_DIR) + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/squashfs-tools if [ -f Makefile ] ; then make clean fi @@ -250,7 +276,7 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/squashfs-tools if [ -f Makefile ] ; then make fi @@ -267,7 +293,7 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/squashfs-tools if [ -f Makefile ] ; then make install DESTDIR=$P fi @@ -296,7 +322,6 @@ 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` 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/sysstat/PlamoBuild.sysstat-11.5.1 2016-10-16 07:01:32.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://pagesperso-orange.fr/sebastien.godard/sysstat-11.5.1.tar.bz2" +pkgbase=sysstat +vers=11.5.1 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--docdir=/usr/share/doc/sysstat" +DOCS="FAQ COPYING README.md CHANGES INSTALL CREDITS" ###################################################################### fscheck() { @@ -244,7 +244,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + sa_lib_dir=/usr/$libdir/sa fi done fi @@ -269,7 +270,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make -i install DESTDIR=$P fi done touch $W/i.et @@ -296,7 +297,13 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/sa + tar rvpf $pkg.tar -C $P var/log/sa + tar rvpf $pkg.tar -C $P `cd $P ; find etc/sysconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` 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/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/tcl.txz/tcl/PlamoBuild.tcl-8.6.6 2016-10-18 09:13:35.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz" +pkgbase=tcl +vers=8.6.6 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-threads" +DOCS="ChangeLog.2004 ChangeLog.2002 ChangeLog.2005 ChangeLog.2008 + ChangeLog.1999 changes ChangeLog license.terms ChangeLog.2007 + ChangeLog.2003 README ChangeLog.2000 ChangeLog.2001" ###################################################################### fscheck() { @@ -233,8 +235,28 @@ esac done done + cd $B + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + cat <<- "EOF" | patch unix/configure + 18923c18923 + < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + --- + > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' + 19053,19054c19053,19054 + < elif test "$prefix/lib" != "$libdir"; then + < TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > elif test "$prefix/lib64" != "$libdir"; then + > TCL_PACKAGE_PATH="${libdir} ${prefix}/lib64 ${TCL_PACKAGE_PATH}" + 19056c19056 + < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" + EOF + fi for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then make clean fi @@ -250,7 +272,7 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then make fi @@ -267,16 +289,23 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P install-private-headers fi done + ln -s tclsh8.6 $P/usr/bin/tclsh + mv $P/usr/bin/{tclsh8.6,sqlite3_analyzer,tclsh} $C + mv $C/{tclsh8.6,sqlite3_analyzer,tclsh} $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + for i in `find $P/usr/$libdir -mindepth 2 -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,8 +325,15 @@ 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/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` 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 `cd $P ; find usr/share/man/mann | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/tcl.txz/expect/PlamoBuild.expect-5.45 2016-10-18 09:34:12.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/expect/expect5.45.tar.gz" +pkgbase=expect +vers=5.45 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P3 +src=$pkgbase$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL NEWS ChangeLog README FAQ license.terms HISTORY" ###################################################################### fscheck() { @@ -277,6 +277,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/expect$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/expect$vers for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,7 +298,10 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/expect$vers + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/tcl.txz/tclx/PlamoBuild.tclx-8.4.1 2016-10-18 09:58:54.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/tclx/tclx8.4.1.tar.bz2 + http://ftp.slackware.com/pub/slackware/slackware-14.0/source/tcl/tclx/tclx-8.4.gcc4.diff.gz + http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz" +pkgbase=tclx +vers=8.4.1 arch=`uname -m` build=P1 -src=$pkgbase-$vers -patchfiles="" +src=${pkgbase}8.4 +patchfiles="tclx-8.4.gcc4.diff.gz" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog README license.terms" ###################################################################### fscheck() { @@ -233,6 +235,28 @@ esac done done + cd $W/tcl8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + cat <<- "EOF" | patch unix/configure + 18923c18923 + < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + --- + > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' + 19053,19054c19053,19054 + < elif test "$prefix/lib" != "$libdir"; then + < TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > elif test "$prefix/lib64" != "$libdir"; then + > TCL_PACKAGE_PATH="${libdir} ${prefix}/lib64 ${TCL_PACKAGE_PATH}" + 19056c19056 + < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" + EOF + fi + cd $W/tcl8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -277,6 +301,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/tclx8.4 + touch -t `date '+%m%d0900'` $P/usr/$libdir/tclx8.4 for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +321,9 @@ ( 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` + tar cvpf $pkg.tar -C $P usr/$libdir/tclx8.4 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/mann | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/tcl.txz/itcl/PlamoBuild.itcl-4.0.5 2016-10-18 10:38:51.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/incrtcl/itcl4.0.5.tar.gz + http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz" +pkgbase=itcl +vers=4.0.5 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="releasenotes.txt ChangeLog TODO license.terms README" ###################################################################### fscheck() { @@ -233,6 +234,28 @@ esac done done + cd $W/tcl8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + cat <<- "EOF" | patch unix/configure + 18923c18923 + < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + --- + > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' + 19053,19054c19053,19054 + < elif test "$prefix/lib" != "$libdir"; then + < TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > elif test "$prefix/lib64" != "$libdir"; then + > TCL_PACKAGE_PATH="${libdir} ${prefix}/lib64 ${TCL_PACKAGE_PATH}" + 19056c19056 + < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" + EOF + fi + cd $W/tcl8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -277,6 +300,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/itcl$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/itcl$vers for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +320,9 @@ ( 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` + tar cvpf $pkg.tar -C $P usr/$libdir/itcl$vers + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/mann | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/texinfo/PlamoBuild.texinfo-6.3 2016-10-18 11:01:32.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/texinfo/texinfo-6.3.tar.xz" +pkgbase=texinfo +vers=6.3 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README-hacking ABOUT-NLS README COPYING AUTHORS NEWS + INSTALL.generic INSTALL ChangeLog ChangeLog.46 TODO" ###################################################################### fscheck() { @@ -277,6 +278,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/texinfo + touch -t `date '+%m%d0900'` $P/usr/$libdir/texinfo for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +299,14 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/texinfo + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P usr/share/texinfo + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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/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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/time/PlamoBuild.time-1.7 2016-10-18 11:28:14.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/time/time-1.7.tar.gz" +pkgbase=time +vers=1.7 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README AUTHORS COPYING ChangeLog INSTALL NEWS" ###################################################################### fscheck() { @@ -233,6 +233,9 @@ esac done done + cd $B + cp -p Makefile.in{,.orig} + sed -i 's@$(bindir)@$(DESTDIR)&@;s@$(infodir)@$(DESTDIR)&@' Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -296,7 +299,7 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/tree/PlamoBuild.tree-1.7.0 2016-10-18 11:21:37.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://mama.indstate.edu/linux/tree/tree-1.7.0.tgz" +pkgbase=tree +vers=1.7.0 arch=`uname -m` build=P1 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CHANGES INSTALL LICENSE README TODO" ###################################################################### fscheck() { @@ -233,6 +233,9 @@ esac done done + cd $B + cp -p Makefile{,.orig} + sed -i 's@$(BINDIR)@$(DESTDIR)&@;s@$(MANDIR)@$(DESTDIR)&@' Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -269,7 +272,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P MANDIR=/usr/share/man/man1 fi done touch $W/i.et @@ -294,6 +297,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` --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/unzip/PlamoBuild.unzip-60 2016-10-21 10:57:49.000000000 +0900 @@ -1,15 +1,25 @@ #!/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 ###################################################################### fscheck() { @@ -235,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 @@ -251,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 @@ -268,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 @@ -288,12 +298,27 @@ if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname - gzip_one $docdir/$src/$myname + tmpl=${myname%%.*}-template-$template + if [ -f ../admin/$tmpl ] ; then + cp -p ../admin/$tmpl $docdir/$src + else + ( cd $docdir/$src + curl -Rs -o $tmpl $tmplurl/${tmpl/${myname%%.*}/PlamoBuild} ) + fi + spec=${myname%%.*}-spec + ( cd $docdir/$src ; diff -u $tmpl $myname > $spec ) + touch -t `date '+%m%d0900'` $docdir/$src/$spec + gzip $docdir/$src/{$myname,$spec} + rm $docdir/$src/$tmpl + mv $docdir/$src/{$myname,$spec}.gz $C + mv $C/{$myname,$spec}.gz $docdir/$src else ln $docdir/$src/$myname.gz $docdir/${src[$i]} + ln $docdir/$src/$spec.gz $docdir/${src[$i]} 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` --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/usbutils/PlamoBuild.usbutils-0.86 2016-10-21 11:00:11.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://repository.timesys.com/buildsources/u/usbutils/usbutils-0.86/usbutils-0.86.tar.gz" +pkgbase=usbutils +vers=0.86 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README AUTHORS COPYING ChangeLog INSTALL NEWS" +template=20161020 +tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### fscheck() { @@ -252,7 +254,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make datadir=/usr/$libdir fi done fi @@ -269,7 +271,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P datadir=/usr/$libdir fi done touch $W/i.et @@ -288,15 +290,33 @@ if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname - gzip_one $docdir/$src/$myname + tmpl=${myname%%.*}-template-$template + if [ -f ../admin/$tmpl ] ; then + cp -p ../admin/$tmpl $docdir/$src + else + ( cd $docdir/$src + curl -Rs -o $tmpl $tmplurl/${tmpl/${myname%%.*}/PlamoBuild} ) + fi + spec=${myname%%.*}-spec + ( cd $docdir/$src ; diff -u $tmpl $myname > $spec ) + touch -t `date '+%m%d0900'` $docdir/$src/$spec + gzip $docdir/$src/{$myname,$spec} + rm $docdir/$src/$tmpl + mv $docdir/$src/{$myname,$spec}.gz $C + mv $C/{$myname,$spec}.gz $docdir/$src else ln $docdir/$src/$myname.gz $docdir/${src[$i]} + ln $docdir/$src/$spec.gz $docdir/${src[$i]} fi ( 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/sbin | 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 `cd $P ; find usr/share/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/utempter/PlamoBuild.utempter-0.5.5 2016-10-21 11:02:03.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://mirror.its.dal.ca/freebsd/ports/local-distfiles/lofi/utempter-0.5.5.tar.gz" +pkgbase=utempter +vers=0.5.5 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING" +template=20161020 +tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### fscheck() { @@ -269,9 +271,11 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install RPM_BUILD_ROOT=$P LIBDIR=usr/$libdir fi done + chgrp utmp $P/usr/sbin/utempter + chmod 2755 $P/usr/sbin/utempter touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -288,16 +292,32 @@ if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname - gzip_one $docdir/$src/$myname + tmpl=${myname%%.*}-template-$template + if [ -f ../admin/$tmpl ] ; then + cp -p ../admin/$tmpl $docdir/$src + else + ( cd $docdir/$src + curl -Rs -o $tmpl $tmplurl/${tmpl/${myname%%.*}/PlamoBuild} ) + fi + spec=${myname%%.*}-spec + ( cd $docdir/$src ; diff -u $tmpl $myname > $spec ) + touch -t `date '+%m%d0900'` $docdir/$src/$spec + gzip $docdir/$src/{$myname,$spec} + rm $docdir/$src/$tmpl + mv $docdir/$src/{$myname,$spec}.gz $C + mv $C/{$myname,$spec}.gz $docdir/$src else ln $docdir/$src/$myname.gz $docdir/${src[$i]} + ln $docdir/$src/$spec.gz $docdir/${src[$i]} fi ( 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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/which/PlamoBuild.which-2.20 2016-10-21 11:03:02.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/which/which-2.20.tar.gz" +pkgbase=which +vers=2.20 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="EXAMPLES INSTALL README README.alias AUTHORS NEWS COPYING" +template=20161020 +tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### fscheck() { @@ -288,14 +290,29 @@ if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname - gzip_one $docdir/$src/$myname + tmpl=${myname%%.*}-template-$template + if [ -f ../admin/$tmpl ] ; then + cp -p ../admin/$tmpl $docdir/$src + else + ( cd $docdir/$src + curl -Rs -o $tmpl $tmplurl/${tmpl/${myname%%.*}/PlamoBuild} ) + fi + spec=${myname%%.*}-spec + ( cd $docdir/$src ; diff -u $tmpl $myname > $spec ) + touch -t `date '+%m%d0900'` $docdir/$src/$spec + gzip $docdir/$src/{$myname,$spec} + rm $docdir/$src/$tmpl + mv $docdir/$src/{$myname,$spec}.gz $C + mv $C/{$myname,$spec}.gz $docdir/$src else ln $docdir/$src/$myname.gz $docdir/${src[$i]} + ln $docdir/$src/$spec.gz $docdir/${src[$i]} fi ( 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/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/yaml/PlamoBuild.yaml-0.1.6 2016-10-21 11:03:52.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/pub/plamo/01_minimum/yaml/CVE-2014-9130.patch.gz" +pkgbase=yaml +vers=0.1.6 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers -patchfiles="" +patchfiles="CVE-2014-9130.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="LICENSE README" +template=20161020 +tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### fscheck() { @@ -288,16 +291,32 @@ if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname - gzip_one $docdir/$src/$myname + tmpl=${myname%%.*}-template-$template + if [ -f ../admin/$tmpl ] ; then + cp -p ../admin/$tmpl $docdir/$src + else + ( cd $docdir/$src + curl -Rs -o $tmpl $tmplurl/${tmpl/${myname%%.*}/PlamoBuild} ) + fi + spec=${myname%%.*}-spec + ( cd $docdir/$src ; diff -u $tmpl $myname > $spec ) + touch -t `date '+%m%d0900'` $docdir/$src/$spec + gzip $docdir/$src/{$myname,$spec} + rm $docdir/$src/$tmpl + mv $docdir/$src/{$myname,$spec}.gz $C + mv $C/{$myname,$spec}.gz $docdir/$src else ln $docdir/$src/$myname.gz $docdir/${src[$i]} + ln $docdir/$src/$spec.gz $docdir/${src[$i]} fi ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/zip/PlamoBuild.zip-30 2016-10-21 11:04:47.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/infozip/zip30.tar.gz" +pkgbase=zip +vers=30 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=$pkgbase$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="Betas_Readme.txt BUGS CHANGES INSTALL LICENSE README README.CR + TODO USexport.msg WHATSNEW WHERE zip30*.ann" +template=20161020 +tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### fscheck() { @@ -235,8 +238,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 @@ -251,8 +254,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 generic fi done fi @@ -268,8 +271,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 @@ -288,12 +291,27 @@ if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname - gzip_one $docdir/$src/$myname + tmpl=${myname%%.*}-template-$template + if [ -f ../admin/$tmpl ] ; then + cp -p ../admin/$tmpl $docdir/$src + else + ( cd $docdir/$src + curl -Rs -o $tmpl $tmplurl/${tmpl/${myname%%.*}/PlamoBuild} ) + fi + spec=${myname%%.*}-spec + ( cd $docdir/$src ; diff -u $tmpl $myname > $spec ) + touch -t `date '+%m%d0900'` $docdir/$src/$spec + gzip $docdir/$src/{$myname,$spec} + rm $docdir/$src/$tmpl + mv $docdir/$src/{$myname,$spec}.gz $C + mv $C/{$myname,$spec}.gz $docdir/$src else ln $docdir/$src/$myname.gz $docdir/${src[$i]} + ln $docdir/$src/$spec.gz $docdir/${src[$i]} 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` --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/zsh/PlamoBuild.zsh-5.2 2016-10-21 11:06:07.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/zsh/zsh-5.2.tar.xz" +pkgbase=zsh +vers=5.2 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-multibyte" +DOCS="ChangeLog META-FAQ MACHINES INSTALL LICENCE NEWS FEATURES README" +template=20161020 +tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### fscheck() { @@ -277,6 +279,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/zsh/$vers/zsh + touch -t `date '+%m%d0900'` $P/usr/$libdir/zsh/$vers/zsh for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -288,16 +292,35 @@ if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname - gzip_one $docdir/$src/$myname + tmpl=${myname%%.*}-template-$template + if [ -f ../admin/$tmpl ] ; then + cp -p ../admin/$tmpl $docdir/$src + else + ( cd $docdir/$src + curl -Rs -o $tmpl $tmplurl/${tmpl/${myname%%.*}/PlamoBuild} ) + fi + spec=${myname%%.*}-spec + ( cd $docdir/$src ; diff -u $tmpl $myname > $spec ) + touch -t `date '+%m%d0900'` $docdir/$src/$spec + gzip $docdir/$src/{$myname,$spec} + rm $docdir/$src/$tmpl + mv $docdir/$src/{$myname,$spec}.gz $C + mv $C/{$myname,$spec}.gz $docdir/$src else ln $docdir/$src/$myname.gz $docdir/${src[$i]} + ln $docdir/$src/$spec.gz $docdir/${src[$i]} fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + prune_symlink $P/usr/share/zsh/$vers/help + touch -t `date '+%m%d0900'` $P/usr/share/zsh/$vers/help tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/zsh + tar rvpf $pkg.tar -C $P usr/share/zsh tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/04_xapps/emacs.txz/emacs/PlamoBuild.emacs-24.5 2016-07-09 22:50:53.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz + http://homepage1.nifty.com/blankspace/emacs/wb-line-number.el" +pkgbase=emacs +vers=24.5 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-x-toolkit=gtk3 --without-rsvg --without-imagemagick + --without-gsettings --without-selinux" +DOCS="README INSTALL COPYING BUGS ChangeLog" ###################################################################### fscheck() { @@ -233,6 +235,17 @@ esac done done + cd $B + cp -p lisp/eshell/esh-util.el{,.orig} + sed -i 's@|z2\\\\@&|xz\\\\@g' lisp/eshell/esh-util.el + cp -p lisp/ibuffer.el{,.orig} + sed -i 's@|z\\\\@&|txz\\\\@g' lisp/ibuffer.el + cp -p lisp/ldefs-boot.el{,.orig} + cp -p lisp/loaddefs.el{,.orig} + sed -i 's@"\.tgz"@& ".txz"@g' lisp/{ldefs-boot,loaddefs}.el + cp -p lisp//pcmpl-gnu.el{,.orig} + sed -i -e '/let/s@|bz2\\\\@&|txz\\\\@g' \ + -e '/let/!s@|z2\\\\@&|xz\\\\@g' lisp/pcmpl-gnu.el for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,11 +285,16 @@ make install DESTDIR=$P fi done + find $P/usr/share/emacs/$vers/lisp -mtime -1 -exec touch {} \; + chgrp -R root $P/usr/share/emacs/$vers/{etc,lisp} + install -m 644 $W/wb-line-number.el $P/usr/share/emacs/site-lisp touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/emacs/$vers/* + touch -t `date '+%m%d0900'` $P/usr/libexec/emacs/$vers/* for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +314,15 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/emacs + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/applications | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/icons -type f` + tar rvpf $pkg.tar -C $P usr/share/emacs + tar rvpf $pkg.tar -C $P var/games/emacs + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/AV.txz/pulseaudio/PlamoBuild.pulseaudio-7.1 2016-06-07 17:03:19.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://freedesktop.org/software/pulseaudio/releases/pulseaudio-7.1.tar.xz" +pkgbase=pulseaudio +vers=7.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="LICENSE README NEWS PROTOCOL ABOUT-NLS LGPL GPL todo" ###################################################################### fscheck() { @@ -155,6 +154,7 @@ convert() { for i in {$P,$P/usr}/{sbin,bin} ; do prune_symlink $i ; done for i in {$P,$P/usr}/$libdir ; do prune_symlink $i ; done + prune_symlink $P/usr/share/bash-completion/completions prune_symlink $infodir for i in `seq 9` n ; do prune_symlink $mandir/man$i ; done } @@ -224,17 +224,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -272,11 +261,34 @@ make install DESTDIR=$P fi done + cat <<- "EOF" > $P/etc/asound.conf + pcm.pulse { + type pulse + } + + ctl.pulse { + type pulse + } + + pcm.!default { + type pulse + } + + ctl.!default { + type pulse + } + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/pulse + strip_libdir $P/usr/$libdir/pulseaudio + strip_libdir $P/usr/$libdir/pulse-$vers/modules + touch -t `date '+%m%d0900'` $P/usr/libexec/pulse + touch -t `date '+%m%d0900'` $P/usr/$libdir/pulseaudio + touch -t `date '+%m%d0900'` $P/usr/$libdir/pulse-$vers/modules for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +307,39 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + touch -t `date '+%m%d0900'` $P/usr/share/bash-completion/completions + cat <<- "EOF" >> $P/install/doinst.sh + if [ -x usr/bin/esd ] ; then + ( cd usr/bin ; rm -rf esd ) + ( cd usr/bin ; ln -sf esdcompat esd ) + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/pulse + tar rvpf $pkg.tar -C $P usr/$libdir/pulseaudio + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libpulse*` + tar rvpf $pkg.tar -C $P usr/$libdir/pulse-$vers + tar rvpf $pkg.tar -C $P usr/$libdir/cmake/PulseAudio + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/pulse + tar rvpf $pkg.tar -C $P usr/share/pulseaudio + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/bash-completion/completions | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/vala/vapi | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/zsh/site-functions | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc/dbus-1/system.d | tail -n+2` + tar rvpf $pkg.tar -C $P etc/pulse + tar rvpf $pkg.tar -C $P `cd $P ; find etc/xdg/autostart | tail -n+2` + tar rvpf $pkg.tar -C $P etc/asound.conf + tar rvpf $pkg.tar -C $P `cd $P ; find lib/udev/rules.d | tail -n+2` 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/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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/AV.txz/speex/PlamoBuild.speex-1.2rc2 2016-05-02 17:06:41.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.xiph.org/releases/speex/speex-1.2rc2.tar.gz" +pkgbase=speex +vers=1.2rc2 arch=`uname -m` build=P1 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README.TI-DSP ChangeLog README.symbian README TODO COPYING + AUTHORS NEWS INSTALL README.blackfin" ###################################################################### fscheck() { @@ -224,17 +224,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -294,10 +283,21 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/speex $docdir/$src/doc + mv $docdir/$src/{doc,{README,TODO,COPYING,AUTHORS,NEWS,INSTALL}.gz} $C + mv $docdir/$src/{README.blackfin,$myname}.gz $C + mv $C/{doc,{README,TODO,COPYING,AUTHORS,NEWS,INSTALL}.gz} $docdir/$src + mv $C/{README.blackfin,$myname}.gz $docdir/$src + touch -r $S $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/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/speex + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/aclocal | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/AV.txz/speexdsp/PlamoBuild.speexdsp-1.2rc3 2016-05-02 17:25:03.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.xiph.org/releases/speex/speexdsp-1.2rc3.tar.gz" +pkgbase=speexdsp +vers=1.2rc3 arch=`uname -m` build=P1 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README INSTALL AUTHORS TODO ChangeLog COPYING README.blackfin + NEWS" ###################################################################### fscheck() { @@ -224,17 +224,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -294,10 +283,18 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + mv $docdir/speexdsp $docdir/$src/doc + mv $docdir/$src/{doc,{INSTALL,AUTHORS,TODO,ChangeLog}.gz} $C + mv $docdir/$src/{COPYING,README.blackfin,NEWS,$myname}.gz $C + mv $C/{doc,{INSTALL,AUTHORS,TODO,ChangeLog}.gz} $docdir/$src + mv $C/{COPYING,README.blackfin,NEWS,$myname}.gz $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/speex 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/devel2.txz/gcc_go/PlamoBuild.gcc_go-4.8.5 2016-01-28 14:21:29.000000000 +0900 @@ -1,15 +1,20 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2 + https://patchwork.ozlabs.org/patch/342434/mbox" +pkgbase=gcc_go +vers=4.8.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=gcc-$vers +OPT_CONFIG="--disable-werror --disable-multilib --enable-install-libiberty + --enable-__cxa_atexit --enable-threads=posix --enable-shared + --enable-languages=c,c++,fortran,go --enable-gnu-unique-object + --enable-linker-build-id --enable-plugin --with-system-zlib + --with-linker-hash-style=gnu --enable-clocale=gnu --disable-libstdcxx-pch" +DOCS="COPYING ChangeLog ABOUT-NLS NEWS COPYING3.LIB ChangeLog.tree-ssa + COPYING3 COPYING.RUNTIME README COPYING.LIB MAINTAINERS" ###################################################################### fscheck() { @@ -48,9 +53,9 @@ strip_bindir() { echo "compressing in $1" if [ -d $1 ] ; then ( - shopt -s nullglob + shopt -s extglob nullglob cd $1 - for i in * ; do + for i in `echo !(*.so|*.so.*|*.a|*.o)` ; do echo "$i" if [ -h $i ] ; then continue ; fi if [ -n "`file $i | grep "not stripped"`" ] ; then @@ -185,36 +190,19 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=gcc-4.8-filename-output.patch for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi + if [ ${i##*/} == mbox ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then + wget $i fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +210,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np0 -i $W/gcc-4.8-filename-output.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +221,12 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` \ + --host=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -272,11 +254,29 @@ make install DESTDIR=$P fi done + mv $P/usr/bin/{,$arch-*-}gccgo $C + rm -f $P/usr/bin/* + mv $C/{,$arch-*-}gccgo $P/usr/bin + gcclibdir=$P/usr/$libdir/gcc/$arch-pc-linux-gnu + gcclibdir+=`[ $arch == armv7l ] && echo eabi`/$vers + mv $gcclibdir/go1 $C + rm -rf $gcclibdir/* + mv $C/go1 $gcclibdir + mv $P/usr/$libdir/libgobegin.a $C + mv $P/usr/$libdir/libgo.{so{.4{.0.0,},},{la,a}} $C + mv $P/usr/$libdir/go $C + rm -rf $P/usr/$libdir/lib* + mv $C/libgobegin.a $P/usr/$libdir + mv $C/libgo.{so{.4{.0.0,},},{la,a}} $P/usr/$libdir + mv $C/go $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $gcclibdir + strip_libdir $gcclibdir + touch -t `date '+%m%d0900'` $gcclibdir for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +296,13 @@ 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` + tar rvpf $pkg.tar -C $P `cd $P ; find ${gcclibdir#$P/} | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -type f` + tar rvpf $pkg.tar -C $P usr/$libdir/go + tar rvpf $pkg.tar -C $P usr/share/info/gccgo.info.gz + tar rvpf $pkg.tar -C $P usr/share/man/man1/gccgo.1.gz 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/devel2.txz/gfortran/PlamoBuild.gfortran-4.8.5 2016-01-28 14:19:19.000000000 +0900 @@ -1,15 +1,20 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2 + https://patchwork.ozlabs.org/patch/342434/mbox" +pkgbase=gfortran +vers=4.8.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=gcc-$vers +OPT_CONFIG="--disable-werror --disable-multilib --enable-install-libiberty + --enable-__cxa_atexit --enable-threads=posix --enable-shared + --enable-languages=c,c++,fortran,go --enable-gnu-unique-object + --enable-linker-build-id --enable-plugin --with-system-zlib + --with-linker-hash-style=gnu --enable-clocale=gnu --disable-libstdcxx-pch" +DOCS="COPYING ChangeLog ABOUT-NLS NEWS COPYING3.LIB ChangeLog.tree-ssa + COPYING3 COPYING.RUNTIME README COPYING.LIB MAINTAINERS" ###################################################################### fscheck() { @@ -48,9 +53,9 @@ strip_bindir() { echo "compressing in $1" if [ -d $1 ] ; then ( - shopt -s nullglob + shopt -s extglob nullglob cd $1 - for i in * ; do + for i in `echo !(*.so|*.so.*|*.a|*.o)` ; do echo "$i" if [ -h $i ] ; then continue ; fi if [ -n "`file $i | grep "not stripped"`" ] ; then @@ -185,36 +190,19 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=gcc-4.8-filename-output.patch for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi + if [ ${i##*/} == mbox ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then + wget $i fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +210,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np0 -i $W/gcc-4.8-filename-output.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +221,12 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` \ + --host=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -272,11 +254,27 @@ make install DESTDIR=$P fi done + mv $P/usr/bin/{,$arch-*-}gfortran $C + rm -f $P/usr/bin/* + mv $C/{,$arch-*-}gfortran $P/usr/bin + gcclibdir=$P/usr/$libdir/gcc/$arch-pc-linux-gnu + gcclibdir+=`[ $arch == armv7l ] && echo eabi`/$vers + mv $gcclibdir/{finclude,f951} $C + mv $gcclibdir/lib{caf_single,gfortranbegin}.{la,a} $C + rm -rf $gcclibdir/* + mv $C/{finclude,f951} $gcclibdir + mv $C/lib{caf_single,gfortranbegin}.{la,a} $gcclibdir + mv $P/usr/$libdir/libgfortran.{spec,so{.3{.0.0,},},{la,a}} $C + rm -rf $P/usr/$libdir/{lib*,go} + mv $C/libgfortran.{spec,so{.3{.0.0,},},{la,a}} $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $gcclibdir + strip_libdir $gcclibdir + touch -t `date '+%m%d0900'` $gcclibdir for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +294,13 @@ 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` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find ${gcclibdir#$P/} -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -type f` + tar rvpf $pkg.tar -C $P usr/share/info/gfortran.info.gz + tar rvpf $pkg.tar -C $P usr/share/man/man1/gfortran.1.gz 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/devel2.txz/json_c/PlamoBuild.json_c-0.12 2016-05-02 15:29:35.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://s3.amazonaws.com/json-c_releases/releases/json-c-0.12.tar.gz" +pkgbase=json_c +vers=0.12 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=json-c-$vers OPT_CONFIG="" -DOCS="README" +DOCS="AUTHORS COPYING ChangeLog NEWS README README-WIN32.html + README.html RELEASE_CHECKLIST.txt INSTALL" ###################################################################### fscheck() { @@ -222,17 +222,9 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + cp -p Makefile.in{,.orig} + sed -i 's@-Werror @@g' Makefile.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -295,9 +287,11 @@ ( 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` + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/json-c 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/ntfs_3g_ntfsprogs/PlamoBuild.ntfs_3g_ntfsprogs-2015.3.14 2016-02-23 17:54:34.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2015.3.14.tgz + http://cache.gmane.org//gmane/linux/debian/devel/secure-testing/general/6910-001.bin + https://github.com/PhantomX/slackbuilds/raw/master/ntfs-3g/patches/ntfs-3g_ntfsprogs-2011.10.9-RC-ntfsck-unsupported-return-0.patch" +pkgbase=ntfs_3g_ntfsprogs +vers=2015.3.14 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P2 +src=ntfs-3g_ntfsprogs-$vers OPT_CONFIG="" -DOCS="README" +DOCS="INSTALL TODO.ntfsprogs README NEWS ChangeLog CREDITS COPYING.LIB + COPYING AUTHORS" ###################################################################### fscheck() { @@ -185,36 +187,20 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=0002-CVE-2015-3202.patch for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi + if [ ${i##*/} == 6910-001.bin ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then + wget $i fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + tgz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -224,17 +210,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -242,8 +217,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -269,7 +244,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install -i DESTDIR=$P fi done touch $W/i.et @@ -295,9 +270,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` + tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find bin | 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/ntfs-3g + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/tk.txz/tk/PlamoBuild.tk-8.6.6 2016-10-18 09:27:55.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/tcl/tk8.6.6-src.tar.gz" +pkgbase=tk +vers=8.6.6 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-threads" +DOCS="ChangeLog.2004 ChangeLog.2002 changes ChangeLog license.terms + ChangeLog.2007 README" ###################################################################### fscheck() { @@ -233,8 +234,13 @@ esac done done + cd $B + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + sed -i '/^TK_LIBRARY=/s@lib@lib64@g' unix/configure + fi for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then make clean fi @@ -250,7 +256,7 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then make fi @@ -267,11 +273,14 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P install-private-headers fi done + ln -s wish8.6 $P/usr/bin/wish + mv $P/usr/bin/{wish8.6,wish} $C + mv $C/{wish8.6,wish} $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +305,15 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/tk8.6 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/{libtk8.6.so,tkConfig.sh,libtkstub8.6.a} + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` 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 `cd $P ; find usr/share/man/mann | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/tk.txz/Tix/PlamoBuild.Tix-8.4.3 2016-10-18 10:32:24.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/tix/Tix8.4.3-src.tar.gz + http://ftp.slackware.com/pub/slackware/slackware-14.0/source/tcl/tix/tix.tcl8.5.patch.gz + http://ftp.slackware.com/pub/slackware/slackware-14.0/source/tcl/tix/tix.soname.patch.gz + http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz + http://downloads.sourceforge.net/tcl/tk8.6.6-src.tar.gz" +pkgbase=Tix +vers=8.4.3 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=$pkgbase$vers +patchfiles="tix.tcl8.5.patch.gz tix.soname.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="license.terms README.txt ChangeLog" ###################################################################### fscheck() { @@ -233,6 +237,35 @@ esac done done + cd $W/tcl8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + cat <<- "EOF" | patch unix/configure + 18923c18923 + < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + --- + > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' + 19053,19054c19053,19054 + < elif test "$prefix/lib" != "$libdir"; then + < TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > elif test "$prefix/lib64" != "$libdir"; then + > TCL_PACKAGE_PATH="${libdir} ${prefix}/lib64 ${TCL_PACKAGE_PATH}" + 19056c19056 + < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" + EOF + fi + cd $W/tcl8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads + cd $W/tk8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + sed -i '/^TK_LIBRARY=/s@lib@lib64@g' unix/configure + fi + cd $W/tk8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -244,7 +277,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + CPPFLAGS="-DUSE_INTERP_RESULT" fi done fi @@ -272,11 +306,18 @@ make install DESTDIR=$P fi done + chown -R root.root $P/usr/$libdir/Tix$vers/{pref,bitmaps} + chmod -R g-w $P/usr/$libdir/Tix$vers/bitmaps + rmdir $P/usr/$libdir/Tix$vers/html + install -d $P/usr/share/man/mann + install -m 644 man/*.n $P/usr/share/man/mann touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/Tix$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/Tix$vers for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,9 +335,21 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/docs $docdir/$src + find $docdir/$src/docs -type d -exec chmod 755 {} \; + find $docdir/$src/docs -type f -exec chmod 644 {} \; + chown -R root.root $docdir/$src/docs + cp -p $S/{index,ABOUT}.html $docdir/$src + chmod 644 $docdir/$src/{index,ABOUT}.html + chown root.root $docdir/$src/{index,ABOUT}.html + mv $docdir/$src/{docs,{index,ABOUT}.html} $C + mv $docdir/$src/{license.terms,README.txt,ChangeLog,$myname}.gz $C + mv $C/{docs,{index,ABOUT}.html} $docdir/$src + mv $C/{license.terms,README.txt,ChangeLog,$myname}.gz $docdir/$src + touch -r $S $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` + tar cvpf $pkg.tar -C $P usr/$libdir/Tix$vers + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/mann | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/tk.txz/itk/PlamoBuild.itk-4.0.2 2016-10-18 10:40:55.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/incrtcl/itk4.0.2.tar.gz + http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz + http://downloads.sourceforge.net/tcl/tk8.6.6-src.tar.gz" +pkgbase=itk +vers=4.0.2 arch=`uname -m` build=P1 -src=$pkgbase-$vers +src=$pkgbase$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="license.terms" ###################################################################### fscheck() { @@ -233,6 +235,35 @@ esac done done + cd $W/tcl8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + cat <<- "EOF" | patch unix/configure + 18923c18923 + < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + --- + > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' + 19053,19054c19053,19054 + < elif test "$prefix/lib" != "$libdir"; then + < TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > elif test "$prefix/lib64" != "$libdir"; then + > TCL_PACKAGE_PATH="${libdir} ${prefix}/lib64 ${TCL_PACKAGE_PATH}" + 19056c19056 + < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" + EOF + fi + cd $W/tcl8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads + cd $W/tk8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + sed -i '/^TK_LIBRARY=/s@lib@lib64@g' unix/configure + fi + cd $W/tk8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -277,6 +308,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/itk$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/itk$vers for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +328,9 @@ ( 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` + tar cvpf $pkg.tar -C $P usr/$libdir/itk$vers + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/mann | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/09_kernel/kernelsrc/PlamoBuild.kernelsrc-4.1.15_plamoRPi2 2016-02-19 08:31:04.000000000 +0900 @@ -1,15 +1,22 @@ -#!/bin/sh +#!/bin/sh -x ###################################################################### -url="" -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +url="https://github.com/raspberry/linux.git + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/UNICON/vd_unicon-kernel-20150627-4.1.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/UNICON/vd_unicon-kernel-fonts-20140614.patch.bz2 + https://github.com/sfjro/aufs4-standalone.git + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/mcp/4.1-panic_beep.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/mcp/4.1-morse_code_panics.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/toi/tuxonice-for-linux-4.1.6-2015-08-22.patch.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/ovlfs/overlayfs-allow_unprivileged_mounts.patch + ftp://plamo.linet.gr.jp/pub/Plamo-test/kernelsrc_patches/config-4.1.15-plamoRPi2" +pkgbase=kernelsrc +vers=4.1.15_plamoRPi2 +arch=noarch +build=P3 +src=linux OPT_CONFIG="" -DOCS="README" +DOCS="" ###################################################################### fscheck() { @@ -186,35 +193,22 @@ fi if [ $opt_download -eq 1 ] ; then for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi - fi + case ${i##*.} in + git) if [ ! -d `basename ${i##*/} .git` ] ; then git clone $i ; fi ;; + *) if [ ! -f ${i##*/} ] ; then wget $i ; fi ;; + esac done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; + xz) tar xvpJf ${i##*/} ;; + git) ( cd `basename ${i##*/} .git` + case `basename ${i##*/} .git` in + linux) git checkout origin/rpi-4.1.y ; git reset --hard d51c7d8 ;; + aufs4-*) git checkout origin/aufs4.1 ; git reset --hard 2b569cf ;; + esac ) ;; esac done fi @@ -222,17 +216,22 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + rm -rf .git ; touch .git + patch -Np1 -i $W/vd_unicon-kernel-20150627-4.1.patch + bunzip2 -c $W/vd_unicon-kernel-fonts-20140614.patch.bz2 | patch -Np1 -i - + patch -Np1 -i $W/aufs4-standalone/aufs4-kbuild.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-base.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-mmap.patch + patch -Np1 -i $W/aufs4-standalone/aufs4-standalone.patch + cp -av $W/aufs4-standalone/Documentation . + cp -av $W/aufs4-standalone/fs . + cp -pv $W/aufs4-standalone/include/uapi/linux/aufs_type.h include/uapi/linux + patch -Np1 -i $W/4.1-panic_beep.patch + patch -Np1 -i $W/4.1-morse_code_panics.patch + bunzip2 -c $W/tuxonice-for-linux-4.1.6-2015-08-22.patch.bz2 | patch -Np1 -i - + patch -Np1 -i $W/overlayfs-allow_unprivileged_mounts.patch + cp -p $W/config-4.1.15-plamoRPi2 .config for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,8 +241,8 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done @@ -252,7 +251,10 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make prepare scripts + mv include/generated/bounds.h $W + make clean + mv $W/bounds.h include/generated fi done fi @@ -268,10 +270,55 @@ touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - if [ -f Makefile ] ; then + false && if [ -f Makefile ] ; then make install DESTDIR=$P fi done + install -d $P/usr/src + cp -dR . $P/usr/src/$src-4.1.15 + rm $P/usr/src/$src-4.1.15/.git + find $P/usr/src/$src-4.1.15 \( -name ".get_maintainer.ignore" \ + -o -name ".gitignore" -o -name ".mailmap" -o -name "*.orig" \) \ + -exec rm {} \; + ln -s $src-4.1.15 $P/usr/src/linux + install -d $P/sbin + cat <<- "EOF" > $P/sbin/installkernel + #!/bin/sh + # + # arch/arm/boot/install.sh + # + # This file is subject to the terms and conditions of the GNU General Public + # License. See the file "COPYING" in the main directory of this archive + # for more details. + # + # Copyright (C) 1995 by Linus Torvalds + # + # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin + # Adapted from code in arch/i386/boot/install.sh by Russell King + # + # "make install" script for arm architecture + # + # Arguments: + # $1 - kernel version + # $2 - kernel image file + # $3 - kernel map file + # $4 - default install path (blank if root directory) + # + + [ -f $4/config ] && mv $4/config $4/config.old + cp .config $4/config + [ -f $4/kernel7.img ] && mv $4/kernel7.img $4/kernel7.old + scripts/mkknlimg $2 > $4/kernel7.img + [ -f $4/System.map ] && mv $4/System.map $4/System.old + cp $3 $4/System.map + + if [ -x /sbin/loadmap ] ; then + /sbin/loadmap + else + sync + fi + EOF + chmod 755 $P/sbin/installkernel touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -285,6 +332,7 @@ gzip_one $docdir/${src[$i]}/${k#${S[$i]}/} done done + install -d $docdir/$src if [ $i -eq 0 ] ; then install $myname $docdir/$src touch -t `date '+%m%d0900'` $docdir/$src/$myname @@ -294,10 +342,18 @@ 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` + prune_symlink $P/usr/src + touch -t `date '+%m%d0900'` $P/usr/src/$src-4.1.15/arch/arm/boot/dts/include + touch -t `date '+%m%d0900'` $P/usr/src/$src-4.1.15/arch/metag/boot/dts/include + touch -t `date '+%m%d0900'` $P/usr/src/$src-4.1.15/arch/mips/boot/dts/include + touch -t `date '+%m%d0900'` $P/usr/src/$src-4.1.15/arch/powerpc/boot/dts/include + touch -t `date '+%m%d0900'` $P/usr/src/$src-4.1.15/tools/testing/selftests/powerpc/copyloops + tar cvpf $pkg.tar -C $P `cd $P ; find usr/src -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find sbin | 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 --- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/99_test/gcc_all/PlamoBuild.gcc_all-4.8.5 2016-01-27 16:51:19.000000000 +0900 @@ -1,15 +1,20 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2 + https://patchwork.ozlabs.org/patch/342434/mbox" +pkgbase=gcc_all +vers=4.8.5 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +build=P2 +src=gcc-$vers +OPT_CONFIG="--disable-werror --disable-multilib --enable-install-libiberty + --enable-__cxa_atexit --enable-threads=posix --enable-shared + --enable-languages=c,c++,fortran,go --enable-gnu-unique-object + --enable-linker-build-id --enable-plugin --with-system-zlib + --with-linker-hash-style=gnu --enable-clocale=gnu --disable-libstdcxx-pch" +DOCS="COPYING ChangeLog ABOUT-NLS NEWS COPYING3.LIB ChangeLog.tree-ssa + COPYING3 COPYING.RUNTIME README COPYING.LIB MAINTAINERS" ###################################################################### fscheck() { @@ -48,9 +53,9 @@ strip_bindir() { echo "compressing in $1" if [ -d $1 ] ; then ( - shopt -s nullglob + shopt -s extglob nullglob cd $1 - for i in * ; do + for i in `echo !(*.so|*.so.*|*.a|*.o)` ; do echo "$i" if [ -h $i ] ; then continue ; fi if [ -n "`file $i | grep "not stripped"`" ] ; then @@ -185,36 +190,19 @@ done fi if [ $opt_download -eq 1 ] ; then + alt=gcc-4.8-filename-output.patch for i in $url ; do - if [ ! -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 - if wget --spider $j.$sig ; then - case ${i##*.} in - gz) gunzip -c ${i##*/} > ${j##*/} ;; - bz2) bunzip2 -c ${i##*/} > ${j##*/} ;; - xz) unxz -c ${i##*/} > ${j##*/} ;; - esac - touch -r ${i##*/} ${j##*/} ; i=$j ; wget $i.$sig ; break - fi - done - if [ -f ${i##*/}.$sig ] ; then - case $sig in - asc|sig|sign) gpg2 --verify ${i##*/}.$sig ;; - sha256|sha1|md5) ${sig}sum -c ${i##*/}.$sig ;; - *) $sig -c ${i##*/}.$sig ;; - esac - if [ $? -ne 0 ] ; then echo "archive verify failed" ; exit ; fi - fi + if [ ${i##*/} == mbox ] ; then + [ ! -f $alt ] && wget $i -O $alt + elif [ ! -f ${i##*/} ] ; then + wget $i fi done for i in $url ; do case ${i##*.} in tar) tar xvpf ${i##*/} ;; - gz|tgz) tar xvpzf ${i##*/} ;; - bz2|tbz) tar xvpjf ${i##*/} ;; - xz|txz) tar xvpJf ${i##*/} ;; + gz) tar xvpzf ${i##*/} ;; + bz2) tar xvpjf ${i##*/} ;; esac done fi @@ -222,17 +210,8 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done + cd $B + patch -Np0 -i $W/gcc-4.8-filename-output.patch for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -242,9 +221,12 @@ rm -rf config.cache config.log fi if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir='${exec_prefix}'/$libdir \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --libexecdir=/usr/$libdir \ + --build=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` \ + --host=$arch-pc-linux-gnu`[ $arch == armv7l ] && echo eabi` fi done fi @@ -272,11 +254,25 @@ make install DESTDIR=$P fi done + ln -s gcc $P/usr/bin/cc + install -d $P/$libdir + ln -s /usr/bin/cpp $P/$libdir + mv $P/usr/$libdir/lib{iberty.a,gcc_s.so{.1,}} $C + mv $C/lib{iberty.a,gcc_s.so{.1,}} $P/usr/$libdir + gcclibdir=$P/usr/$libdir/gcc/$arch-pc-linux-gnu + gcclibdir+=`[ $arch == armv7l ] && echo eabi`/$vers + chown -R root.root $gcclibdir/include{,-fixed} + touch $gcclibdir/include/*.h + find $gcclibdir/include-fixed -exec touch {} \; touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $gcclibdir/install-tools + strip_bindir $gcclibdir + strip_bindir $gcclibdir/plugin + strip_libdir $gcclibdir for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +291,23 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + touch -t `date '+%m%d0900'` $gcclibdir{/install-tools,,/plugin} + install -d $P/usr/share/gdb/auto-load/usr/$libdir + mv $P/usr/$libdir/libstdc++.so.*-gdb.py \ + $P/usr/share/gdb/auto-load/usr/$libdir tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/gdb/auto-load/usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/c++ + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P usr/share/gcc-$vers + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` 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/man7 | 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