forked from extern/shorewall_code
Some fixups for Shorewall/Shorewall-lite coexistence
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4041 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
403145c578
commit
f6d157fe27
@ -48,7 +48,7 @@ if [ $1 -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -L /sbin/shorewall ] || ln -s /usr/share/shorewall-lite/shorewall /sbin/shorewall
|
[ -L /sbin/shorewall ] || [ -f /sbin/shorewall ] || ln -s /usr/share/shorewall-lite/shorewall /sbin/shorewall
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
|
||||||
@ -61,6 +61,12 @@ if [ $1 = 0 ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%triggerpostun -- shorewall-lite <= 3.2.0-0RC1
|
||||||
|
|
||||||
|
if [ -f /usr/share/shorewall-lite/shorewall ]; then
|
||||||
|
[ -L /sbin/shorewall ] || ln -s /usr/share/shorewall-lite/shorewall /sbin/shorewall
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%attr(0755,root,root) %dir /etc/shorewall-lite
|
%attr(0755,root,root) %dir /etc/shorewall-lite
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# /etc/shorewall/shorewall.conf V3.0 - Change the following variables to
|
# /etc/shorewall-lite/shorewall.conf V3.0 - Change the following variables to
|
||||||
# match your setup
|
# match your setup
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/copyleft/gpl.htm]
|
# This program is under GPL [http://www.gnu.org/copyleft/gpl.htm]
|
||||||
#
|
#
|
||||||
# This file should be placed in /etc/shorewall
|
# This file should be placed in /etc/shorewall-lite
|
||||||
#
|
#
|
||||||
# (c) 2006 - Tom Eastep (teastep@shorewall.net)
|
# (c) 2006 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
#
|
||||||
|
@ -8281,9 +8281,9 @@ __EOF__
|
|||||||
__EOF__
|
__EOF__
|
||||||
else
|
else
|
||||||
cat >&3 << __EOF__
|
cat >&3 << __EOF__
|
||||||
[ -z "\$IPTABLES\" ] && IPTABLES=\$(mywhich iptables 2> /dev/null)
|
[ -z "\$IPTABLES" ] && IPTABLES=\$(mywhich iptables 2> /dev/null)
|
||||||
|
|
||||||
[ -n \"$IPTABLES\" -a -e "\$IPTABLES" ] || startup_error "Can't find iptables executable"
|
[ -n "\$IPTABLES" -a -e "\$IPTABLES" ] || startup_error "Can't find iptables executable"
|
||||||
__EOF__
|
__EOF__
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ if [ $1 -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -L /sbin/shorewall ] || ln -s /usr/share/shorewall/shorewall /sbin/shorewall
|
[ -L /sbin/shorewall ] || [ -f /sbin/shorewall] || ln -s /usr/share/shorewall/shorewall /sbin/shorewall
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
|
||||||
@ -63,6 +63,12 @@ if [ $1 = 0 ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%triggerpostun -- shorewall <= 3.2.0-0RC1
|
||||||
|
|
||||||
|
if [ -f /usr/share/shorewall/shorewall ]; then
|
||||||
|
[ -L /sbin/shorewall ] || ln -s /usr/share/shorewall/shorewall /sbin/shorewall
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%attr(0544,root,root) /etc/init.d/shorewall
|
%attr(0544,root,root) /etc/init.d/shorewall
|
||||||
|
@ -59,7 +59,7 @@ DIR=$PWD
|
|||||||
#
|
#
|
||||||
# location and options for GnuPG
|
# location and options for GnuPG
|
||||||
#
|
#
|
||||||
GPG="/usr/bin/gpg -ab --batch --comment 'To verify this, you can download our public key at https://lists.shorewall.net/shorewall.gpg.key'"
|
GPG="/usr/bin/gpg -ab --no-use-agent --comment 'To verify this, you can download our public key at https://lists.shorewall.net/shorewall.gpg.key'"
|
||||||
################################################################################
|
################################################################################
|
||||||
# V A R I A B L E S
|
# V A R I A B L E S
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user