--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/01_minimum/bsd_games/PlamoBuild.bsd_games-2.17 2017-05-23 12:52:45.000000000 +0900 @@ -1,18 +1,24 @@ #!/bin/sh ###################################################################### -url="" +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/plamo/01_minimum/bsd_games/hangman-words.gz" verify= digest= commitid= -pkgbase= -vers= +pkgbase=bsd_games +vers=2.17 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P6 +src=bsd-games-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="THANKS AUTHORS BUGS COPYING NEWS ChangeLog PACKAGING + SECURITY ChangeLog.0 INSTALL README YEAR2000 TODO" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -36,6 +42,17 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + 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 [ -x configure ] ; then @@ -48,7 +65,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 @@ -60,20 +77,44 @@ 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 setup_docdir + mv $docdir/bsd-games $docdir/$src/trek + mv $docdir/$src/{trek,{INSTALL,README,YEAR2000,TODO}.gz} $C + mv $docdir/$src/{$func,$myname,$spec}.gz $C + mv $C/{trek,{INSTALL,README,YEAR2000,TODO}.gz} $docdir/$src + mv $C/{$func,$myname,$spec}.gz $docdir/$src + touch -r $S $docdir/$src 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` + 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 cleanup