1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/Tools
11 url = http://openvswitch.org/
12 license = ASL 2.0 and LGPLv2+ and SISSL
13 summary = Open vSwitch daemon/database/utilities.
16 Open vSwitch provides standard network bridging functions and
17 support for the OpenFlow protocol for remote per-flow control
21 source_dl = http://openvswitch.org/releases/
30 configure_options += \
32 --with-pkidir=%{sharedstatedir}/openvswitch/pki \
36 # Install logrotate file.
37 mkdir -pv %{BUILDROOT}%{sysconfdir}/logrotate.d
38 install -m 644 %{DIR_SOURCE}/openvswitch.logrotate \
39 %{BUILDROOT}%{sysconfdir}/logrotate.d/openvswitch
41 mkdir -pv %{BUILDROOT}%{sharedstatedir}/openvswitch
43 # Remove stuff we don't want to support.
45 %{BUILDROOT}%{bindir}/ovs-controller \
46 %{BUILDROOT}%{sbindir}/ovs-{vlan-bug-workaround,brcompatd} \
47 %{BUILDROOT}%{mandir}/man8/ovs-{controller,vlan-bug-workaround,brcompatd}.8
54 systemctl daemon-reload >/dev/null 2>&1 || :
58 systemctl daemon-reload >/dev/null 2>&1 || :
59 systemctl try-restart openvswitch.service >/dev/null 2>&1 || :
63 systemctl --no-reload disable openvswitch.service >/dev/null 2>&1 || :
64 systemctl stop openvswitch.service >/dev/null 2>&1 || :
68 %{sysconfdir}/logrotate.d/openvswitch
73 summary = Open vSwitch testing utilities.
76 Utilities that are useful to diagnose performance and connectivity
77 issues in Open vSwitch setup.
83 %{bindir}/ovs-vlan-test
84 %{mandir}/man8/ovs-test.8*
85 %{mandir}/man8/ovs-vlan-test.8*
89 package %{name}-debuginfo