summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/pkginstall/bsd.pkginstall.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/pkginstall/bsd.pkginstall.mk b/mk/pkginstall/bsd.pkginstall.mk
index 236745ac62b..50057b6ad63 100644
--- a/mk/pkginstall/bsd.pkginstall.mk
+++ b/mk/pkginstall/bsd.pkginstall.mk
@@ -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 @@ _PKG_VARS.pkginstall+= \
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 @@ su-create-usergroup: ${_INSTALL_USERGROUP_UNPACKER}
#
# 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