Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3706 - bsd-games-2.13.ebuild (New Package)
Summary: bsd-games-2.13.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: José Alberto Suárez López
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 26437
  Show dependency tree
 
Reported: 2002-06-13 16:58 UTC by Mike Lieberman
Modified: 2003-08-11 17:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for bsd-games-2.13 (non-free games in another ebuild) (bsd-games-2.13.ebuild,13.48 KB, text/plain)
2003-03-06 15:16 UTC, Aric LeDell
Details
files/bsdgames-2.13-gentoo.diff (bsdgames-2.13-gentoo.diff,252 bytes, text/plain)
2003-03-06 15:17 UTC, Aric LeDell
Details
files/config.params-gentoo (config.params-gentoo,1.20 KB, text/plain)
2003-03-06 15:18 UTC, Aric LeDell
Details
files/bsdgames_2.13-11.diff (debian patch) (bsdgames_2.13-11.diff,39.28 KB, text/plain)
2003-03-06 15:19 UTC, Aric LeDell
Details
bsd-games-non-free-2.13.ebuild (hack and rogue) (bsd-games-non-free-2.13.ebuild,2.34 KB, text/plain)
2003-03-06 15:20 UTC, Aric LeDell
Details
bsd-games-2.13.ebuild (bsd-games-2.13.ebuild,8.93 KB, text/plain)
2003-03-11 14:49 UTC, Aric LeDell
Details
bsd-games-non-free-2.13.ebuild (bsd-games-non-free-2.13.ebuild,3.40 KB, text/plain)
2003-03-11 14:50 UTC, Aric LeDell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lieberman 2002-06-13 16:58:38 UTC
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
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-13 17:05:52 UTC
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 :)
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-18 09:40:21 UTC
Mike?
Comment 3 José Alberto Suárez López 2002-06-21 11:49:00 UTC
where is the ebuild or the url?
Comment 4 Mike Lieberman 2002-06-21 12:45:23 UTC
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.
Comment 5 José Alberto Suárez López 2002-06-21 14:18:18 UTC
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 :)
Comment 6 Mike Lieberman 2002-06-21 19:13:11 UTC
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...?
Comment 7 Steven Lucy 2003-02-25 16:22:45 UTC
so where can one find a copy of this ebuild?  i'd be happy to do test it...
Comment 8 Aric LeDell 2003-03-06 15:14:41 UTC
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
Comment 9 Aric LeDell 2003-03-06 15:16:25 UTC
Created attachment 9028 [details]
ebuild for bsd-games-2.13 (non-free games in another ebuild)
Comment 10 Aric LeDell 2003-03-06 15:17:15 UTC
Created attachment 9029 [details]
files/bsdgames-2.13-gentoo.diff
Comment 11 Aric LeDell 2003-03-06 15:18:23 UTC
Created attachment 9030 [details]
files/config.params-gentoo
Comment 12 Aric LeDell 2003-03-06 15:19:17 UTC
Created attachment 9031 [details]
files/bsdgames_2.13-11.diff   (debian patch)
Comment 13 Aric LeDell 2003-03-06 15:20:06 UTC
Created attachment 9032 [details]
bsd-games-non-free-2.13.ebuild (hack and rogue)
Comment 14 Aric LeDell 2003-03-06 15:28:52 UTC
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
Comment 15 Steven Lucy 2003-03-06 18:10:29 UTC
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
Comment 16 Aric LeDell 2003-03-11 14:46:10 UTC
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...
Comment 17 Aric LeDell 2003-03-11 14:49:46 UTC
Created attachment 9262 [details]
bsd-games-2.13.ebuild
Comment 18 Aric LeDell 2003-03-11 14:50:38 UTC
Created attachment 9263 [details]
bsd-games-non-free-2.13.ebuild
Comment 19 José Alberto Suárez López 2003-03-15 19:18:03 UTC
good job, i will try to include it nad test soon
Comment 20 José Alberto Suárez López 2003-03-16 07:49:53 UTC
now in portage
Comment 21 Aric LeDell 2003-03-17 16:26:37 UTC
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...