[openvswitch] Fixed to own conf.db and system-id.conf in /etc/openvswitch.

Flavio Leitner fbl at fedoraproject.org
Thu Oct 23 15:52:37 UTC 2014


commit 9b6c667a3982a2173ec661a9e8db5033970e9683
Author: Flavio Leitner <fbl at redhat.com>
Date:   Thu Oct 23 13:51:06 2014 -0200

    Fixed to own conf.db and system-id.conf in /etc/openvswitch.
    
    Resolves: #1132707
    
    Signed-off-by: Flavio Leitner <fbl at redhat.com>

 openvswitch.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/openvswitch.spec b/openvswitch.spec
index 2968253..e50ded4 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -6,7 +6,7 @@
 
 Name: openvswitch
 Version: 2.3.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Open vSwitch daemon/database/utilities
 
 # Nearly all of openvswitch is ASL 2.0.  The bugtool is LGPLv2+, and the
@@ -130,6 +130,9 @@ install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openflow
 install -p -D -m 0644 include/openflow/*.h \
 	-t $RPM_BUILD_ROOT%{_includedir}/openflow
 
+touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
+touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
+
 %post
 %if 0%{?systemd_post:1}
     %systemd_post %{name}.service
@@ -185,6 +188,8 @@ install -p -D -m 0644 include/openflow/*.h \
 
 %files
 %{_sysconfdir}/openvswitch/
+%config %ghost %{_sysconfdir}/openvswitch/conf.db
+%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
 %config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
 %config(noreplace) %{_sysconfdir}/sysconfig/openvswitch
 %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
@@ -255,6 +260,10 @@ install -p -D -m 0644 include/openflow/*.h \
 %{_includedir}/openflow/*
 
 %changelog
+* Thu Oct 23 2014 Flavio Leitner - 2.3.0-2
+- fixed to own conf.db and system-id.conf in /etc/openvswitch.
+  (#1132707)
+
 * Tue Aug 19 2014 Flavio Leitner - 2.3.0-1
 - updated to 2.3.0
 


More information about the scm-commits mailing list