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