about summary refs log tree commit diff
path: root/debian/rules
diff options
context:
space:
mode:
authorChris Boot <bootc@bootc.net>2015-11-19 15:08:42 +0000
committerMichael Biebl <biebl@debian.org>2015-12-05 00:24:01 +0100
commit878be836b2a556654220fafcc053888f01bf2cbe (patch)
tree7a1b62df3b4fd058dc54aefde9e1bdfd01614b44 /debian/rules
parent287a91dde8bb3fbc6bdbdb039fcdad5415a1ae75 (diff)
Use dh_ppp to manage dependencies on ppp
Bump Build-Depends on ppp-dev to (>= 2.4.7-1+1), which includes
dh_ppp that has --plugin-dir. Add ppp addon to dh sequencer. Add
Breaks: ${misc:Breaks} (generated by dh_ppp) and remove the version
from Recommends: ppp. Use dh_ppp --plugin-dir to determine the ppp
plugin directory.

Closes: #805565
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules9
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 9922b71a..5a493f38 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,8 +2,10 @@
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
+PPPD_PLUGIN_DIR := $(shell dh_ppp --plugin-dir)
+
 %:
-	dh $@ --with gir,systemd,autoreconf
+	dh $@ --with gir,systemd,autoreconf,ppp
 
 autoreconf:
 	gtkdocize --copy
@@ -16,7 +18,7 @@ override_dh_autoreconf:
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		--libexecdir=/usr/lib/NetworkManager \
-		--with-pppd-plugin-dir=/usr/lib/pppd/2.4.6 \
+		--with-pppd-plugin-dir=$(PPPD_PLUGIN_DIR) \
 		--with-pppd=/usr/sbin/pppd \
 		--with-pppoe=/usr/sbin/pppoe \
 		--with-resolvconf=/sbin/resolvconf \
@@ -70,4 +72,7 @@ override_dh_systemd_start:
 	dh_systemd_start -pnetwork-manager --no-start NetworkManager-wait-online.service
 	dh_systemd_start -pnetwork-manager --restart-after-upgrade NetworkManager.service
 
+override_dh_ppp:
+	dh_ppp --breaks
+
 override_dh_auto_test: