]> git.proxmox.com Git - mirror_ifupdown2.git/blobdiff - debian/rules
addons: address: fix merge-indentation issue
[mirror_ifupdown2.git] / debian / rules
index db0fef37394a0b85e8ec7eb6659d6d3f22b87ac4..ea6f43427df57ba5e748e3d4b9dfe0918f2777c2 100755 (executable)
@@ -2,15 +2,21 @@
 
 #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