BSD-Games are a bunch of cool text games ported from NetBSD to Linux. I first saw them in Slack... I miss wtf and pig :-) Anyway, the configure script for this package is 'homegrown' and the configure options need to be in a config.params file in the work directory... I put a simple 'cat' to create the file within the .ebuild. Also, /usr/games needs to be added to the PATH at some point... I noticed things in /etc/env.d but I am unsure of how to name the file as well as the proper syntax in the .ebuild, so I have placed the file '99bsd-games' along with the .ebuild in bsd-games-2.13.tar.gz Dependency: >=sys-libs/ncurses-5.2 Thank you for a wonderful distribution :-) Mike
Mike, I'm glad you bring this up. I have an ebuild from a loooooooooong time ago for bsd games, but I had put it aside while trying to figure out the licensing. That's the only hitch with bsd-games, that I can see. Things like caesar and what-not which use a form of encryption... If you can get back to me on that stuff, I'd be more than happy to add it in (coz I miss them too :)
Mike?
where is the ebuild or the url?
From the maintainer, Joseph S. Myers <jsm28@cam.ac.uk>: 'Everything in bsd-games is under some form of BSD license, except where not copyright (phantasia, wtf). The games in bsd-games-non-free are under other terms.' Also, the ebuild I submitted is broken. The paths for the programs are messed up.
we have use the url from debian, for example http://packages.debian.org/unstable/games/bsdgames.html if you can changes your ebuilf and put this url, will be great :)
According to http://www.advogato.org/proj/bsd-games/ the URL is ftp://metalab.unc.edu/pub/Linux/games/bsd-games-2.13.tar.gz Also, Seemant appears to have a (working) ebuild for bsd-games as noted above...?
so where can one find a copy of this ebuild? i'd be happy to do test it...
I've created ebuilds that appear to work (I haven't tested all the games) It is based upon the debian package (their code patches and documents). bsd-games-2.13 and bsd-games-non-free-2.13 are attached
Created attachment 9028 [details] ebuild for bsd-games-2.13 (non-free games in another ebuild)
Created attachment 9029 [details] files/bsdgames-2.13-gentoo.diff
Created attachment 9030 [details] files/config.params-gentoo
Created attachment 9031 [details] files/bsdgames_2.13-11.diff (debian patch)
Created attachment 9032 [details] bsd-games-non-free-2.13.ebuild (hack and rogue)
Provides: adventure arithmetic atc backgammon battlestar boggle caesar canfield cribbage fish gomoku hangman hunt mille monop morse number phantasia pig pom ppt primes quiz rain random robots sail snake tetris trek wargames worm worms wtf wump Does not support: countmail, fortune, banner, dm, factor And in bsd-games-non-free: hack and rogue Specifying the environment variable "GAMES_TO_BUILD" before calling emerge allows you to build only the games you want These ebuilds ignore distcc (the ./mkdep had trouble with CC="distcc gcc") They are based upon debians bsd-games-2.13-11 package Both ebuilds need the config.params-gentoo file in the files directory Only bsd-games-2.13 needs the two patches (bsdgames_2.13-11.diff and bsd-games-2.13-gentoo.diff) Since rogue and hack have odd licenses, I used LICENSE='non-free' for bsd-games-non-free. I'm not sure what the real policy is for non /usr/portage/licenses/* licended packages. The digests are: MD5 cf33f61ce1f0c09a7473ac26a4a0a6ec bsd-games-2.13.tar.gz 2340094 MD5 4c793550cf845a1a921b89e8ca9f05c9 bsd-games-non-free-2.13.tar.gz 347928
big problems with this ebuild... first: " make: *** No rule to make target `/var/tmp/portage/bsd-games-2.13/work/bsd-games-2.13/temp-dictionary', needed by `boggle/mkdict/dictionary'. Stop. !!! ERROR: app-games/bsd-games-2.13 failed. !!! Function src_compile, Line -76, Exitcode 2 !!! (no error message) " if i remove boggle from GAMES_TO_BUILD, then everything goes fine...except: it doesn't actually install anything. the man pages and the docs are installed, but it looks like src_install is installing into work/ instead of image/: " install -c -m 0755 -s morse/morse /var/tmp/portage/bsd-games-2.13/work/bsd-games-2.13/debian/bsdgames/usr/games/morse ... chmod: failed to get attributes of `/var/tmp/portage/bsd-games-2.13/image///var/games/phantasia/void': No such file or directory " this is on ppc with portage-2.0.47-r8
There were problems with the previous ebuild; it was missing bcd (which might account for the boggle problem), and put the wrong permissions on a bunch of files. I have compartmentalized both ebuild so they should be easier to debug...
Created attachment 9262 [details] bsd-games-2.13.ebuild
Created attachment 9263 [details] bsd-games-non-free-2.13.ebuild
good job, i will try to include it nad test soon
now in portage
Excellent! My first contribution to gentoo! I have verified that the ebuilds in portage build correctly (or at least as correctly as the ones I submitted). Since I first created this ebuild, new ebuilds have been created for wtf and wump (although wump is app-games/wumpus). Both of these versions appear to descend from netbsd-1.6 sources Also, banner (which was removed from util-linux a while ago) and added to portage recently is not the same as app-misc/banner-1.2.1. The banner in portage does: ###### # # # # # ####### ###### # # # # ## # ## # # # # # # # # # # # # # # # # # ###### # # # # # # # # ##### ###### # # ####### # # # # # # # # # # # # # # ## # ## # # # ###### # # # # # # ####### # # , while the banner in bsd-games does a sideways banner for printing. P.S., the banner in portage does not have a man page...