#export DH_VERBOSE=1
export PYBUILD_NAME=ifupdown2
-export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ifupdown2 --install-scripts=/usr/share/ifupdown2
+export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ --install-scripts=/usr/share/
%:
- dh $@ --with python2 --with systemd --buildsystem=pybuild
+ dh $@ --with=python3 --with systemd --buildsystem=pybuild
override_dh_installman:
- ./scripts/genmanpages.sh ./man.rst ./man
+ ./ifupdown2/man/genmanpages.sh ./ifupdown2/man ./man
dh_installman
+override_dh_install:
+ dh_install
+ mkdir -p debian/ifupdown2/lib/systemd/system/
+ install --mode=644 debian/ifup@.service debian/ifupdown2/lib/systemd/system/
+
+
override_dh_systemd_start:
dh_systemd_start --name=networking --no-start