summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2014-11-11 11:41:57 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2014-11-11 12:03:50 +0100
commitdc964a547f8d38c56d902538f818a40c0bc262b0 (patch)
tree45b3b06e7377ae87725530dcc4ab39023c1dea6b /debian/rules
parent52a3e3b0ad96506d705d1759f5a41b40563167ec (diff)
Enable openvpn.service on systemd. (Closes: #768411)
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index c5d982d..ba759c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,7 @@ endif
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
- dh $@
+ dh $@ --with systemd
override_dh_auto_configure:
dh_auto_configure -- $(shell dpkg-buildflags --export=configure) --enable-password-save --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --with-ifconfig-path=/sbin/ifconfig $(ROUTE_ARGS) --with-plugindir=\$${prefix}/lib/openvpn --includedir=\$${prefix}/include/openvpn --enable-pkcs11 --enable-x509-alt-username --enable-systemd
@@ -70,3 +70,6 @@ override_dh_installinit:
override_dh_compress:
dh_compress --exclude=.cnf --exclude=pkitool
+override_dh_systemd_start:
+ dh_systemd_start --restart-after-upgrade
+