mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-16 09:50:33 +01:00
Revert "Move ${SBINDIR}/shorewall6 to the Shorewall-core product"
This reverts commit 1ca886abd7
.
This commit is contained in:
parent
126c5ccd53
commit
8c10c96844
@ -315,7 +315,6 @@ fi
|
|||||||
# Install the CLI
|
# Install the CLI
|
||||||
#
|
#
|
||||||
install_file shorewall ${DESTDIR}${SBINDIR}/shorewall 0755
|
install_file shorewall ${DESTDIR}${SBINDIR}/shorewall 0755
|
||||||
ln -sf shorewall ${DESTDIR}${SBINDIR}/shorewall6
|
|
||||||
[ $SHAREDIR = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${SBINDIR}/shorewall
|
[ $SHAREDIR = /usr/share ] || eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${SBINDIR}/shorewall
|
||||||
echo "Shorewall CLI program installed in ${DESTDIR}${SBINDIR}/shorewall"
|
echo "Shorewall CLI program installed in ${DESTDIR}${SBINDIR}/shorewall"
|
||||||
#
|
#
|
||||||
|
@ -71,21 +71,7 @@ setup_product_environment() { # $1 = if non-empty, source shorewallrc again now
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ! -f ${SHAREDIR}/${PRODUCT}/version ]; then
|
[ -f ${SHAREDIR}/${PRODUCT}/version ] || fatal_error "$g_product does not appear to be installed on this system"
|
||||||
if [ $PRODUCT = shorewall6 ]; then
|
|
||||||
if [ -f ${SHAREDIR}/shorewall6-lite/version ]; then
|
|
||||||
PRODUCT=shorewall6-lite
|
|
||||||
g_sharedir="${SHAREDIR}"/shorewall6-lite
|
|
||||||
g_confdir="${CONFDIR}"/shorewall6-lite
|
|
||||||
g_product="Shorewall6 Lite"
|
|
||||||
g_lite=Yes
|
|
||||||
else
|
|
||||||
fatal_error "Neither Shorewall6 nor Shorewall6 Lite are installed on this system"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
fatal_error "$g_product does not appear to be installed on this system"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
#
|
#
|
||||||
# We need to do this again, now that we have the correct product
|
# We need to do this again, now that we have the correct product
|
||||||
#
|
#
|
||||||
|
@ -134,8 +134,6 @@ fi
|
|||||||
|
|
||||||
remove_directory ${SHAREDIR}/shorewall
|
remove_directory ${SHAREDIR}/shorewall
|
||||||
remove_file ~/.shorewallrc
|
remove_file ~/.shorewallrc
|
||||||
remove_file ${SBINDIR}/shorewall
|
|
||||||
remove_file ${SBINDIR}/shorewall6
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Report Success
|
# Report Success
|
||||||
|
@ -1087,6 +1087,10 @@ if [ ${PRODUCT} = shorewall6 ]; then
|
|||||||
# Symbolically link 'functions' to lib.base
|
# Symbolically link 'functions' to lib.base
|
||||||
#
|
#
|
||||||
ln -sf lib.base ${DESTDIR}${SHAREDIR}/${PRODUCT}/functions
|
ln -sf lib.base ${DESTDIR}${SHAREDIR}/${PRODUCT}/functions
|
||||||
|
#
|
||||||
|
# And create a symbolic link for the CLI
|
||||||
|
#
|
||||||
|
ln -sf shorewall ${DESTDIR}${SBINDIR}/shorewall6
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d Perl ]; then
|
if [ -d Perl ]; then
|
||||||
|
@ -149,6 +149,10 @@ if [ $configure -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $PRODUCT = shorewall6 ]; then
|
||||||
|
remove_file ${SBINDIR}/shorewall6
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -h ${SHAREDIR}/$PRODUCT/init ]; then
|
if [ -h ${SHAREDIR}/$PRODUCT/init ]; then
|
||||||
FIREWALL=$(readlink -m -q ${SHAREDIR}/$PRODUCT/init)
|
FIREWALL=$(readlink -m -q ${SHAREDIR}/$PRODUCT/init)
|
||||||
elif [ -n "$INITFILE" ]; then
|
elif [ -n "$INITFILE" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user