--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/old/man_pages_ja-20160727/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