summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/README.Debian10
-rw-r--r--debian/changelog4
-rw-r--r--debian/dirs1
-rw-r--r--debian/postrm17
4 files changed, 27 insertions, 5 deletions
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/<DEB_HOST_MULTIARCH>/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/<DEB_HOST_MULTIARCH>/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 <debian@jff-webhosting.net> 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
+