tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: list of possibly broken user-destdir enabled packages
Joerg Sonnenberger wrote:
> On Sun, Feb 07, 2010 at 07:34:32PM +0100, Klaus Heinz wrote:
> > Especially the games may not be really fixable right now because there is
> > no official way at build time to determine the games group at install
> > time. A short term fix would be the introduction of REAL_GAMEGRP and
> > REAL_GAMEOWN.
Maybe that should have been REAL_GAMES_USER and REAL_GAMES_GROUP, I
don't know the difference between GAMES_USER and GAMEOWN...
>
> As long as they are SETGIDGAME, they are fine with SPECIAL_PERMS.
I do not understand what you are saying here.
Look at games/rollemup (I tried to translate the existing Makefile to
something that works with DESTDIR):
SPECIAL_PERMS= bin/Rollemup ${SETGID_GAMES_PERMS}
SPECIAL_PERMS+= ${GAMES_DIR}/Rollemup/Rollemup.ini ${GAMES_USER} \
${GAMES_GROUP} ${GAMEDATAMODE}
OWN_DIRS_PERMS+= ${GAMES_DIR}/Rollemup/Games ${GAMES_USER} \
${GAMEGRP} ${GAMEDIRMODE}
OWN_DIRS_PERMS+= ${GAMES_DIR}/Rollemup/Upload ${GAMES_USER} \
${GAMEGRP} ${GAMEDIRMODE}
This should, IMO, produce this part of +INSTALL
# GROUP: games
# USER: games:games
# PERMS: bin/Rollemup 2555 games games
# PERMS: share/games/Rollemup/Rollemup.ini 664 games games
# DIR: share/games/Rollemup/Games mo 0775 games games
# DIR: share/games/Rollemup/Upload mo 0775 games games
How do I do that right now? I can hard-code "games" instead of GAMEOWN
and GAMEGRP but if I do not, I get
# GROUP: games
# USER: games:games
# PERMS: bin/Rollemup 2555 games games
# PERMS: share/games/Rollemup/Rollemup.ini 664 pkgsrcuser pkgsrcuser
# DIR: share/games/Rollemup/Games mo 0775 pkgsrcuser pkgsrcuser
# DIR: share/games/Rollemup/Upload mo 0775 pkgsrcuser pkgsrcuser
ciao
Klaus
Home |
Main Index |
Thread Index |
Old Index