forked from extern/shorewall_code
Make -s the default on Debian; Issue message when installing in a distro-specific way
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d2992c21f4
commit
91a14b4e82
@ -180,15 +180,20 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CYGWIN" ]; then
|
if [ -n "$CYGWIN" ]; then
|
||||||
|
echo "Installing Cygwin-specific configuration..."
|
||||||
|
else
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
|
echo "Installing Debian-specific configuration..."
|
||||||
DEBIAN=yes
|
DEBIAN=yes
|
||||||
|
SPARSE=yes
|
||||||
elif [ -f /etc/slackware-version ] ; then
|
elif [ -f /etc/slackware-version ] ; then
|
||||||
echo "installing Slackware specific configuration..."
|
echo "Installing Slackware-specific configuration..."
|
||||||
DEST="/etc/rc.d"
|
DEST="/etc/rc.d"
|
||||||
MANDIR="/usr/man"
|
MANDIR="/usr/man"
|
||||||
SLACKWARE=yes
|
SLACKWARE=yes
|
||||||
elif [ -f /etc/arch-release ] ; then
|
elif [ -f /etc/arch-release ] ; then
|
||||||
|
echo "Installing ArchLinux-specific configuration..."
|
||||||
DEST="/etc/rc.d"
|
DEST="/etc/rc.d"
|
||||||
INIT="shorewall"
|
INIT="shorewall"
|
||||||
ARCHLINUX=yes
|
ARCHLINUX=yes
|
||||||
|
@ -173,14 +173,20 @@ if [ -n "$PREFIX" ]; then
|
|||||||
else
|
else
|
||||||
[ -x /usr/share/shorewall/compiler.pl ] || \
|
[ -x /usr/share/shorewall/compiler.pl ] || \
|
||||||
{ echo " ERROR: Shorewall >= 4.3.5 is not installed" >&2; exit 1; }
|
{ echo " ERROR: Shorewall >= 4.3.5 is not installed" >&2; exit 1; }
|
||||||
if [ -z "$CYGWIN" ]; then
|
if [ -n "$CYGWIN" ]; then
|
||||||
|
echo "Installing Cygwin-specific configuration..."
|
||||||
|
else
|
||||||
if [ -d /etc/apt -a -e /usr/bin/dpkg ]; then
|
if [ -d /etc/apt -a -e /usr/bin/dpkg ]; then
|
||||||
|
echo "Installing Debian-specific configuration..."
|
||||||
DEBIAN=yes
|
DEBIAN=yes
|
||||||
|
SPARSE=yes
|
||||||
elif [ -f /etc/slackware-version ] ; then
|
elif [ -f /etc/slackware-version ] ; then
|
||||||
|
echo "Installing Slackware-specific configuration..."
|
||||||
DEST="/etc/rc.d"
|
DEST="/etc/rc.d"
|
||||||
SLACKWARE=yes
|
SLACKWARE=yes
|
||||||
INIT="rc.firewall"
|
INIT="rc.firewall"
|
||||||
elif [ -f /etc/arch-release ] ; then
|
elif [ -f /etc/arch-release ] ; then
|
||||||
|
echo "Installing ArchLinux-specific configuration..."
|
||||||
DEST="/etc/rc.d"
|
DEST="/etc/rc.d"
|
||||||
INIT="shorewall6"
|
INIT="shorewall6"
|
||||||
ARCHLINUX=yes
|
ARCHLINUX=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user