diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 05:11:18 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 05:11:18 +0000 |
commit | 80ac108053c939873dcf92e85fbcc58fee385456 (patch) | |
tree | b5025c12f3884f799028af69daaa01aaedc2613a /mk/pkginstall | |
parent | 554226c6df49968aa64ffaa76788f92ffe6a7873 (diff) | |
download | pkgsrc-80ac108053c939873dcf92e85fbcc58fee385456.tar.gz |
Add SETGID_GAME_PERMS convenience definition that defaults to owner=game,
group=game, mode=0775.
Diffstat (limited to 'mk/pkginstall')
-rw-r--r-- | mk/pkginstall/bsd.pkginstall.mk | 9 |
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 |