diff options
-rw-r--r-- | debian/changelog | 9 | ||||
-rw-r--r-- | debian/postrm | 16 |
2 files changed, 16 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog index f5f2a3d..a49323f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,10 +6,11 @@ openvpn (2.4.4-1) UNRELEASED; urgency=medium it is enabled by default for dh compat level 10. * New debian/openvpn.lintian-overrides: - Override duplicate upstream changelog warning. - * debian/dirs: - - Remove empty directory /usr/lib/openvpn. The plugins are now in - /usr/lib/*/openvpn/plugins. - - Add debian/postrm to remove /usr/lib/openvpn on purge. + * Remote obsolete directory /usr/lib/openvpn (The plugins direcotoy are now + /usr/lib/*/openvpn/plugins): + - Remove /usr/lib/openvpn from debian/dirs. + - Add debian/postrm to remove /usr/lib/openvpn on purge and remove. + - Rewrite plugin section at README.Debian -- Jörg Frings-Fürst <debian@jff-webhosting.net> Mon, 02 Oct 2017 06:57:42 +0200 diff --git a/debian/postrm b/debian/postrm index c19a935..970a802 100644 --- a/debian/postrm +++ b/debian/postrm @@ -2,14 +2,20 @@ set -e -if [ "$1" = purge ] ; then +case "$1" in + purge|remove) + +# # remove obsolete directory - if [ -d /usr/lib/openvpn ]; then - rmdir --ignore-fail-on-non-empty /usr/lib/openvpn - fi +# new at release 2.4.4-1 +# + if [ -d /usr/lib/openvpn ]; then + rmdir --ignore-fail-on-non-empty /usr/lib/openvpn + fi + ;; -fi +esac #DEBHELPER# |