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

*** Game libs install to the normal directories

*** 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: (use find_and_scam in the directory you want to change to have this automagicaly happen) 0750 binaries and directories 0640 other files

All game related files have ownership set as 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, this can also cause quite some bugs due to spells doing symlink magic or some such.

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.

last edited 2008-03-03 06:06:53 by Andraž_Levstik