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.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 52 |
%define release 55 |
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 |
|
|
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 |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.0-52.sme |
107 |
- Apply locale 2015-02-17 patch |
- Apply locale 2015-02-17 patch |
108 |
|
|
375 |
%patch58 -p1 |
%patch58 -p1 |
376 |
%patch59 -p1 |
%patch59 -p1 |
377 |
%patch60 -p1 |
%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 |