summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-01 23:18:54 +0000
committerrillig <rillig>2007-11-01 23:18:54 +0000
commit5d72df8cb8bf65a4095b22c2a22aaf3f6e395b75 (patch)
treebc342d52ded9d28a338845fb0d11fb0820604509
parent99791fde3cc528c9001694ab5735637b308e7a7e (diff)
downloadpkgsrc-5d72df8cb8bf65a4095b22c2a22aaf3f6e395b75.tar.gz
Renamed the ignoreusercheck variable to unprivileged, since it does more
than just checking whether the bootstrap is run by root. No other visible changes.
-rwxr-xr-xbootstrap/bootstrap12
1 files changed, 6 insertions, 6 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 34009b8f633..eddc67216e2 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.115 2007/10/17 02:45:42 rillig Exp $
+# $NetBSD: bootstrap,v 1.116 2007/11/01 23:18:54 rillig Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -48,7 +48,7 @@ MAKECONF=/dev/null
export MAKECONF
ignorecasecheck=no
-ignoreusercheck=no
+unprivileged=no
preserve_path=no
@@ -331,7 +331,7 @@ while [ $# -gt 0 ]; do
--compiler=*) compiler=`get_optarg "$1"` ;;
--compiler) compiler="$2"; shift ;;
--ignore-case-check) ignorecasecheck=yes ;;
- --unprivileged | --ignore-user-check) ignoreusercheck=yes ;;
+ --unprivileged | --ignore-user-check) unprivileged=yes ;;
--preserve-path) preserve_path=yes ;;
--mk-fragment=*)
mk_fragment=`get_optarg "$1"` ;;
@@ -355,7 +355,7 @@ checkarg_sane_relative_path "$pkgmandir" "--pkgmandir"
# set defaults for system locations if not already set by the user
wrkobjdir=${wrkdir}/pkgsrc
-if [ "$ignoreusercheck" = "yes" ]; then
+if [ "$unprivileged" = "yes" ]; then
[ -z "$prefix" ] && prefix=${HOME}/pkg
[ -z "$pkgdbdir" ] && pkgdbdir=${prefix}/var/db/pkg
[ -z "$varbase" ] && varbase=${prefix}/var
@@ -689,7 +689,7 @@ if [ $? = 1 ]; then
user=$root_user
group=$root_group
else
- if [ $ignoreusercheck = "no" ]; then
+ if [ $unprivileged = "no" ]; then
die "You must be either root to install bootstrap-pkgsrc or use the --unprivileged option."
fi
@@ -765,7 +765,7 @@ if [ "$compiler" != "" ]; then
fi
# enable unprivileged builds if not root
-if [ "$ignoreusercheck" = "yes" ]; then
+if [ "$unprivileged" = "yes" ]; then
echo "UNPRIVILEGED= yes" >> ${TARGET_MKCONF}
fi