Ticket #1872: 1872

File 1872, 958 bytes (added by timeless@…, 20 years ago)

simplistic patch which works. -without-install-(user|group) becomes -with-install-(user|group)=(user/user'sgroup) instead of 'no'

Line 
1Index: configure
2===================================================================
3RCS file: /Volumes/src/cvs/od/proj/darwinports/base/configure,v
4retrieving revision 1.34
5diff -u -r1.34 configure
6--- configure   17 Apr 2004 23:51:01 -0000      1.34
7+++ configure   25 May 2004 09:54:24 -0000
8@@ -2533,6 +2533,11 @@
9    DSTUSR=$withval
10 fi;
11 
12+# if --without-install-user was given then use the user's name
13+if test "${with_install_user}" = no; then
14+  DSTUSR=`id -u -n`
15+fi
16+
17        echo "$as_me:$LINENO: checking for install user" >&5
18 echo $ECHO_N "checking for install user... $ECHO_C" >&6
19        if test "x$DSTUSR" = "x" ; then
20@@ -2552,6 +2557,11 @@
21   withval="$with_install_group"
22    DSTGRP=$withval
23 fi;
24+
25+# if --without-install-group was given then use the user's primary group
26+if test "${with_install_group}" = no; then
27+  DSTGRP=`id -g -n`
28+fi
29 
30        echo "$as_me:$LINENO: checking for install group" >&5
31 echo $ECHO_N "checking for install group... $ECHO_C" >&6