1 |
# $Id: smeserver-openvpn-s2s.spec,v 1.4 2014/12/18 08:30:13 vip-ire Exp $ |
# $Id: smeserver-openvpn-s2s.spec,v 1.8 2017/10/25 13:24:23 vip-ire Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-openvpn-s2s |
%define name smeserver-openvpn-s2s |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.2 |
%define version 0.2 |
9 |
%define release 4 |
%define release 8 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
15 |
|
|
16 |
Patch0: smeserver-openvpn-s2s-0.2-use_verify_x509_name.patch |
Patch0: smeserver-openvpn-s2s-0.2-use_verify_x509_name.patch |
17 |
Patch1: smeserver-openvpn-s2s-0.2-locale-2015-02-17.patch |
Patch1: smeserver-openvpn-s2s-0.2-locale-2015-02-17.patch |
18 |
|
Patch2: smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch |
19 |
|
Patch3: smeserver-openvpn-s2s-0.2-fix_daemon_id_validation.patch |
20 |
|
Patch4: smeserver-openvpn-s2s-0.2-locale-2017-12-02.patch |
21 |
|
|
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
|
|
32 |
to run openvpn in client or server mode for site to site tunnels |
to run openvpn in client or server mode for site to site tunnels |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
|
* Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 0.2-8.sme |
36 |
|
- apply locale 2017-12-02 patch |
37 |
|
|
38 |
|
* Wed Oct 25 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2-7.sme |
39 |
|
- Fix daemon ID validation [SME: 10446] |
40 |
|
|
41 |
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.2-6.sme |
42 |
|
- Create /etc/openvpn/s2s/dev/urandom [SME: 9238] |
43 |
|
|
44 |
|
* Wed Jul 1 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-5.sme |
45 |
|
- Apply smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch [SME: 8967] |
46 |
|
|
47 |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2-4.sme |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2-4.sme |
48 |
- Apply locale 2015-02-17 patch |
- Apply locale 2015-02-17 patch |
49 |
|
|
135 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
136 |
%patch0 -p1 |
%patch0 -p1 |
137 |
%patch1 -p1 |
%patch1 -p1 |
138 |
|
%patch2 -p1 |
139 |
|
%patch3 -p1 |
140 |
|
%patch4 -p1 |
141 |
|
|
142 |
%build |
%build |
143 |
perl createlinks |
perl createlinks |
145 |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
146 |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
147 |
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
148 |
|
%{__mkdir_p} root/etc/openvpn/s2s/dev |
149 |
%{__mkdir_p} root/var/run/openvpn-s2s |
%{__mkdir_p} root/var/run/openvpn-s2s |
150 |
%{__mkdir_p} root/var/log/openvpn-s2s |
%{__mkdir_p} root/var/log/openvpn-s2s |
151 |
|
|
167 |
%clean |
%clean |
168 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
169 |
|
|
|
|
|
170 |
%post |
%post |
171 |
|
if [ \! -c /etc/openvpn/s2s/dev/urandom ]; then |
172 |
|
mknod -m 0444 /etc/openvpn/s2s/dev/urandom c 1 9 |
173 |
|
fi |
174 |
|
|
175 |
%preun |
%preun |
176 |
|
|