diff options
author | jschauma <jschauma> | 2004-08-02 03:11:04 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2004-08-02 03:11:04 +0000 |
commit | 0459cfa5042975125098bd48d5b8cf49163c6644 (patch) | |
tree | 91d70acb98642b3d544e603365b18cb098248aa4 | |
parent | 5e55d5724772246ceadab7616b0b3102e1d30721 (diff) | |
download | pkgsrc-0459cfa5042975125098bd48d5b8cf49163c6644.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)
-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 |