1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.1 2013/11/11 17:30:42 vip-ire Exp $ |
# $Id: smeserver-openvpn-bridge.spec,v 1.5 2016/02/10 16:39:18 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.1 |
%define version 2.1 |
9 |
%define release 2 |
%define release 6 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
14 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
15 |
|
|
16 |
Patch0: smeserver-openvpn-bridge-2.1-locale-2015-02-17.patch |
Patch0: smeserver-openvpn-bridge-2.1-locale-2015-02-17.patch |
17 |
|
Patch1: smeserver-openvpn-bridge-2.1-add_routes_for_s2s_virtual_ip.patch |
18 |
|
Patch2: smeserver-openvpn-bridge-2.1-remove_obsolete_libpam_symlink.patch |
19 |
|
Patch3: smeserver-openvpn-bridge-2.1-typo_in_en_locale.patch |
20 |
|
|
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
35 |
to have a full working openvpn server running in bridge mode. |
to have a full working openvpn server running in bridge mode. |
36 |
|
|
37 |
%changelog |
%changelog |
38 |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.1-1.sme |
* Sat May 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-6.sme |
39 |
|
- TYpoe in en-us locale for the panel [SME: 9301] |
40 |
|
|
41 |
|
* Wed Feb 10 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-5.sme |
42 |
|
- Remove obsolete libpam.so symlink so AutoReqProv do not add a dep on i686 |
43 |
|
pam |
44 |
|
|
45 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-4.sme |
46 |
|
- Create /etc/openvpn/bridge/dev/urandom [SME: 9238] |
47 |
|
|
48 |
|
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.1-3.sme |
49 |
|
- Add routes for s2s virtual IP |
50 |
|
|
51 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.1-2.sme |
52 |
- Apply locale 2015-02-17 patch |
- Apply locale 2015-02-17 patch |
53 |
|
|
54 |
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> 2.1-1.sme |
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> 2.1-1.sme |
260 |
|
|
261 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
262 |
%patch0 -p1 |
%patch0 -p1 |
263 |
|
%patch1 -p1 |
264 |
|
%patch2 -p1 |
265 |
|
%patch3 -p1 |
266 |
|
|
267 |
%build |
%build |
268 |
perl createlinks |
perl createlinks |
271 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
272 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
273 |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
274 |
|
%{__mkdir_p} root/etc/openvpn/bridge/dev |
275 |
%{__mkdir_p} root/var/log/openvpn-bridge |
%{__mkdir_p} root/var/log/openvpn-bridge |
276 |
|
|
277 |
%install |
%install |
295 |
%clean |
%clean |
296 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
297 |
|
|
|
|
|
298 |
%post |
%post |
299 |
|
if [ \! -c /etc/openvpn/bridge/dev/urandom ]; then |
300 |
|
mknod -m 0444 /etc/openvpn/bridge/dev/urandom c 1 9 |
301 |
|
fi |
302 |
|
|
303 |
%preun |
%preun |