port packaging to dh_python2
[invirt/packages/invirt-vnc-server.git] / debian / rules
index f042214..adac93c 100755 (executable)
@@ -1,12 +1,13 @@
 #!/usr/bin/make -f
 
-DEB_PYTHON_SYSTEM=pysupport
+DEB_PYTHON2_MODULE_PACKAGES=invirt-vnc-server
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
 binary-fixup/invirt-vnc-server::
-        mv $(DEB_DESTDIR)usr/bin/invirt-vnc-server $(DEB_DESTDIR)usr/sbin/invirt-vnc-server
+       mkdir -p $(DEB_DESTDIR)usr/sbin
+       mv $(DEB_DESTDIR)usr/bin/invirt-vnc-server $(DEB_DESTDIR)usr/sbin/invirt-vnc-server
 
 clean::
        rm -rf invirt.vnc.egg-info