forked from extern/shorewall_code
Expunge the g_libexec variable
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
526ad75c49
commit
749e239d15
@ -38,7 +38,6 @@ if [ -z "$g_readrc" ]; then
|
|||||||
#
|
#
|
||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/$g_program
|
g_sharedir="$SHAREDIR"/$g_program
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_perllib="$PERLLIBDIR"
|
g_perllib="$PERLLIBDIR"
|
||||||
|
@ -30,7 +30,6 @@ if [ -z "$g_readrc" ]; then
|
|||||||
#
|
#
|
||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/$g_program
|
g_sharedir="$SHAREDIR"/$g_program
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_perllib="$PERLLIBDIR"
|
g_perllib="$PERLLIBDIR"
|
||||||
@ -886,14 +885,14 @@ show_command() {
|
|||||||
if [ -n "$g_filemode" ]; then
|
if [ -n "$g_filemode" ]; then
|
||||||
echo "CONFIG_PATH=$CONFIG_PATH"
|
echo "CONFIG_PATH=$CONFIG_PATH"
|
||||||
echo "VARDIR=$VARDIR"
|
echo "VARDIR=$VARDIR"
|
||||||
echo "LIBEXEC=$g_libexec"
|
echo "LIBEXEC=${LIBEXECDIR}"
|
||||||
echo "SBINDIR=$g_sbindir"
|
echo "SBINDIR=$g_sbindir"
|
||||||
echo "CONFDIR=${CONFDIR}"
|
echo "CONFDIR=${CONFDIR}"
|
||||||
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR=${VARDIR}"
|
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR=${VARDIR}"
|
||||||
else
|
else
|
||||||
echo "Default CONFIG_PATH is $CONFIG_PATH"
|
echo "Default CONFIG_PATH is $CONFIG_PATH"
|
||||||
echo "Default VARDIR is /var/lib/$g_program"
|
echo "Default VARDIR is /var/lib/$g_program"
|
||||||
echo "LIBEXEC is $g_libexec"
|
echo "LIBEXEC is ${LIBEXECDIR}"
|
||||||
echo "SBINDIR is $g_sbindir"
|
echo "SBINDIR is $g_sbindir"
|
||||||
echo "CONFDIR is ${CONFDIR}"
|
echo "CONFDIR is ${CONFDIR}"
|
||||||
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR is ${VARDIR}"
|
[ -n "$g_lite" ] && [ ${VARDIR} != /var/lib/$g_program ] && echo "LITEDIR is ${VARDIR}"
|
||||||
|
@ -53,7 +53,6 @@ g_program=shorewall-lite
|
|||||||
#
|
#
|
||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/shorewall-lite
|
g_sharedir="$SHAREDIR"/shorewall-lite
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_confdir="$CONFDIR"/shorewall-lite
|
g_confdir="$CONFDIR"/shorewall-lite
|
||||||
|
@ -33,7 +33,6 @@ PRODUCT=shorewall-lite
|
|||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_program=$PRODUCT
|
g_program=$PRODUCT
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/shorewall-lite
|
g_sharedir="$SHAREDIR"/shorewall-lite
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_confdir="$CONFDIR"/shorewall-lite
|
g_confdir="$CONFDIR"/shorewall-lite
|
||||||
|
@ -39,7 +39,6 @@ fi
|
|||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_program=$PRODUCT
|
g_program=$PRODUCT
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR/shorewall"
|
g_sharedir="$SHAREDIR/shorewall"
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_perllib="$PERLLIBDIR"
|
g_perllib="$PERLLIBDIR"
|
||||||
|
@ -363,7 +363,7 @@ compiler() {
|
|||||||
local shorewallrc
|
local shorewallrc
|
||||||
local shorewallrc1
|
local shorewallrc1
|
||||||
|
|
||||||
pc=$g_libexec/shorewall/compiler.pl
|
pc=${LIBEXECDIR}/shorewall/compiler.pl
|
||||||
|
|
||||||
if [ $(id -u) -ne 0 ]; then
|
if [ $(id -u) -ne 0 ]; then
|
||||||
if [ -z "$g_shorewalldir" -o "$g_shorewalldir" = /etc/$g_program ]; then
|
if [ -z "$g_shorewalldir" -o "$g_shorewalldir" = /etc/$g_program ]; then
|
||||||
@ -430,7 +430,7 @@ compiler() {
|
|||||||
PERL=/usr/bin/perl
|
PERL=/usr/bin/perl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $g_perllib = ${g_libexec}/shorewall ]; then
|
if [ $g_perllib = ${LIBEXECDIR}/shorewall ]; then
|
||||||
$PERL $debugflags $pc $options $@
|
$PERL $debugflags $pc $options $@
|
||||||
else
|
else
|
||||||
PERL5LIB=$g_perllib
|
PERL5LIB=$g_perllib
|
||||||
|
@ -33,7 +33,6 @@ PRODUCT=shorewall
|
|||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_program=$PRODUCT
|
g_program=$PRODUCT
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/shorewall
|
g_sharedir="$SHAREDIR"/shorewall
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_perllib="$PERLLIBDIR"
|
g_perllib="$PERLLIBDIR"
|
||||||
|
@ -52,7 +52,6 @@ g_program=shorewall6-lite
|
|||||||
#
|
#
|
||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/shorewall6-lite
|
g_sharedir="$SHAREDIR"/shorewall6-lite
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_confdir="$CONFDIR"/shorewall6-lite
|
g_confdir="$CONFDIR"/shorewall6-lite
|
||||||
|
@ -33,7 +33,6 @@ PRODUCT=shorewall6-lite
|
|||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_program=$PRODUCT
|
g_program=$PRODUCT
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/shorewall6-lite
|
g_sharedir="$SHAREDIR"/shorewall6-lite
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_confdir="$CONFDIR"/shorewall6-lite
|
g_confdir="$CONFDIR"/shorewall6-lite
|
||||||
|
@ -33,7 +33,6 @@ PRODUCT=shorewall6
|
|||||||
. /usr/share/shorewall/shorewallrc
|
. /usr/share/shorewall/shorewallrc
|
||||||
|
|
||||||
g_program=$PRODUCT
|
g_program=$PRODUCT
|
||||||
g_libexec="$LIBEXECDIR"
|
|
||||||
g_sharedir="$SHAREDIR"/shorewall6
|
g_sharedir="$SHAREDIR"/shorewall6
|
||||||
g_sbindir="$SBINDIR"
|
g_sbindir="$SBINDIR"
|
||||||
g_perllib="$PERLLIBDIR"
|
g_perllib="$PERLLIBDIR"
|
||||||
|
Loading…
Reference in New Issue
Block a user