Tue Mar 4 05:11:18 2008 UTC ()
Add SETGID_GAME_PERMS convenience definition that defaults to owner=game,
group=game, mode=0775.


(jlam)
diff -r1.42 -r1.43 pkgsrc/mk/pkginstall/bsd.pkginstall.mk

cvs diff -r1.42 -r1.43 pkgsrc/mk/pkginstall/bsd.pkginstall.mk (expand / switch to context diff)
--- pkgsrc/mk/pkginstall/bsd.pkginstall.mk 2008/01/29 19:18:26 1.42
+++ pkgsrc/mk/pkginstall/bsd.pkginstall.mk 2008/03/04 05:11:18 1.43
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.42 2008/01/29 19:18:26 rillig Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.43 2008/03/04 05:11:18 jlam Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk and implements the
 # common INSTALL/DEINSTALL scripts framework.  To use the pkginstall
@@ -50,6 +50,7 @@
 	FONTS_DIRS.ttf FONTS_DIRS.type1 FONTS_DIRS.x11 \
 _SYS_VARS.pkginstall= \
 	SETUID_ROOT_PERMS \
+	SETGID_GAME_PERMS \
 	SHLIB_TYPE \
 	LDCONFIG_ADD_CMD \
 	LDCONFIG_REMOVE_CMD
@@ -362,10 +363,16 @@
 #
 #	SPECIAL_PERMS+=	/path/to/suidroot ${SETUID_ROOT_PERMS}
 #
+# SETGID_GAME_PERMS is a convenience definition to note an executable is
+# meant to be setgid-game, and should be used as follows:
+#
+#	SPECIAL_PERMS+=	/path/to/sgidgame ${SETGID_GAME_PERMS}
+#
 # Keywords: setuid setgid st_mode perms
 #
 SPECIAL_PERMS?=		# empty
 SETUID_ROOT_PERMS?=	${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 4511
+SETGID_GAME_PERMS?=	${GAMEOWN} ${GAMEGRP} 2755
 
 _INSTALL_PERMS_FILE=		${_PKGINSTALL_DIR}/perms
 _INSTALL_PERMS_DATAFILE=	${_PKGINSTALL_DIR}/perms-data