summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.install.mk
diff options
context:
space:
mode:
authorjlam <jlam>2002-10-04 23:46:26 +0000
committerjlam <jlam>2002-10-04 23:46:26 +0000
commit8129c3b326f385a2234d8476c64c9983606b1dbc (patch)
tree05d13a1c2ca6a91794aca716a345bd5dc138b9df /mk/bsd.pkg.install.mk
parent468571041adf2c2fffaabdf7162a377e79ac837a (diff)
downloadpkgsrc-8129c3b326f385a2234d8476c64c9983606b1dbc.tar.gz
Add new bsd.pkg.install.mk tunable variable: SPECIAL_PERMS.
SPECIAL_PERMS are lists that look like: file user group mode At post-install time, file (it may be a directory) is changed to be owned by user:group with mode permissions. SPECIAL_PERMS should be used primarily to change permissions of files or directories listed in the PLIST. This may be used to make certain files set-uid or to change the ownership or a directory. Packages that install setuid executables should list them in SPECIAL_PERMS so that the correct user and group will be used for file ownership, even if the uid/gid changes between the package creation and the package installation.
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r--mk/bsd.pkg.install.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index a0702cdf94e..ec82216a66a 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.30 2002/09/26 21:04:11 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.31 2002/10/04 23:46:26 jlam Exp $
#
# This Makefile fragment is included by package Makefiles to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -102,6 +102,18 @@ USE_USERADD= YES
USE_USERGROUP= YES
.endif
+# SPECIAL_PERMS are lists that look like:
+# file user group mode
+# At post-install time, file (it may be a directory) is changed to be
+# owned by user:group with mode permissions.
+#
+# SPECIAL_PERMS should be used primarily to change permissions of files or
+# directories listed in the PLIST. This may be used to make certain files
+# set-uid or to change the ownership or a directory.
+#
+SPECIAL_PERMS?= # empty
+FILES_SUBST+= SPECIAL_PERMS=${SPECIAL_PERMS:Q}
+
# CONF_FILES are pairs of example and true config files, used much like
# MLINKS in the base system. At post-install time, if the true config
# file doesn't exist, then the example one is copied into place. At
@@ -209,6 +221,7 @@ FILES_SUBST+= CP=${CP:Q}
FILES_SUBST+= DIRNAME=${DIRNAME:Q}
FILES_SUBST+= ECHO=${ECHO:Q}
FILES_SUBST+= EGREP=${EGREP:Q}
+FILES_SUBST+= EXPR=${EXPR:Q}
FILES_SUBST+= FALSE=${FALSE:Q}
FILES_SUBST+= GREP=${GREP:Q}
FILES_SUBST+= GROUPADD=${GROUPADD:Q}