Commit b2464790 authored by Sven Geuer's avatar Sven Geuer

Remove upgrade support for Debian Releases before squeeze.

parent 4013e1bb
......@@ -24,8 +24,9 @@ arno-iptables-firewall (2.0.3-1) unstable; urgency=medium
* Convert debian/po/fr.po and sv.po from latin1 to utf8.
* Clean up debian/dirs
- Remove redundant directories
* Remove upgrade support for Debian Releases before squeeze.
-- Sven Geuer <debmaint@g-e-u-e-r.de> Wed, 02 Jan 2019 20:44:10 +0100
-- Sven Geuer <debmaint@g-e-u-e-r.de> Tue, 08 Jan 2019 21:52:58 +0100
arno-iptables-firewall (2.0.1.f-1.1) unstable; urgency=medium
......
......@@ -24,33 +24,6 @@ set -e
. /usr/share/debconf/confmodule
db_version 2.0
# Do we need to preserve this? No-one upgrades from such an old version in 2018.
aif_move_archaic_config_files () {
if [ -n "$2" ] && dpkg --compare-versions "$2" le "1.8.6.c-4"; then
# move config files from versions prior to 1.8.8
if [ -f /etc/arno-iptables-firewall.debconf ]; then
echo "Moving debconf settings to /etc/arno-iptables-firewall/debconf.cfg."
mv /etc/arno-iptables-firewall.debconf /etc/arno-iptables-firewall/debconf.cfg
fi
if [ -f /etc/arno-firewall-blocked-hosts ]; then
echo "Moving host blacklist to /etc/arno-iptables-firewall/blocked-hosts."
mv /etc/arno-firewall-blocked-hosts /etc/arno-iptables-firewall/blocked-hosts
fi
if [ -f /etc/arno-firewall-mac-addresses ]; then
echo "Moving MAC address filter list to /etc/arno-iptables-firewall/mac-addresses."
mv /etc/arno-firewall-mac-addresses /etc/arno-iptables-firewall/mac-addresses
fi
if [ -f /etc/arno-firewall-custom-rules ]; then
echo "Merging custom iptables rules into /etc/arno-iptables-firewall/custom-rules."
cat /etc/arno-firewall-custom-rules >> /etc/arno-iptables-firewall/custom-rules
rm -f /etc/arno-firewall-custom-rules
fi
fi
}
# configuration specific to arno-iptables-firewall encapsulated in a function.
aif_configure () {
# store debconf generated configuration here
......@@ -182,7 +155,6 @@ aif_restart () {
case "$1" in
configure)
aif_move_archaic_config_files $@
aif_configure $@
update-rc.d arno-iptables-firewall defaults >/dev/null
;;
......
......@@ -36,27 +36,6 @@ mv_conffile()
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" le-nl "1.8.6.c-4"; then
if [ -e /etc/default/arno-iptables-firewall ]; then
echo "Moving old firewall configuration to /etc/arno-iptables-firewall/firewall.conf."
if [ ! -d /etc/arno-iptables-firewall ]; then
mkdir /etc/arno-iptables-firewall
fi
mv_conffile "/etc/default/arno-iptables-firewall" "/etc/arno-iptables-firewall/firewall.conf"
fi
fi
if dpkg --compare-versions "$2" le-nl "1.8.8.l-1"; then
echo "Moving plugins from /etc to /usr/share/arno-iptables-firewall/plugins."
for f in /etc/arno-iptables-firewall/plugins/*.plugin; do
mv_conffile "$f" "$f.dpkg-old"
done
fi
if dpkg --compare-versions "$2" le-nl "1.9.2.h-1~"; then
echo "Updating firewall startup behavior -- delayed until network becomes available."
update-rc.d -f arno-iptables-firewall remove
fi
if dpkg --compare-versions "$2" le-nl "2.0.1-1"; then
if [ -e /etc/arno-iptables-firewall/debconf.cfg ]; then
echo "Moving pre-conf.d debconf settings into the new location and format."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment