Added nc
[invirt/packages/invirt-web.git] / debian / rules
index bad8d04..6137a23 100755 (executable)
@@ -1,21 +1,6 @@
 #!/usr/bin/make -f
+%:
+       dh $@ --with config-package
 
-DEB_DIVERT_EXTENSION = .invirt
-DEB_DIVERT_FILES_invirt-web += \
-    /etc/apache2/conf.d/gitweb \
-    /etc/init.d/apache2 \
-    /etc/gitweb.conf \
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/config-package.mk
-
-DEB_UPDATE_RCD_PARAMS_invirt-web += defaults 91 9
-
-GIT_HEAD=$(shell git rev-parse HEAD)
-
-binary-fixup/invirt-web::
-       git clone $$(invirt-getconf git.uri)/invirt/packages/invirt-web $(DEB_DESTDIR)/usr/share/invirt-web/package
-       cd $(DEB_DESTDIR)/usr/share/invirt-web/package && git checkout $(GIT_HEAD)
-       mkdir -p $(DEB_DESTDIR)/var/www/
-       ln -s /usr/share/invirt-web/package/code $(DEB_DESTDIR)/var/www/invirt-web
-       rm -rf $(DEB_DESTDIR)/var/www/invirt-web-repo
+override_dh_installinit:
+       dh_installinit -- defaults 91 9