pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Converted the header comment to the canonical form....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/407d5bcbeb1b
branches:  trunk
changeset: 516165:407d5bcbeb1b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jul 15 20:47:43 2006 +0000

description:
Converted the header comment to the canonical form. Changed the
definitions of CHOWN and CHGRP so that they still include the command
that is skipped, which is useful when viewing the build logs.

diffstat:

 mk/unprivileged.mk |  26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diffs (44 lines):

diff -r ee263ac4c40d -r 407d5bcbeb1b mk/unprivileged.mk
--- a/mk/unprivileged.mk        Sat Jul 15 20:08:33 2006 +0000
+++ b/mk/unprivileged.mk        Sat Jul 15 20:47:43 2006 +0000
@@ -1,15 +1,21 @@
-# $NetBSD: unprivileged.mk,v 1.3 2005/09/28 21:55:32 rillig Exp $
+# $NetBSD: unprivileged.mk,v 1.4 2006/07/15 20:47:43 rillig Exp $
 #
-# Ease configuration of unprivileged (non-root) builds.
+# This file collects definitions that are useful when using pkgsrc as an
+# unprivileged (non-root) user. It is included automatically by the
+# pkgsrc infrastructure.
+#
+# The following variables may be set by the pkgsrc user in mk.conf:
 #
-# UNPRIVILEGED         If set to 'yes', enable unprivileged builds.
-#                      Disabled by default.
+# UNPRIVILEGED         : YesNo (default: undefined)
+#      If set to 'yes', enable unprivileged builds.
 #
-# UNPRIVILEGED_GROUP   Specifies the group name (or gid) that will be used
-#                      to install files.  Guessed if empty.
+# UNPRIVILEGED_GROUP   : Groupname (default: the current group)
+#      Specifies the group name (or gid) that will be used to install
+#      files.
 #
-# UNPRIVILEGED_USER    Specifies the user name (or uid) that will be used
-#                      to install files.  Guessed if empty.
+# UNPRIVILEGED_USER    : Username (default: the current user)
+#      Specifies the user name (or uid) that will be used to install
+#      files.
 
 .if defined(UNPRIVILEGED) && !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
 
@@ -49,8 +55,8 @@
 PKG_CREATE_USERGROUP=  NO
 
 # Override commands that won't work as a regular user.
-CHGRP=                 ${TRUE}
-CHOWN=                 ${TRUE}
+CHGRP=                 ${TRUE} chgrp
+CHOWN=                 ${TRUE} chown
 SU_CMD=                        ${SH} -c
 
 # Do not attempt to modify /etc/shells as a regular user.



Home | Main Index | Thread Index | Old Index