forked from extern/shorewall_code
Make /sbin/shorewall6 a symbolic link
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e7d2b1d4ed
commit
299701e466
@ -276,29 +276,15 @@ echo "Installing Shorewall6 Version $VERSION"
|
|||||||
#
|
#
|
||||||
# Check for /sbin/shorewall6
|
# Check for /sbin/shorewall6
|
||||||
#
|
#
|
||||||
if [ -f ${DESTDIR}/sbin/shorewall6 ]; then
|
if [ -f ${DESTDIR}/sbin/shorewall6 -o -h ${DESTDIR}/sbin/shorewall6 ]; then
|
||||||
first_install=""
|
first_install=""
|
||||||
else
|
else
|
||||||
first_install="Yes"
|
first_install="Yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CYGWIN" ]; then
|
ln -sf shorewall ${DESTDIR}/sbin/shorewall6
|
||||||
install_file shorewall6 ${DESTDIR}/sbin/shorewall6 0755 ${DESTDIR}/var/lib/shorewall6-${VERSION}.bkout
|
|
||||||
if [ -z "$MACHOST" ]; then
|
|
||||||
eval sed -i \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall6
|
|
||||||
eval sed -i \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall6
|
|
||||||
else
|
|
||||||
eval sed -i \'\' -e \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall6
|
|
||||||
eval sed -i \'\' -e \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall6
|
|
||||||
fi
|
|
||||||
echo "shorewall6 control program installed in ${DESTDIR}/sbin/shorewall6"
|
|
||||||
else
|
|
||||||
install_file shorewall6 ${DESTDIR}/bin/shorewall6 0755 ${DESTDIR}/var/lib/shorewall6-${VERSION}.bkout
|
|
||||||
eval sed -i \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/bin/shorewall6
|
|
||||||
eval sed -i \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/bin/shorewall6
|
|
||||||
echo "shorewall6 control program installed in ${DESTDIR}/bin/shorewall6"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
echo "/sbin/shorewall6 linked to /sbin/shorewall"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install the Firewall Script
|
# Install the Firewall Script
|
||||||
|
Loading…
Reference in New Issue
Block a user