diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2015-09-04 13:16:33 +0200 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2015-09-04 13:16:33 +0200 |
commit | fa0b3cebfaf1c68780e5cf6e3241a6ba1899276c (patch) | |
tree | 08a3d359d68e968eb69421d15bc8d0b64ecbca23 /debian | |
parent | 78e2604ab82b470fece2d17ccfcbd38c41c1027c (diff) |
Move old *-path args to env vars
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/rules | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 984c60c..1b4c51d 100755 --- a/debian/rules +++ b/debian/rules @@ -2,9 +2,11 @@ ifeq ($(DEB_HOST_ARCH_OS), kfreebsd) # Avoid the /sbin/route wrapper which doesn't provide FreeBSD CLI as expected -ROUTE_ARGS := --with-route-path=/lib/freebsd/route +ENV_VARS := IFCONFIG=/sbin/ifconfig ROUTE=/lib/freebsd/route +EXTRA_ARGS := else -ROUTE_ARGS := --with-route-path=/sbin/route --with-iproute-path=/sbin/ip --enable-iproute2 +ENV_VARS := SYSTEMD_ASK_PASSWORD=/bin/systemd-ask-password IFCONFIG=/sbin/ifconfig ROUTE=/sbin/route IPROUTE=/sbin/ip +EXTRA_ARGS := --enable-systemd --enable-iproute2 endif #export DH_VERBOSE=1 @@ -14,7 +16,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all 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-plugindir=\$${prefix}/lib/openvpn --includedir=\$${prefix}/include/openvpn --enable-pkcs11 --enable-x509-alt-username --enable-systemd + $(ENV_VARS) 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-plugindir=\$${prefix}/lib/openvpn --includedir=\$${prefix}/include/openvpn --enable-pkcs11 --enable-x509-alt-username $(EXTRA_ARGS) override_dh_auto_build: |