[pve-devel] [PATCH V2 ifupdown2 2/3] add debian/rules
    Alexandre Derumier 
    aderumier at odiso.com
       
    Thu Jan  9 12:23:01 CET 2020
    
    
  
comment export DH_VERBOSE=1 to have patches applied
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 debian/rules | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100755 debian/rules
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6274b3a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+export PYBUILD_NAME=ifupdown2
+export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ --install-scripts=/usr/share/
+
+%:
+	dh $@ --with python2 --with systemd --buildsystem=pybuild
+
+override_dh_installman:
+	./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 at .service debian/ifupdown2/lib/systemd/system/
+
+
+override_dh_systemd_start:
+	dh_systemd_start --name=networking --no-start
+
+override_dh_systemd_enable:
+	dh_systemd_enable --name=networking
+
+override_dh_compress:
+	dh_compress -X.py
-- 
2.20.1
    
    
More information about the pve-devel
mailing list