From a1499b9808cc65db2eea55db0e07ae1f801fdec9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 28 Feb 2009 14:04:10 +0000 Subject: added adduser and deluser to insatll target --- src/configure | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'src/configure') diff --git a/src/configure b/src/configure index d112494..a5c8173 100755 --- a/src/configure +++ b/src/configure @@ -43,16 +43,22 @@ PASSPHRASE=1 V4_MAPPED=1 PREFIX='/usr/local' +USERNAME='uanytun' +USERHOME='/var/run/uanytun' print_usage() { echo "configure --help print this" echo " --target= build target i.e. Linux (default: autodetect)" echo " --prefix= the installation prefix (default: /usr/local)" + echo " --username= create this user when installing (default: uanytun)" + echo " --userhome= the home directory of the user to be created (default: /var/run/uanytun)" echo " --use-ssl-crypto use ssl crypto library instead of libgcrypt" - echo " --disable-crypto disable crypto at all (only NULL cipher)" + echo " --no-crypto disable crypto at all (only NULL cipher)" echo " --disable-passphrase disable master key and salt passphrase" + echo " --enable-passphrase enable master key and salt passphrase" echo " --disable-v4-mapped disable V4-Mapped addresses (this means to disable" echo " simultanious use of IPv4 and IPv6)" + echo " --enable-v4-mapped enable V4-Mapped addresses" } for arg @@ -64,18 +70,30 @@ do --prefix=*) PREFIX=${arg#--prefix=} ;; + --username=*) + USERNAME=${arg#--username=} + ;; + --userhome=*) + USERHOME=${arg#--userhome=} + ;; --use-ssl-crypto) CRYPTO_LIB='ssl' ;; - --disable-crypto) + --no-crypto) CRYPTO_LIB='none' ;; --disable-passphrase) PASSPHRASE=0 ;; + --enable-passphrase) + PASSPHRASE=1 + ;; --disable-v4-mapped) V4_MAPPED=0 ;; + --enable-v4-mapped) + V4_MAPPED=1 + ;; --help) print_usage exit 0 @@ -159,6 +177,8 @@ LDFLAGS := $LDFLAGS SBINDIR := $PREFIX/sbin MANDIR := $PREFIX/share/man ETCDIR := $ETCDIR +USERNAME := $USERNAME +USERHOME := $USERHOME EOF exit 0 -- cgit v1.2.3