1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.2 2013/03/22 15:36:30 vip-ire Exp $ |
# $Id: smeserver-openvpn-bridge.spec,v 1.7 2015/08/06 15:44:52 vip-ire Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-openvpn-bridge |
%define name smeserver-openvpn-bridge |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 2.0 |
%define version 2.0 |
9 |
%define release 49 |
%define release 54 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
71 |
Patch55: smeserver-openvpn-bridge-2.0-locale-2012-03-20.patch |
Patch55: smeserver-openvpn-bridge-2.0-locale-2012-03-20.patch |
72 |
Patch56: smeserver-openvpn-bridge-2.0-fix_spelling_en_us.patch |
Patch56: smeserver-openvpn-bridge-2.0-fix_spelling_en_us.patch |
73 |
Patch57: smeserver-openvpn-bridge-2.0-lib64_plugin.patch |
Patch57: smeserver-openvpn-bridge-2.0-lib64_plugin.patch |
74 |
|
Patch58: smeserver-openvpn-bridge-2.0-locale-2013-07-14.patch |
75 |
|
Patch59: smeserver-openvpn-bridge-2.0-locale-2014-11-02.patch |
76 |
|
Patch60: smeserver-openvpn-bridge-2.0-locale-2015-02-17.patch |
77 |
|
Patch61: smeserver-openvpn-bridge-2.0-add_routes_for_s2s_virtual_ip.patch |
78 |
|
|
79 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
80 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
93 |
to have a full working openvpn server running in bridge mode. |
to have a full working openvpn server running in bridge mode. |
94 |
|
|
95 |
%changelog |
%changelog |
96 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 2.0-54.sme |
97 |
|
- Create /etc/openvpn/bridge/dev/urandom [SME: 9238] |
98 |
|
|
99 |
|
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-53.sme |
100 |
|
- Add routes for s2s virtual IP |
101 |
|
|
102 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-52.sme |
103 |
|
- Apply locale 2015-02-17 patch |
104 |
|
|
105 |
|
* Sun Nov 2 2014 Daniel B. <daniel@firewall-services.com> 2.0-51.sme |
106 |
|
- apply local 2014-11-02 patch |
107 |
|
|
108 |
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 2.0-50.sme |
109 |
|
- apply locale 2013-07-14 patch |
110 |
|
|
111 |
* Thu Jun 6 2013 Daniel B. <daniel@firewall-services.com> 2.0-49.sme |
* Thu Jun 6 2013 Daniel B. <daniel@firewall-services.com> 2.0-49.sme |
112 |
- Fix plugin directory for x86_64 [SME: 7658] |
- Fix plugin directory for x86_64 [SME: 7658] |
113 |
|
|
368 |
%patch55 -p1 |
%patch55 -p1 |
369 |
%patch56 -p1 |
%patch56 -p1 |
370 |
%patch57 -p1 |
%patch57 -p1 |
371 |
|
%patch58 -p1 |
372 |
|
%patch59 -p1 |
373 |
|
%patch60 -p1 |
374 |
|
%patch61 -p1 |
375 |
|
|
376 |
%build |
%build |
377 |
perl createlinks |
perl createlinks |
380 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
381 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
382 |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
383 |
|
%{__mkdir_p} root/etc/openvpn/bridge/dev |
384 |
%{__mkdir_p} root/var/log/openvpn-bridge |
%{__mkdir_p} root/var/log/openvpn-bridge |
385 |
|
|
386 |
%install |
%install |
404 |
%clean |
%clean |
405 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
406 |
|
|
|
|
|
407 |
%post |
%post |
408 |
|
if [ \! -c /etc/openvpn/bridge/dev/urandom ]; then |
409 |
|
mknod -m 0444 /etc/openvpn/bridge/dev/urandom c 1 9 |
410 |
|
fi |
411 |
|
|
412 |
%preun |
%preun |