Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] Games grimoire - draft document

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Andrew \"ruskie\" Levstik" <ruskie AT mages.ath.cx>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] Games grimoire - draft document
  • Date: Thu, 6 Oct 2005 12:15:04 +0200

Sine I wanted to get this out asap I'll just post it here until the site is
back up...
Please comment on it. Feedback appreciated...

---THIS IS A DRAFT OF THE FINAL DOCUMENT---
This is a document describing spells in the GAMES grimoire.

Paths and permissions:

***
ALL games should install their binaries to:
/usr/games

In case a game needs to have it's data in the same dir as the binary
a symbolic link or a launcher script(prefered) should be used and the
binary installed to /usr/share/games/$gamedir

***
ALL game related data should go to:
/usr/share/games/$gamedir

***
If a game has the ability to write a score file to /var then it should go to:
/var/games
And the score file should be marked in volatiles and configs in the spell.

***
The permissions on ALL games and game releated data should be:

0750 binaries and directories
0640 other files

All games related files are owened by root:games.

***
I have made some helper functions in the games FUNCTIONS file:

One of these creates the following dirs if nonexistant:
/usr/games
/usr/share/games/$SPELL
/var/games

Another monitors /usr/games during install and assigns proper permissions
to the binaries installed there 0750 and sets their ownership to root:games.

There is also a function that will wipe out an empty /usr/share/games/$SPELL.

If there is a spell that does configure && make && make install I have added
a function to FUNCTIONS called default_games_build which is a modified
default_build that runs configure with the proper parameters.
-------------------------------------------


--
Andrew "ruskie" Levstik
Source Mage GNU/Linux Games grimoire guru

Key id = 9A5117F8
Key fingerprint = 6731 FEF2 99A8 4672 5962 69AB 3DAF DA67 9A51 17F8





Archive powered by MHonArc 2.6.24.

Top of Page