]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - openvswitch/openvswitch.nm
systemd: Remove udev rules for "predictable" network device names
[people/ms/ipfire-3.x.git] / openvswitch / openvswitch.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = openvswitch
7 version = 1.9.0
8 release = 1
9
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.
14
15 description
16 Open vSwitch provides standard network bridging functions and
17 support for the OpenFlow protocol for remote per-flow control
18 of traffic.
19 end
20
21 source_dl = http://openvswitch.org/releases/
22
23 build
24 requires
25 groff
26 openssl-devel
27 systemd-units
28 end
29
30 configure_options += \
31 --enable-ssl \
32 --with-pkidir=%{sharedstatedir}/openvswitch/pki \
33 OVSKMOD=openvswitch
34
35 install_cmds
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
40
41 mkdir -pv %{BUILDROOT}%{sharedstatedir}/openvswitch
42
43 # Remove stuff we don't want to support.
44 rm -vf \
45 %{BUILDROOT}%{bindir}/ovs-controller \
46 %{BUILDROOT}%{sbindir}/ovs-{vlan-bug-workaround,brcompatd} \
47 %{BUILDROOT}%{mandir}/man8/ovs-{controller,vlan-bug-workaround,brcompatd}.8
48 end
49 end
50
51 packages
52 package %{name}
53 script postin
54 systemctl daemon-reload >/dev/null 2>&1 || :
55 end
56
57 script postup
58 systemctl daemon-reload >/dev/null 2>&1 || :
59 systemctl try-restart openvswitch.service >/dev/null 2>&1 || :
60 end
61
62 script postun
63 systemctl --no-reload disable openvswitch.service >/dev/null 2>&1 || :
64 systemctl stop openvswitch.service >/dev/null 2>&1 || :
65 end
66
67 configfiles
68 %{sysconfdir}/logrotate.d/openvswitch
69 end
70 end
71
72 package %{name}-test
73 summary = Open vSwitch testing utilities.
74 license = ASL 2.0
75 description
76 Utilities that are useful to diagnose performance and connectivity
77 issues in Open vSwitch setup.
78 end
79 arch = noarch
80
81 files
82 %{bindir}/ovs-test
83 %{bindir}/ovs-vlan-test
84 %{mandir}/man8/ovs-test.8*
85 %{mandir}/man8/ovs-vlan-test.8*
86 end
87 end
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
92 end