summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 28 insertions, 0 deletions
diff --git a/configure b/configure
index 744a756..b54774c 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,8 @@
#!/bin/sh
+XSLTPATH="/usr/share/eurephia/xslt"
+EUREPHIADM_XSLT="${XSLTPATH}/eurephiadm"
+EUREPHIADM_XSLT_SET=0
usage() {
cat <<EOF
configure help for eurephia
@@ -7,6 +10,8 @@ configure help for eurephia
--help | -h -- This help screen
--prefix <path> -- Root directory of installation
(default: /etc/openvpn/eurephia)
+ --xslt-path | -X -- Default XSLT path
+ (default: /usr/share/eurephia/xslt)
--debug | -D -- Enable verbose debug logging
--show-secrets | -S -- Log passwords as clear text in log files
| (only available when debug is enabled)
@@ -19,6 +24,8 @@ configure help for eurephia
--eurephiadm | -A -- Build command line admin utility
--eurephiadm-fw -- Include the firewall info even without any
firewall interface being built
+ --eurephiadm-xslt -- eurephiadm XSLT root path
+ (default: ${EUREPHIADM_XSLT})
EOF
}
@@ -29,6 +36,7 @@ ADMIN="";
OPENVPN_SRC_DIR=""
PREFIX="/etc/openvpn/eurephia"
SQLITE3PREFIX="/etc/openvpn"
+
PLUGIN=""
while [ ! -z "$1" ]; do
case $1 in
@@ -40,6 +48,14 @@ while [ ! -z "$1" ]; do
PREFIX="$2";
shift;
;;
+ -X|--xslt-path)
+ PARAMS="${PARAMS} -DXSLTROOT:STRING=$2"
+ XSLTPATH="$2"
+ if [ "${EUREPHIADM_XSLT_SET}" = "0" ]; then
+ EUREPHIADM_XSLT="${XSLTPATH}/eurephiadm"
+ fi
+ shift
+ ;;
-D|--debug)
PARAMS="${PARAMS} -DDEBUG=ON"
DEBUG_WARN=1
@@ -76,6 +92,12 @@ while [ ! -z "$1" ]; do
--eurephiadm-fw)
PARAMS="${PARAMS} -DFIREWALL=ON"
;;
+ --eurephiadm-xslt)
+ PARAMS="${PARAMS} -DEUREPHIADM_XSLT_PATH:STRING=$2"
+ EUREPHIADM_XSLT="$2"
+ EUREPHIADM_XSLT_SET=1
+ shift
+ ;;
*)
echo "Unkown option: $1"
exit 2
@@ -121,6 +143,12 @@ if [ $ec = 0 ]; then
echo " SQLite3 database path: ${SQLITE3PREFIX}"
fi
+ if [ ! -z "${ADMIN}" ]; then
+ echo ""
+ echo " XSLT base path: ${XSLTPATH}"
+ echo " eurephiadm XSLT path: ${EUREPHIADM_XSLT}"
+ fi
+
echo
echo
if [ "$DEBUG_WARN" = 1 ]; then