1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.4 2013/07/14 23:22:25 unnilennium Exp $ |
# $Id: smeserver-openvpn-bridge.spec,v 1.10 2018/11/15 10:37:52 jcrisp 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 1 |
%define release 10 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Networking/Remote access |
Group: Networking/Remote access |
14 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
15 |
|
|
16 |
|
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 |
|
Patch4: smeserver-openvpn-bridge-2.1-locale-2017-02-02.patch |
21 |
|
Patch5: smeserver-openvpn-bridge-2.1-locale-2017-12-02.patch |
22 |
|
Patch6: smeserver-openvpn-bridge-2.1-push-routes.patch |
23 |
|
Patch7: smeserver-openvpn-bridge-2.1-locale-2019-12-07.patch |
24 |
|
|
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
27 |
|
|
39 |
to have a full working openvpn server running in bridge mode. |
to have a full working openvpn server running in bridge mode. |
40 |
|
|
41 |
%changelog |
%changelog |
42 |
|
* Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 2.1-10.sme |
43 |
|
- apply locale 2019-12-07 patch |
44 |
|
|
45 |
|
* Thu Nov 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 2.1-9.sme |
46 |
|
- Add option to enable/doisable PushRoute [SME: 10547] |
47 |
|
|
48 |
|
* Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 2.1-8.sme |
49 |
|
- apply locale 2017-12-02 patch |
50 |
|
|
51 |
|
* Wed Feb 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.1-7.sme |
52 |
|
- apply locale 2017-02-02.patch |
53 |
|
|
54 |
|
* Sat May 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-6.sme |
55 |
|
- Typo in en-us locale for the panel [SME: 9301] |
56 |
|
|
57 |
|
* Wed Feb 10 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-5.sme |
58 |
|
- Remove obsolete libpam.so symlink so AutoReqProv do not add a dep on i686 |
59 |
|
pam |
60 |
|
|
61 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-4.sme |
62 |
|
- Create /etc/openvpn/bridge/dev/urandom [SME: 9238] |
63 |
|
|
64 |
|
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.1-3.sme |
65 |
|
- Add routes for s2s virtual IP |
66 |
|
|
67 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.1-2.sme |
68 |
|
- Apply locale 2015-02-17 patch |
69 |
|
|
70 |
* 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 |
71 |
- Rebuild for SME9 |
- Rebuild for SME9 |
72 |
|
|
275 |
%prep |
%prep |
276 |
|
|
277 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
278 |
|
%patch0 -p1 |
279 |
|
%patch1 -p1 |
280 |
|
%patch2 -p1 |
281 |
|
%patch3 -p1 |
282 |
|
%patch4 -p1 |
283 |
|
%patch5 -p1 |
284 |
|
%patch6 -p1 |
285 |
|
%patch7 -p1 |
286 |
|
|
287 |
%build |
%build |
288 |
perl createlinks |
perl createlinks |
291 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
292 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
293 |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
294 |
|
%{__mkdir_p} root/etc/openvpn/bridge/dev |
295 |
%{__mkdir_p} root/var/log/openvpn-bridge |
%{__mkdir_p} root/var/log/openvpn-bridge |
296 |
|
|
297 |
%install |
%install |
315 |
%clean |
%clean |
316 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
317 |
|
|
|
|
|
318 |
%post |
%post |
319 |
|
if [ \! -c /etc/openvpn/bridge/dev/urandom ]; then |
320 |
|
mknod -m 0444 /etc/openvpn/bridge/dev/urandom c 1 9 |
321 |
|
fi |
322 |
|
|
323 |
%preun |
%preun |