1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.5 2014/11/02 00:32:16 vip-ire Exp $ |
# $Id: smeserver-openvpn-bridge.spec,v 1.9 2016/05/07 07:10:35 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 52 |
%define release 56 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
74 |
Patch58: smeserver-openvpn-bridge-2.0-locale-2013-07-14.patch |
Patch58: smeserver-openvpn-bridge-2.0-locale-2013-07-14.patch |
75 |
Patch59: smeserver-openvpn-bridge-2.0-locale-2014-11-02.patch |
Patch59: smeserver-openvpn-bridge-2.0-locale-2014-11-02.patch |
76 |
Patch60: smeserver-openvpn-bridge-2.0-locale-2015-02-17.patch |
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 |
|
Patch63: smeserver-openvpn-bridge-2.0-locale-2017-03-25.patch |
80 |
|
|
81 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
82 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
95 |
to have a full working openvpn server running in bridge mode. |
to have a full working openvpn server running in bridge mode. |
96 |
|
|
97 |
%changelog |
%changelog |
98 |
|
* Sat Mar 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0-56.sme |
99 |
|
- apply locale 2017-03-25 |
100 |
|
|
101 |
|
* Sat May 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.0-55.sme |
102 |
|
- Typo in en-us locale for the panel [SME: 9301] |
103 |
|
|
104 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 2.0-54.sme |
105 |
|
- Create /etc/openvpn/bridge/dev/urandom [SME: 9238] |
106 |
|
|
107 |
|
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-53.sme |
108 |
|
- Add routes for s2s virtual IP |
109 |
|
|
110 |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-52.sme |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-52.sme |
111 |
- Apply locale 2015-02-17 patch |
- Apply locale 2015-02-17 patch |
112 |
|
|
379 |
%patch58 -p1 |
%patch58 -p1 |
380 |
%patch59 -p1 |
%patch59 -p1 |
381 |
%patch60 -p1 |
%patch60 -p1 |
382 |
|
%patch61 -p1 |
383 |
|
%patch62 -p1 |
384 |
|
%patch63 -p1 |
385 |
|
|
386 |
%build |
%build |
387 |
perl createlinks |
perl createlinks |
390 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
391 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
392 |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
393 |
|
%{__mkdir_p} root/etc/openvpn/bridge/dev |
394 |
%{__mkdir_p} root/var/log/openvpn-bridge |
%{__mkdir_p} root/var/log/openvpn-bridge |
395 |
|
|
396 |
%install |
%install |
414 |
%clean |
%clean |
415 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
416 |
|
|
|
|
|
417 |
%post |
%post |
418 |
|
if [ \! -c /etc/openvpn/bridge/dev/urandom ]; then |
419 |
|
mknod -m 0444 /etc/openvpn/bridge/dev/urandom c 1 9 |
420 |
|
fi |
421 |
|
|
422 |
%preun |
%preun |