From 5b1e3d3fdc73acb7941270311974b7643be362cf Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 22 Jul 2013 18:12:04 +0200 Subject: [PATCH] ipsec: Add --piddir to retrieve the PID/socket directory --- src/ipsec/_ipsec.8.in | 8 ++++++-- src/ipsec/_ipsec.in | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/ipsec/_ipsec.8.in b/src/ipsec/_ipsec.8.in index a190fa5689..4cbc896865 100644 --- a/src/ipsec/_ipsec.8.in +++ b/src/ipsec/_ipsec.8.in @@ -1,4 +1,4 @@ -.TH @IPSEC_SCRIPT_UPPER@ 8 "2012-06-19" "@IPSEC_VERSION@" "strongSwan" +.TH @IPSEC_SCRIPT_UPPER@ 8 "2013-07-22" "@IPSEC_VERSION@" "strongSwan" .SH NAME @IPSEC_SCRIPT@ \- invoke IPsec utilities .SH SYNOPSIS @@ -259,6 +259,10 @@ returns the \fILIBEXECDIR\fP directory as defined by the configure options. .TP .B "\-\-confdir" returns the \fISYSCONFDIR\fP directory as defined by the configure options. +.PP +.TP +.B "\-\-piddir" +returns the \fIPIDDIR\fP directory as defined by the configure options. .SH FILES /usr/local/lib/ipsec usual utilities directory .SH ENVIRONMENT @@ -274,7 +278,7 @@ command sets them if they are not already set. IPSEC_DIR directory containing ipsec programs and utilities IPSEC_SBINDIR directory containing \fBipsec\fP command IPSEC_CONFDIR directory containing configuration files -IPSEC_PIDDIR directory containing PID files +IPSEC_PIDDIR directory containing PID/socket files IPSEC_SCRIPT name of the ipsec script IPSEC_NAME name of ipsec distribution IPSEC_VERSION version numer of ipsec userland and kernel diff --git a/src/ipsec/_ipsec.in b/src/ipsec/_ipsec.in index 3742b12c7a..03ddb744db 100644 --- a/src/ipsec/_ipsec.in +++ b/src/ipsec/_ipsec.in @@ -76,7 +76,7 @@ case "$1" in echo " version" echo " stroke" echo - echo "Some of these functions have their own manual pages, e.g. ipsec_scepclient(8)." + echo "Some of these functions have their own manual pages, e.g. scepclient(8)." exit 0 ;; --versioncode) @@ -91,6 +91,10 @@ case "$1" in echo "$IPSEC_CONFDIR" exit 0 ;; +--piddir) + echo "$IPSEC_PIDDIR" + exit 0 + ;; copyright|--copyright) set _copyright # and fall through, invoking "ipsec _copyright" -- 2.47.2