diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-10-03 10:18:13 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-10-03 10:18:13 +0200 |
commit | 46aa869cd4bbb466e9d02322898ccbe7a895ab45 (patch) | |
tree | 24f5f4dc2e84b4ebd21872c047e00a1faa71eee3 | |
parent | 576d45b309817097c004e9bb347513629cddcffb (diff) |
Rewrite d/changelog and d/postrm
-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# |