pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/pkginstall Add SETGID_GAME_PERMS convenience defini...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c373cd726d0
branches:  trunk
changeset: 539334:3c373cd726d0
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Mar 04 05:11:18 2008 +0000

description:
Add SETGID_GAME_PERMS convenience definition that defaults to owner=game,
group=game, mode=0775.

diffstat:

 mk/pkginstall/bsd.pkginstall.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 69a267df4b18 -r 3c373cd726d0 mk/pkginstall/bsd.pkginstall.mk
--- a/mk/pkginstall/bsd.pkginstall.mk   Tue Mar 04 04:05:30 2008 +0000
+++ b/mk/pkginstall/bsd.pkginstall.mk   Tue Mar 04 05:11:18 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index