--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/01_minimum/man_pages_ja/PlamoBuild.man_pages_ja-20100415 2017-06-11 21:45:24.000000000 +0900 @@ -1,18 +1,20 @@ #!/bin/sh ###################################################################### -url="" +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/plamo/01_minimum/man_pages_ja/manpage_list + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/man_pages_ja/man-pages-ja-20100828-plamo.tar.gz" verify= digest= commitid= -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers +pkgbase=man_pages_ja +vers=20100415 +arch=noarch +build=P5 +src=man-pages-ja-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="manual/LDP_man-pages/translation_list ChangeLog README INSTALL" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -29,7 +31,11 @@ fscheck prepare "$@" if [ $opt_download -eq 1 ] ; then - download_sources + false && download_sources + for i in $url ; do + if [ ! -f ${i##*/} ] ; then wget --no-check-certificate $i ; fi + done + for i in $url ; do case ${i##*.} in gz) tar xvpzf ${i##*/} ;; esac done fi if [ $opt_config -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -48,7 +54,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 @@ -60,19 +66,42 @@ 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 setup_docdir convert_links - 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