]>
Commit | Line | Data |
---|---|---|
bf6fb1eb MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = openvswitch | |
c301c602 | 7 | version = 1.7.0 |
36c5c701 | 8 | release = 3 |
bf6fb1eb MT |
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 | |
bf6fb1eb MT |
25 | groff |
26 | openssl-devel | |
27 | systemd-units | |
28 | end | |
29 | ||
bf6fb1eb MT |
30 | configure_options += \ |
31 | --enable-ssl \ | |
c301c602 | 32 | --with-pkidir=%{sharedstatedir}/openvswitch/pki |
bf6fb1eb MT |
33 | |
34 | install_cmds | |
35 | # Install logrotate file. | |
36 | mkdir -pv %{BUILDROOT}%{sysconfdir}/logrotate.d | |
37 | install -m 644 %{DIR_SOURCE}/openvswitch.logrotate \ | |
38 | %{BUILDROOT}%{sysconfdir}/logrotate.d/openvswitch | |
39 | ||
40 | mkdir -pv %{BUILDROOT}%{sharedstatedir}/openvswitch | |
41 | ||
42 | # Remove stuff we don't want to support. | |
43 | rm -vf \ | |
44 | %{BUILDROOT}%{bindir}/ovs-controller \ | |
45 | %{BUILDROOT}%{sbindir}/ovs-{vlan-bug-workaround,brcompatd} \ | |
46 | %{BUILDROOT}%{mandir}/man8/ovs-{controller,vlan-bug-workaround,brcompatd}.8 | |
47 | end | |
48 | end | |
49 | ||
50 | packages | |
51 | package %{name} | |
52 | script postin | |
53 | systemctl daemon-reload >/dev/null 2>&1 || : | |
54 | end | |
55 | ||
56 | script postup | |
57 | systemctl daemon-reload >/dev/null 2>&1 || : | |
58 | systemctl try-restart openvswitch.service >/dev/null 2>&1 || : | |
59 | end | |
60 | ||
61 | script postun | |
62 | systemctl --no-reload disable openvswitch.service >/dev/null 2>&1 || : | |
63 | systemctl stop openvswitch.service >/dev/null 2>&1 || : | |
64 | end | |
65 | ||
66 | configfiles | |
67 | %{sysconfdir}/logrotate.d/openvswitch | |
68 | end | |
69 | end | |
70 | ||
71 | package %{name}-test | |
72 | summary = Open vSwitch testing utilities. | |
73 | license = ASL 2.0 | |
74 | description | |
75 | Utilities that are useful to diagnose performance and connectivity | |
76 | issues in Open vSwitch setup. | |
77 | end | |
78 | arch = noarch | |
79 | ||
80 | files | |
81 | %{bindir}/ovs-test | |
82 | %{bindir}/ovs-vlan-test | |
83 | %{mandir}/man8/ovs-test.8* | |
84 | %{mandir}/man8/ovs-vlan-test.8* | |
85 | end | |
86 | end | |
87 | ||
88 | package %{name}-debuginfo | |
89 | template DEBUGINFO | |
90 | end | |
91 | end |