diff options
author | rillig <rillig> | 2007-11-01 23:18:54 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-11-01 23:18:54 +0000 |
commit | 4327ae77b3ba7933290aa2cbbb0a84ab8426358c (patch) | |
tree | bc342d52ded9d28a338845fb0d11fb0820604509 /bootstrap | |
parent | 5d8f357dbd15bb7181accf18c2c26b9f17844a3f (diff) | |
download | pkgsrc-4327ae77b3ba7933290aa2cbbb0a84ab8426358c.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.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 12 |
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 |