From 576d45b309817097c004e9bb347513629cddcffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 3 Oct 2017 09:56:53 +0200 Subject: Remove obsolete directory /usr/lib/openvpn --- debian/README.Debian | 10 ++++++---- debian/changelog | 4 ++++ debian/dirs | 1 - debian/postrm | 17 +++++++++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 debian/postrm diff --git a/debian/README.Debian b/debian/README.Debian index 517cf02..29b15fe 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -186,11 +186,13 @@ from now on. plugin support -------------- -Plugins are now included in the package. They get installed in /usr/lib/openvpn. +Plugins are now included in the package. They get installed in +/usr/lib//openvpn/plugins. Info on what they are and what they do in README.auth-pam and README.down-root. -Append /usr/lib/openvpn/ to the plugin name in the plugin option. -i.e. - plugin /usr/lib/openvpn/openvpn-auth-pam.so [service-type] +Append /usr/lib//openvpn/plugins to the plugin name in +the plugin option. +i.e. + plugin /usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-plugin-auth-pam.so [service-type] Using resolvconf ---------------- diff --git a/debian/changelog b/debian/changelog index ca3f0be..f5f2a3d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,10 @@ 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. -- Jörg Frings-Fürst Mon, 02 Oct 2017 06:57:42 +0200 diff --git a/debian/dirs b/debian/dirs index c715297..e26aab3 100644 --- a/debian/dirs +++ b/debian/dirs @@ -8,5 +8,4 @@ usr/sbin usr/share/man/man8 usr/share/doc/openvpn usr/share/openvpn -usr/lib/openvpn usr/include/openvpn diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..c19a935 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + + +if [ "$1" = purge ] ; then + +# remove obsolete directory + if [ -d /usr/lib/openvpn ]; then + rmdir --ignore-fail-on-non-empty /usr/lib/openvpn + fi + +fi + +#DEBHELPER# + +exit 0 + -- cgit v1.2.3