---
 Shorewall6/install.sh |   25 +++++++++++++++++++++++--
 Shorewall6/lib.base   |    2 ++
 Shorewall6/shorewall6 |    1 +
 3 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/Shorewall6/install.sh b/Shorewall6/install.sh
index 5ea1fb3..1937f41 100755
--- a/Shorewall6/install.sh
+++ b/Shorewall6/install.sh
@@ -175,12 +175,14 @@ if [ -n "$BASE" ]; then
     [ -n ${ETC:=${BASE}/etc/} ]
     [ -n ${SBIN:=${BASE}/sbin/} ]
     [ -n ${SHARE:=${BASE}/share/} ]
+    [ -n ${LIBEXEC:=${BASE}/libexec/} ]
     [ -n ${VAR:=${BASE}/var/lib/} ]
     [ -n ${MANDIR:=${BASE}/share/man} ]
 else
     [ -n ${ETC:=/etc/} ]
     [ -n ${SBIN:=/sbin/} ]
     [ -n ${SHARE:=/usr/share/} ]
+    [ -n ${LIBEXEC:=/usr/libexec/} ]
     [ -n ${VAR:=/var/lib/} ]
     [ -n ${MANDIR:=/usr/share/man} ]
 fi
@@ -233,6 +235,22 @@ case "$SHARE" in
        ;;
 esac
 
+case "$LIBEXEC" in
+    /*/)
+       ;;
+    /*)
+       LIBEXEC=$LIBEXEC/
+       ;;
+    *)
+       if [ -n "$BASE" ]; then
+           LIBEXEC=$BASE/$LIBEXEC/
+       else
+           echo "ERROR: LIBEXEC must contain an absolute path name" >&2
+           exit 1
+       fi
+       ;;
+esac
+
 case "$VAR" in
     /*/)
        ;;
@@ -252,6 +270,7 @@ esac
 ETC=$(echo $ETC | sed "s'//'/'g")
 SBIN=$(echo $SBIN | sed "s'//'/'g")
 SHARE=$(echo $SHARE | sed "s'//'/'g")
+LIBEXEC=$(echo $LIBEXEC | sed "s'//'/'g")
 VAR=$(echo $VAR | sed "s'//'/'g")
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
@@ -334,7 +353,8 @@ if [ -n "${DESTDIR}${OWNERSHIP}" ]; then
 fi
 
 #
-# Create ${ETC}shorewall, ${SHARE}shorewall and /var/lib/shorewall6 if needed
+# Create ${ETC}shorewall, ${SHARE}shorewall, ${LIBEXEC}shorewall and
+# /var/lib/shorewall6 if needed
 #
 mkdir -p ${DESTDIR}${ETC}shorewall6
 mkdir -p ${DESTDIR}${SBIN}
@@ -829,12 +849,13 @@ done
 export ETC
 export SBIN
 export SHARE
+export LIBEXEC
 export VAR
 
 perl -i -e '
 
 while ( <> ) {
-   for my $var qw( ETC SBIN SHARE VAR ) {
+   for my $var qw( ETC SBIN SHARE LIBEXEC VAR ) {
       if ( /^$var=/ ) {
          $_ = "g_" . lc( $var ) . "=" . $ENV{$var} . "\n";
       }
diff --git a/Shorewall6/lib.base b/Shorewall6/lib.base
index 0fefe6a..ddd2c51 100644
--- a/Shorewall6/lib.base
+++ b/Shorewall6/lib.base
@@ -35,6 +35,7 @@
 ETC=/etc/
 SBIN=/sbin/
 SHARE=/usr/share/
+LIBEXEC=/usr/libexec/
 VAR=/var/lib/
 
 SHOREWALL_LIBVERSION=40407
@@ -44,6 +45,7 @@ SHOREWALL_CAPVERSION=40417
 [ -n "${SHAREDIR:=${g_share}shorewall6}" ]
 [ -n "${CONFDIR:=${g_etc}shorewall6}" ]
 [ -n "${PERLSHAREDIR:=${g_share}shorewall}" ]
+[ -n "${PERLLIBEXECDIR:=${g_libexec}shorewall}" ]
 
 #
 # Conditionally produce message
diff --git a/Shorewall6/shorewall6 b/Shorewall6/shorewall6
index c690f49..9e0db32 100755
--- a/Shorewall6/shorewall6
+++ b/Shorewall6/shorewall6
@@ -31,6 +31,7 @@
 ETC=/etc/
 SBIN=/sbin/
 SHARE=/usr/share/
+LIBEXEC=/usr/libexec
 VAR=/var/lib/
 #
 # Set the configuration variables from shorewall6.conf
-- 
1.7.4


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to