From a839a6f7d0933c6adb856c27797cd772dc0ce6d7 Mon Sep 17 00:00:00 2001 From: Matt Darfeuille Date: Fri, 3 Mar 2017 15:25:55 +0100 Subject: [PATCH] init: Add parameter files for Debian Signed-off-by: Matt Darfeuille Signed-off-by: Tom Eastep --- Shorewall-init/default.debian.systemd | 21 ++++++++++++++++++++ Shorewall-init/default.debian.sysvinit | 27 ++++++++++++++++++++++++++ Shorewall-init/install.sh | 4 ++-- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 Shorewall-init/default.debian.systemd create mode 100644 Shorewall-init/default.debian.sysvinit diff --git a/Shorewall-init/default.debian.systemd b/Shorewall-init/default.debian.systemd new file mode 100644 index 000000000..69f8e4f15 --- /dev/null +++ b/Shorewall-init/default.debian.systemd @@ -0,0 +1,21 @@ +# List the Shorewall products that Shorewall-init is to +# initialize (space-separated list). +# +# Sample: PRODUCTS="shorewall shorewall6" +# +PRODUCTS="" + +# +# Set this to 1 if you want Shorewall-init to react to +# ifup/ifdown and NetworkManager events +# +IFUPDOWN=0 +# +# Where Up/Down events get logged +# +LOGFILE=/var/log/shorewall-ifupdown.log + +# Startup options - set verbosity to 0 (minimal reporting) +OPTIONS="-V0" + +# IOF diff --git a/Shorewall-init/default.debian.sysvinit b/Shorewall-init/default.debian.sysvinit new file mode 100644 index 000000000..3ed139f44 --- /dev/null +++ b/Shorewall-init/default.debian.sysvinit @@ -0,0 +1,27 @@ +# List the Shorewall products that Shorewall-init is to +# initialize (space-separated list). +# +# Sample: PRODUCTS="shorewall shorewall6" +# +PRODUCTS="" + +# +# Set this to 1 if you want Shorewall-init to react to +# ifup/ifdown and NetworkManager events +# +IFUPDOWN=0 +# +# Set this to the name of the file that is to hold +# ipset contents. Shorewall-init will load those ipsets +# during 'start' and will save them there during 'stop'. +# +SAVE_IPSETS="" +# +# Where Up/Down events get logged +# +LOGFILE=/var/log/shorewall-ifupdown.log + +# Startup options - set verbosity to 0 (minimal reporting) +OPTIONS="-V0" + +# IOF diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh index d89dbc3b6..ce9ab3173 100755 --- a/Shorewall-init/install.sh +++ b/Shorewall-init/install.sh @@ -361,8 +361,8 @@ if [ $HOST = debian ]; then [ -n "${DESTDIR}" ] && make_parent_directory ${DESTDIR}${ETC}/default 0755 [ $configure -eq 1 ] || make_parent_directory ${DESTDIR}${CONFDIR}/default 0755 - install_file sysconfig ${DESTDIR}${ETC}/default/$PRODUCT 0644 - echo "sysconfig file installed in ${DESTDIR}${SYSCONFDIR}/${PRODUCT}" + install_file ${SYSCONFFILE} ${DESTDIR}${ETC}/default/$PRODUCT 0644 + echo "${SYSCONFFILE} file installed in ${DESTDIR}${SYSCONFDIR}/${PRODUCT}" fi IFUPDOWN=ifupdown.debian.sh