The quake3 ebuild comes with a startscript q3ded. This starts the quake3 server as user q3. This user's homedir is set to /opt/quake3 which was fine until somebody changed the ebuild to chown games.games -R the /opt/quake3 directory. This is fine, but then please change the user in the startscripts to games. This is also true for all quake3-* ebuilds, they essentially use the same startscript. Reproducible: Always Steps to Reproduce: 1. Do a fresh install of quake3 (or any quake3-*) (old ebuilds didn't suffer from this but you should have installed 1.32b anyway so this _will_ happen to you 2. try to start q3ded as user q3 (like the startscript does), it wants to write to ~/.q3a Actual Results: Q3 1.32b linux-i386 Nov 14 2002 ----- FS_Startup ----- Sys_Error: Unable to create directory "/opt/quake3/.q3a", error is Permission denied(13) Expected Results:
I'm working on an (almost finished) overhaul of the way q3ded stores persistent information, storing it in /var/games/q3d3d(-modname)/ (where it should be, according to HFS). I'd be more than willing to post what I've got if there is any interest in it.
Created attachment 11567 [details] quake3-1.32b-r1.ebuild Changes: * Inherits eutils * Added "-mips -alpha -arm -hppa" to KEYWORDS * Added DEPEND="" # FIXME; There used to be no DEPEND * Added app-misc/screen to RDEPEND * Removed startq3ded * Installs q3ded wrapper script * Installs /etc/conf.d/q3ded * Keepdir /opt/quake3/.q3a due to bug-like behavior in quake3 and to partially fix old-style q3ded init scripts * Keepdir /var/games/quake3 to store persistent server data in * Uses enewuser instead of the old kludge * Enforces permissions on /var/games/quake3 * Updated einfo "documentation"
Created attachment 11568 [details] files/q3ded New wrapper script to replace startq3ded Functions exactly like "quake3" wrapper script except it calls q3ded instead
Created attachment 11570 [details] files/q3ded.confd New /etc/conf.d/ to configure command-line options for q3ded
Created attachment 11572 [details] files/q3ded.rc Changes: * Uses new q3ded wrapper script * Sets +fs_homepath /var/games/quake3 * Obeys Q3DED_OPTS from /etc/conf.d/q3ded * Stops q3ded gracefully instead of killing it * Removed useless status() function
Created attachment 11573 [details] files/quake3 Changes: * Added license header * Updated comment
i updated the quake3 ebuild a few days back ... i didnt see this bug :x try the new package please