pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/omega Don't use user id and group id ``games'', ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/44bb2c3e56ee
branches:  trunk
changeset: 478924:44bb2c3e56ee
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Mon Aug 02 03:11:04 2004 +0000

description:
Don't use user id and group id ``games'', but instead rely on GAMEOWN,
GAMEGRP etc. to DTRT.
(partly addresses PR pkg/26236)

diffstat:

 games/omega/Makefile |  19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r 706a34d19f41 -r 44bb2c3e56ee games/omega/Makefile
--- a/games/omega/Makefile      Mon Aug 02 02:52:47 2004 +0000
+++ b/games/omega/Makefile      Mon Aug 02 03:11:04 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index