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.8 2016/02/08 09:45:34 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 55 |
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 |
|
Patch62: smeserver-openvpn-bridge-2.0-typo_in_en_locale.patch |
79 |
|
|
80 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
81 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
94 |
to have a full working openvpn server running in bridge mode. |
to have a full working openvpn server running in bridge mode. |
95 |
|
|
96 |
%changelog |
%changelog |
97 |
|
* Sat May 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.0-55.sme |
98 |
|
- Typo in en-us locale for the panel [SME: 9301] |
99 |
|
|
100 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 2.0-54.sme |
101 |
|
- Create /etc/openvpn/bridge/dev/urandom [SME: 9238] |
102 |
|
|
103 |
|
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-53.sme |
104 |
|
- Add routes for s2s virtual IP |
105 |
|
|
106 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-52.sme |
107 |
|
- Apply locale 2015-02-17 patch |
108 |
|
|
109 |
|
* Sun Nov 2 2014 Daniel B. <daniel@firewall-services.com> 2.0-51.sme |
110 |
|
- apply local 2014-11-02 patch |
111 |
|
|
112 |
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 2.0-50.sme |
113 |
|
- apply locale 2013-07-14 patch |
114 |
|
|
115 |
* 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 |
116 |
- Fix plugin directory for x86_64 [SME: 7658] |
- Fix plugin directory for x86_64 [SME: 7658] |
117 |
|
|
372 |
%patch55 -p1 |
%patch55 -p1 |
373 |
%patch56 -p1 |
%patch56 -p1 |
374 |
%patch57 -p1 |
%patch57 -p1 |
375 |
|
%patch58 -p1 |
376 |
|
%patch59 -p1 |
377 |
|
%patch60 -p1 |
378 |
|
%patch61 -p1 |
379 |
|
%patch62 -p1 |
380 |
|
|
381 |
%build |
%build |
382 |
perl createlinks |
perl createlinks |
385 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
386 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
387 |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
388 |
|
%{__mkdir_p} root/etc/openvpn/bridge/dev |
389 |
%{__mkdir_p} root/var/log/openvpn-bridge |
%{__mkdir_p} root/var/log/openvpn-bridge |
390 |
|
|
391 |
%install |
%install |
409 |
%clean |
%clean |
410 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
411 |
|
|
|
|
|
412 |
%post |
%post |
413 |
|
if [ \! -c /etc/openvpn/bridge/dev/urandom ]; then |
414 |
|
mknod -m 0444 /etc/openvpn/bridge/dev/urandom c 1 9 |
415 |
|
fi |
416 |
|
|
417 |
%preun |
%preun |