forked from pool/openvswitch
Accepting request 378276 from home:markoschandras:network
- Prevent systemd from autogenerating a service file for openvswitch-switch which conflicts with the opevswitch one. (bsc#966762) OBS-URL: https://build.opensuse.org/request/show/378276 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=82
This commit is contained in:
parent
fa62e90257
commit
f3ed9feaf7
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 22 18:06:40 UTC 2016 - mchandras@suse.de
|
||||||
|
|
||||||
|
- Prevent systemd from autogenerating a service file for
|
||||||
|
openvswitch-switch which conflicts with the opevswitch
|
||||||
|
one. (bsc#966762)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 18 10:20:02 UTC 2016 - kmroz@suse.com
|
Fri Mar 18 10:20:02 UTC 2016 - kmroz@suse.com
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ Before=network.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/etc/init.d/openvswitch-switch start
|
ExecStart=/usr/share/openvswitch/scripts/openvswitch-switch start
|
||||||
ExecStop=/etc/init.d/openvswitch-switch stop
|
ExecStop=/usr/share/openvswitch/scripts/openvswitch-switch stop
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -355,6 +355,7 @@ done
|
|||||||
pushd source
|
pushd source
|
||||||
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
install -d -m 755 %{buildroot}/%{_datadir}/%{name}/scripts
|
||||||
install -d -m 755 %{buildroot}/%{_sysconfdir}/init.d
|
install -d -m 755 %{buildroot}/%{_sysconfdir}/init.d
|
||||||
install -d -m 755 %{buildroot}%{_localstatedir}/adm/fillup-templates
|
install -d -m 755 %{buildroot}%{_localstatedir}/adm/fillup-templates
|
||||||
|
|
||||||
@ -366,9 +367,13 @@ install -m 755 %{SOURCE8} \
|
|||||||
%{buildroot}/%{_sysconfdir}/init.d/%{name}-testcontroller
|
%{buildroot}/%{_sysconfdir}/init.d/%{name}-testcontroller
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1230
|
%if 0%{?suse_version} > 1230
|
||||||
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-switch
|
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}
|
||||||
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-vtep
|
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-vtep
|
||||||
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-testcontroller
|
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-testcontroller
|
||||||
|
# Move the openvswitch-switch rc file to the scripts directory
|
||||||
|
# to prevent systemd from autogenerating a unit file for us (bsc#966762)
|
||||||
|
mv %{buildroot}/%{_sysconfdir}/init.d/%{name}-switch \
|
||||||
|
%{buildroot}/%{_datadir}/%{name}/scripts/%{name}-switch
|
||||||
install -D -m 644 %{SOURCE7} \
|
install -D -m 644 %{SOURCE7} \
|
||||||
%{buildroot}%{_unitdir}/openvswitch.service
|
%{buildroot}%{_unitdir}/openvswitch.service
|
||||||
install -D -m 644 %{SOURCE12} \
|
install -D -m 644 %{SOURCE12} \
|
||||||
@ -391,7 +396,6 @@ install -m 644 %{SOURCE4} \
|
|||||||
%{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-switch
|
%{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-switch
|
||||||
install -d -m 755 %{buildroot}/%{_sysconfdir}/profile.d
|
install -d -m 755 %{buildroot}/%{_sysconfdir}/profile.d
|
||||||
|
|
||||||
install -d -m 755 %{buildroot}/%{_datadir}/%{name}/scripts
|
|
||||||
install -m 644 vswitchd/vswitch.ovsschema \
|
install -m 644 vswitchd/vswitch.ovsschema \
|
||||||
%{buildroot}/%{_datadir}/%{name}/vswitch.ovsschema
|
%{buildroot}/%{_datadir}/%{name}/vswitch.ovsschema
|
||||||
|
|
||||||
@ -577,8 +581,6 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
|
|||||||
%{_datadir}/openvswitch/scripts/ovs-save
|
%{_datadir}/openvswitch/scripts/ovs-save
|
||||||
%{_datadir}/openvswitch/vswitch.ovsschema
|
%{_datadir}/openvswitch/vswitch.ovsschema
|
||||||
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
|
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
|
||||||
%{_sysconfdir}/init.d/openvswitch-switch
|
|
||||||
%{_sbindir}/rc%{name}-switch
|
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch-switch
|
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch-switch
|
||||||
%{_mandir}/man8/ovs-dpctl.8.gz
|
%{_mandir}/man8/ovs-dpctl.8.gz
|
||||||
%{_mandir}/man1/ovs-tcpundump.1.gz
|
%{_mandir}/man1/ovs-tcpundump.1.gz
|
||||||
@ -590,7 +592,12 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
|
|||||||
%{_mandir}/man5/ovs-vswitchd.conf.db.5.gz
|
%{_mandir}/man5/ovs-vswitchd.conf.db.5.gz
|
||||||
%{_mandir}/man8/ovs-ctl.8.gz
|
%{_mandir}/man8/ovs-ctl.8.gz
|
||||||
%if 0%{?suse_version} > 1230
|
%if 0%{?suse_version} > 1230
|
||||||
|
%{_sbindir}/rc%{name}
|
||||||
%{_unitdir}/openvswitch.service
|
%{_unitdir}/openvswitch.service
|
||||||
|
%{_datadir}/openvswitch/scripts/openvswitch-switch
|
||||||
|
%else
|
||||||
|
%{_sbindir}/rc%{name}-switch
|
||||||
|
%{_sysconfdir}/init.d/openvswitch-switch
|
||||||
%endif
|
%endif
|
||||||
%dir /var/log/openvswitch
|
%dir /var/log/openvswitch
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user