Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1928 - Ebuild for Angband, a Rogue-like game
Summary: Ebuild for Angband, a Rogue-like game
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Ryan Phillips (RETIRED)
URL: http://www.math.duke.edu/~jvmatthe/eb...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-18 23:10 UTC by Matt Matthews
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

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


Attachments
angband-3.0.1.ebuild (angband-3.0.1.ebuild,1017 bytes, text/plain)
2002-08-17 13:41 UTC, Nicolas Kaiser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Matthews 2002-04-18 23:10:40 UTC
Here is my ebuild submission for Angband, a game that I enjoy quite a bit. A
couple of things you might want to note:

1) I don't know if chmod g+s is acceptable with you guys, but I know of no other
way to get around the setup that Angband uses for the data directories and save
directories. Could be a security issue, I suppose, but it's setting the group to
games, and not user to root, so I think it's ok. This works, for me, by making
everything in group games, including the angband binary, and then using chmod g+s.

2) The scores.raw file needs to be created root.games so that it won't be owned
by anyone except root.games.

3) I probably need to have some of the files in the data directory touched
first, but I haven't looked into that yet. After I finish rebuilding from the
libpng upgrade, I'll switch to my KDE test user and make sure this *truly*
works. ;^)

Hope this is worthwhile for you guys.
Comment 1 Matt Matthews 2002-04-19 11:18:45 UTC
I tested my ebuild and other users can save games and even read and add to the
scoreboard (scores.raw). I think this is usable by others, barring any security
issues.

However, it would be nice if someone else looked it over for sanity.

Also, adding the extra files in .../lib/data at the time of the ebuild may
prevent there being any files with ownership foo.games where foo is the user
that runs angband for the first time after it is installed. I'll look at this
later to see if that can be fixed by touching the right filenames ahead of time.
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-04-23 02:10:47 UTC
drobbins: is the chmod g+s acceptable in this ebuild?
Comment 3 Robert Ruehlmann 2002-06-01 12:36:19 UTC
I've created an updated ebuild for the recently released Angband 3.0 version. It can be found at the Angband homepage: http://thangorodrim.angband.org/angband-3.0.0-r1.ebuild  The new ebuild uses Angband's own installation scripts from the Makefiles and is much simpler and secure than the previous ebuild. All data files that are generated at runtime are touched when installing, so the permissions are correct. 
Comment 4 Matt Matthews 2002-06-01 13:39:02 UTC
I've tested the new ebuild and it seems to work exactly as advertised. I
recommend we go ahead and put Angband into the Portage tree, but then I'm just
an addict wanting to inspire more Angband addicts. :^)

Thanks, Robert! (For Angband development as well as this ebuild.)
Comment 5 Matt Matthews 2002-07-28 10:43:36 UTC
The Angband 3.0.0 ebuild can be updated to 3.0.1 by simply changing the name.
I've built it myself and it seems to work just fine.
Comment 6 Nicolas Kaiser 2002-08-17 13:39:14 UTC
Firstly, I have seen the same problem as in app-games/zangband (bug #6604), the high score table will get deleted when replacing/upgrading. Then, I didn't meet any problems on PPC, and would vote for adding ppc to KEYWORDS. Find attached my proposal for the 3.0.1 ebuild. 
Comment 7 Nicolas Kaiser 2002-08-17 13:41:03 UTC
Created attachment 3165 [details]
angband-3.0.1.ebuild
Comment 8 Ryan Phillips (RETIRED) gentoo-dev 2002-11-06 15:38:17 UTC
committed