move renamed conffiles in maintscripts

pull/808/head
Daniel Schaal 2014-03-15 13:38:58 +01:00
parent 05dc81d880
commit e2b9cb01f5
3 changed files with 25 additions and 0 deletions

6
debian/postinst vendored
View File

@ -80,6 +80,12 @@ EOF
;;
esac
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
dpkg-maintscript-helper mv_conffile /etc/fail2ban/filter.d/couriersmtp.conf /etc/fail2ban/filter.d/courier-smtp.conf 0.8.11-1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/fail2ban/filter.d/courierlogin.conf /etc/fail2ban/filter.d/courier-auth.conf 0.8.11-1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/fail2ban/action.d/firewall-cmd-direct-new.conf /etc/fail2ban/action.d/firewallcmd-new.conf 0.8.11-1 -- "$@"
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

6
debian/postrm vendored
View File

@ -34,6 +34,12 @@ case "$1" in
;;
esac
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
dpkg-maintscript-helper mv_conffile /etc/fail2ban/filter.d/couriersmtp.conf /etc/fail2ban/filter.d/courier-smtp.conf 0.8.11-1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/fail2ban/filter.d/courierlogin.conf /etc/fail2ban/filter.d/courier-auth.conf 0.8.11-1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/fail2ban/action.d/firewall-cmd-direct-new.conf /etc/fail2ban/action.d/firewallcmd-new.conf 0.8.11-1 -- "$@"
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

13
debian/preinst vendored Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
dpkg-maintscript-helper mv_conffile /etc/fail2ban/filter.d/couriersmtp.conf /etc/fail2ban/filter.d/courier-smtp.conf 0.8.11-1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/fail2ban/filter.d/courierlogin.conf /etc/fail2ban/filter.d/courier-auth.conf 0.8.11-1 -- "$@"
dpkg-maintscript-helper mv_conffile /etc/fail2ban/action.d/firewall-cmd-direct-new.conf /etc/fail2ban/action.d/firewallcmd-new.conf 0.8.11-1 -- "$@"
fi
#DEBHELPER#
exit 0