[pve-devel] [PATCH 4/4] Remove useless rules.
Wolfgang Link
w.link at proxmox.com
Wed Sep 13 15:13:40 CEST 2017
---
pvepatches/remove-unneeded-rules.patch | 39 ++++++++++++++++++++++++++++++++++
pvepatches/series | 1 +
2 files changed, 40 insertions(+)
create mode 100644 pvepatches/remove-unneeded-rules.patch
diff --git a/pvepatches/remove-unneeded-rules.patch b/pvepatches/remove-unneeded-rules.patch
new file mode 100644
index 0000000..29c74ce
--- /dev/null
+++ b/pvepatches/remove-unneeded-rules.patch
@@ -0,0 +1,39 @@
+
+Index: openvswitch-2.8.0/debian/rules
+===================================================================
+--- openvswitch-2.8.0.orig/debian/rules
++++ openvswitch-2.8.0/debian/rules
+@@ -53,33 +53,9 @@ override_dh_install-arch:
+ # openvswitch-switch
+ cp debian/openvswitch-switch.template debian/openvswitch-switch/usr/share/openvswitch/switch/default.template
+
+- # ovn-host
+- cp debian/ovn-host.template debian/ovn-host/usr/share/ovn/host/default.template
+-
+- # ovn-central
+- cp debian/ovn-central.template debian/ovn-central/usr/share/ovn/central/default.template
+-
+ override_dh_install-indep:
+ dh_install
+
+- # openvswitch-datapath-source
+- cp debian/rules.modules debian/openvswitch-datapath-source/usr/src/modules/openvswitch-datapath/debian/rules
+- chmod 755 debian/openvswitch-datapath-source/usr/src/modules/openvswitch-datapath/debian/rules
+- cd debian/openvswitch-datapath-source/usr/src && tar -c modules | bzip2 -9 > openvswitch-datapath.tar.bz2 && rm -rf modules
+-
+- # openvswitch-datapath-dkms
+- # setup the dirs
+- dh_installdirs -p$(PACKAGE_DKMS) usr/src/$(PACKAGE)-$(DEB_VERSION_UPSTREAM)
+-
+- # copy the source
+- cd debian/$(PACKAGE_DKMS)/usr/src/$(PACKAGE)-$(DEB_VERSION_UPSTREAM) && tar xvzf $(CURDIR)/openvswitch.tar.gz && mv openvswitch/* openvswitch/.[a-z]* . && rmdir openvswitch
+-
+- # check we can get kernel module names
+- $(MAKE) -C datapath print-build-modules
+-
+- # Prepare dkms.conf from the dkms.conf.in template
+- sed "s/__VERSION__/$(DEB_VERSION_UPSTREAM)/g; s/__MODULES__/$(shell $(MAKE) -C datapath print-build-modules | grep -v make)/" debian/dkms.conf.in > debian/$(PACKAGE_DKMS)/usr/src/$(PACKAGE)-$(DEB_VERSION_UPSTREAM)/dkms.conf
+-
+ # We don't need the debian folder in there, just upstream sources...
+ rm -rf debian/$(PACKAGE_DKMS)/usr/src/$(PACKAGE)-$(DEB_VERSION_UPSTREAM)/debian
+ # We don't need the rhel stuff in there either
diff --git a/pvepatches/series b/pvepatches/series
index 4de5839..f68a729 100644
--- a/pvepatches/series
+++ b/pvepatches/series
@@ -4,3 +4,4 @@ delete-openvswitch-switch-init.patch
use-systemctl-inside-ifupdown.patch
remove-init-script-on-upgrades.patch
add-net-tools-dependency.patch
+remove-unneeded-rules.patch
--
2.11.0
More information about the pve-devel
mailing list