Make invirt-database-server.postinst check whether the invirt user actually exists
[invirt/packages/invirt-database.git] / debian / rules
index 5a27b33..d2e9b8f 100755 (executable)
@@ -1,13 +1,18 @@
 #!/usr/bin/make -f
 
 #!/usr/bin/make -f
 
+DEB_PYTHON_SYSTEM=pysupport
 
 DEB_DIVERT_EXTENSION = .invirt
 
 DEB_DIVERT_EXTENSION = .invirt
-DEB_DIVERT_FILES_sipb-xen-database-server += \
-/etc/postgresql/8.1/main/postgresql.conf.invirt
 
 
+DEB_TRANSFORM_FILES_invirt-database-server += \
+       /etc/postgresql/8.3/main/postgresql.conf.invirt
+
+DEB_DIVERT_FILES_invirt-database-server += \
+       /etc/init.d/postgresql-8.3.invirt
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 
 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
 
 include /usr/share/cdbs/1/rules/config-package.mk
 
-binary-install/sipb-xen-database-common::
-       dh_pysupport -psipb-xen-database-common
+clean::
+       rm -rf invirt.database.egg-info