summaryrefslogtreecommitdiff
path: root/src/ipsec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipsec')
-rw-r--r--src/ipsec/Makefile.in2
-rw-r--r--src/ipsec/_ipsec.82
-rw-r--r--src/ipsec/_ipsec.in32
3 files changed, 22 insertions, 14 deletions
diff --git a/src/ipsec/Makefile.in b/src/ipsec/Makefile.in
index 7512472cd..faf7c76fc 100644
--- a/src/ipsec/Makefile.in
+++ b/src/ipsec/Makefile.in
@@ -307,7 +307,6 @@ exec_prefix = @exec_prefix@
fips_mode = @fips_mode@
gtk_CFLAGS = @gtk_CFLAGS@
gtk_LIBS = @gtk_LIBS@
-h_plugins = @h_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
@@ -342,6 +341,7 @@ nm_LIBS = @nm_LIBS@
nm_ca_dir = @nm_ca_dir@
nm_plugins = @nm_plugins@
oldincludedir = @oldincludedir@
+p_plugins = @p_plugins@
pcsclite_CFLAGS = @pcsclite_CFLAGS@
pcsclite_LIBS = @pcsclite_LIBS@
pdfdir = @pdfdir@
diff --git a/src/ipsec/_ipsec.8 b/src/ipsec/_ipsec.8
index 388a49246..1ae6375c8 100644
--- a/src/ipsec/_ipsec.8
+++ b/src/ipsec/_ipsec.8
@@ -1,4 +1,4 @@
-.TH IPSEC 8 "2013-10-29" "5.5.1dr3" "strongSwan"
+.TH IPSEC 8 "2013-10-29" "5.5.2dr4" "strongSwan"
.
.SH NAME
.
diff --git a/src/ipsec/_ipsec.in b/src/ipsec/_ipsec.in
index a002614fe..ea399b8c4 100644
--- a/src/ipsec/_ipsec.in
+++ b/src/ipsec/_ipsec.in
@@ -44,6 +44,8 @@ export IPSEC_DIR IPSEC_BINDIR IPSEC_SBINDIR IPSEC_CONFDIR IPSEC_PIDDIR IPSEC_SCR
IPSEC_DISTRO="Institute for Internet Technologies and Applications\nUniversity of Applied Sciences Rapperswil, Switzerland"
+command_dir="$IPSEC_DIR"
+
case "$1" in
'')
echo "$IPSEC_SCRIPT command [arguments]"
@@ -94,10 +96,6 @@ case "$1" in
echo "$IPSEC_PIDDIR"
exit 0
;;
-copyright|--copyright)
- set _copyright
- # and fall through, invoking "ipsec _copyright"
- ;;
down)
shift
if [ "$#" -ne 1 ]
@@ -307,13 +305,19 @@ update)
exit 7
fi
;;
-pki)
- shift
- exec $IPSEC_BINDIR/pki "$@"
+aikgen|pki)
+ # programs in BINDIR may be called directly, these two are listed for legacy reasons
+ command_dir="$IPSEC_BINDIR"
+ # fall through
;;
-aikgen)
- shift
- exec $IPSEC_BINDIR/aikgen "$@"
+attest|conftest|dumm|irdumm|pacman|pool|pt-tls-client|scepclient|stroke|\
+duplicheck|error-notify|imv_policy_manager|load-tester|lookip|whitelist|\
+_updown|_imv_policy)
+ # fall through
+ ;;
+copyright|--copyright)
+ set _copyright
+ # fall through
;;
version|--version)
printf "$OS_NAME $IPSEC_NAME $IPSEC_VERSION\n"
@@ -325,16 +329,20 @@ version|--version)
echo "$0: unknown option \`$1' (perhaps command name was omitted?)" >&2
exit 2
;;
+*)
+ echo "$0: unknown command \`$1' (\`$IPSEC_SCRIPT --help' for list)" >&2
+ exit 2
+ ;;
esac
cmd="$1"
shift
-path="$IPSEC_DIR/$cmd"
+path="$command_dir/$cmd"
if [ ! -x "$path" ]
then
- echo "$0: unknown IPsec command \`$cmd' (\`$IPSEC_SCRIPT --help' for list)" >&2
+ echo "$0: unknown command \`$cmd' (\`$IPSEC_SCRIPT --help' for list)" >&2
exit 2
fi