diff options
author | jschauma <jschauma@pkgsrc.org> | 2004-08-02 03:11:04 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2004-08-02 03:11:04 +0000 |
commit | de6c7db8c9e0f16e4316aa2c66c949bd8b3da756 (patch) | |
tree | 91d70acb98642b3d544e603365b18cb098248aa4 /games | |
parent | 2bcdb33c95af5ee227013bd5506f99bee86efd66 (diff) | |
download | pkgsrc-de6c7db8c9e0f16e4316aa2c66c949bd8b3da756.tar.gz |
Don't use user id and group id ``games'', but instead rely on GAMEOWN,
GAMEGRP etc. to DTRT.
(partly addresses PR pkg/26236)
Diffstat (limited to 'games')
-rw-r--r-- | games/omega/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/games/omega/Makefile b/games/omega/Makefile index 16ebeba0861..429e49abf05 100644 --- a/games/omega/Makefile +++ b/games/omega/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2004/03/23 04:41:00 jlam Exp $ +# $NetBSD: Makefile,v 1.23 2004/08/02 03:11:04 jschauma Exp $ DISTNAME= omega-0.90.4-src PKGNAME= omega-0.90.4 @@ -14,17 +14,24 @@ WRKSRC= ${WRKDIR}/omega USE_BUILDLINK3= yes ALL_TARGET= # empty +.include "../../mk/bsd.prefs.mk" + +.if !empty(SETGIDGAME:M[yY][eE][sS]) +FILEMODE= 0660 +.else +FILEMODE= 0600 +.endif + do-install: - ${INSTALL_PROGRAM} -o games -g games -m 4711 ${WRKSRC}/omega \ - ${PREFIX}/bin/Omega + ${INSTALL_GAME} ${WRKSRC}/omega ${PREFIX}/bin/Omega ${INSTALL_MAN} ${WRKSRC}/docs/omega.6 ${PREFIX}/man/man6 ${INSTALL_DATA_DIR} ${PREFIX}/share/omega ${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/share/omega ${RM} ${PREFIX}/share/omega/license.old - ${CHMOD} 0600 ${PREFIX}/share/omega/omega.hi - ${CHMOD} 0600 ${PREFIX}/share/omega/omega.log + ${CHMOD} ${FILEMODE} ${PREFIX}/share/omega/omega.hi + ${CHMOD} ${FILEMODE} ${PREFIX}/share/omega/omega.log ${CP} ${PREFIX}/share/omega/omega.hi ${PREFIX}/share/omega/omegahi.bak - ${CHOWN} -R games:games ${PREFIX}/share/omega + ${CHOWN} -R ${GAMEOWN}:${GAMEGRP} ${PREFIX}/share/omega post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/omega |