#!/usr/bin/make -f
+%:
+ dh $@ --with python2
-DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
-
-include /usr/share/cdbs/1/rules/debhelper.mk
+# We use --no-start instead of letting dh_installinit do its thing
+# because, in the postinst, dh_installinit's automatically added code
+# runs before dh_pysupport's automatically added code.
+#
+# This means that when the initscript is started, Python modules
+# installed by the package haven't been fully installed yet.
+override_dh_installinit:
+ dh_installinit --no-start --name invirtibuilder