Don't enable proxy arp on every interface, just the public one
[invirt/packages/invirt-xen-config.git] / debian / rules
index e6192f6..cb20bf8 100755 (executable)
@@ -1,3 +1,23 @@
 #!/usr/bin/make -f
 
 #!/usr/bin/make -f
 
+DEB_DIVERT_EXTENSION = .invirt
+
+DEB_DIVERT_FILES_invirt-xen-config += \
+       /etc/xen/qemu-ifup.invirt \
+       /etc/xen/xend-config.sxp.invirt
+
+DEB_UNDIVERT_FILES_invirt-xen-config += \
+       /etc/apt/preferences.invirt
+
+DEB_UNDIVERT_VERSION_/etc/apt/preferences.invirt = 0.0.27~
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/config-package.mk
+
+common-build-indep:: debian/xend-config.sxp.invirt.mako
+
+debian/xend-config.sxp.invirt.mako: $(call debian_check_files,/etc/xen/xend-config.sxp)
+       debian/transform_xend-config.sxp.invirt.mako < $< > $@
+
+clean::
+       rm -f debian/xend-config.sxp.invirt.mako