summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-08-02 03:11:04 +0000
committerjschauma <jschauma@pkgsrc.org>2004-08-02 03:11:04 +0000
commitde6c7db8c9e0f16e4316aa2c66c949bd8b3da756 (patch)
tree91d70acb98642b3d544e603365b18cb098248aa4 /games
parent2bcdb33c95af5ee227013bd5506f99bee86efd66 (diff)
downloadpkgsrc-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/Makefile19
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