From b4edc4b357e177b7da614cc2e5042c4fd05faa44 Mon Sep 17 00:00:00 2001 From: Rene Mayrhofer Date: Thu, 12 Mar 2009 15:41:14 +0000 Subject: - Minor Debian packaging fixes. --- debian/changelog | 5 +++++ debian/rules | 5 +++++ debian/strongswan.postrm | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 584e44338..b2515cc6f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,11 @@ strongswan (4.2.12-1) unstable; urgency=low * New upstream release + * Explicitly remove directories /etc/ipsec.d and /var/run/pluto on purge. + * No longer mark ipsec.conf and ipsec.secrets as conffiles, as they + are modified by postinst. Although I don't particularly like this + method of patching DEBIAN/conffiles, I don't have a better solution + right now. Thus take patch from Mathieu Parent. -- Rene Mayrhofer Sun, 01 Mar 2009 10:46:08 +0000 diff --git a/debian/rules b/debian/rules index 7bf35273d..618717875 100755 --- a/debian/rules +++ b/debian/rules @@ -146,6 +146,11 @@ binary-common: dh_fixperms -X etc/ipsec.secrets -X etc/ipsec.d dh_makeshlibs dh_installdeb +ifeq ($(DH_OPTIONS), -a) + # /etc/ipsec.{conf,secrets} are not conffiles (#515095) + egrep -v '^/etc/ipsec.(conf|secrets)' debian/openswan/DEBIAN/conffiles > debian/openswan/DEBIAN/conffiles.new + mv debian/openswan/DEBIAN/conffiles.new debian/openswan/DEBIAN/conffiles +endif dh_shlibdeps dh_gencontrol dh_md5sums diff --git a/debian/strongswan.postrm b/debian/strongswan.postrm index e42af1082..18f9069b6 100644 --- a/debian/strongswan.postrm +++ b/debian/strongswan.postrm @@ -30,6 +30,12 @@ case "$1" in esac +if [ "$1" = "purge" ] ; then + update-rc.d ipsec remove >/dev/null + rm -rf /etc/ipsec.d/ + rm -rf /var/run/pluto/ +fi + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. -- cgit v1.2.3