Update packaging to dh7
[invirt/packages/invirt-dev.git] / debian / rules
index 4bde507..09190f6 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 #!/usr/bin/make -f
-
-DEB_PYTHON_SYSTEM=pysupport
+%:
+       dh $@ --with python2
 
 # We use --no-start instead of letting dh_installinit do its thing
 # because, in the postinst, dh_installinit's automatically added code
 
 # We use --no-start instead of letting dh_installinit do its thing
 # because, in the postinst, dh_installinit's automatically added code
@@ -8,10 +8,5 @@ DEB_PYTHON_SYSTEM=pysupport
 #
 # This means that when the initscript is started, Python modules
 # installed by the package haven't been fully installed yet.
 #
 # This means that when the initscript is started, Python modules
 # installed by the package haven't been fully installed yet.
-DEB_DH_INSTALLINIT_ARGS += --no-start
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
-
-clean::
-       rm -rf python/invirt.builder.egg-info
+override_dh_installinit:
+       dh_installinit --no-start --name invirtibuilder