Catch calls to restart Postgres and translate them into a sequential
[invirt/packages/invirt-database.git] / debian / rules
index 7ad2c34..c5d84e2 100755 (executable)
@@ -1,8 +1,13 @@
 #!/usr/bin/make -f
 
-DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
 
-DEB_PYTHON_SYSTEM=pysupport
+DEB_DIVERT_EXTENSION = .invirt
+DEB_DIVERT_FILES_sipb-xen-database-server += \
+       /etc/postgresql/8.3/main/postgresql.conf.invirt \
+       /etc/init.d/postgresql-8.3.invirt
 
 include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/config-package.mk
+
+binary-install/sipb-xen-database-common::
+       dh_pysupport -psipb-xen-database-common