1 |
# $Id: smeserver-openvpn-s2s.spec,v 1.2 2013/11/11 17:37:01 vip-ire Exp $ |
# $Id: smeserver-openvpn-s2s.spec,v 1.5 2015/02/17 12:16:49 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 2 |
%define release 5 |
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-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 |
18 |
|
Patch2: smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch |
19 |
|
|
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
21 |
|
|
22 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
30 |
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 |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Wed Jul 1 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-5.sme |
34 |
|
- Apply smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch [SME: 8967] |
35 |
|
|
36 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2-4.sme |
37 |
|
- Apply locale 2015-02-17 patch |
38 |
|
|
39 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2-3.sme |
40 |
|
- Create required (but unused) /etc/openvpn/s2s/tmp dir |
41 |
|
|
42 |
* Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-2.sme |
* Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-2.sme |
43 |
- Use verify-x509-name instead of tls-remote |
- Use verify-x509-name instead of tls-remote |
44 |
|
|
123 |
|
|
124 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
125 |
%patch0 -p1 |
%patch0 -p1 |
126 |
|
%patch1 -p1 |
127 |
|
%patch2 -p1 |
128 |
|
|
129 |
%build |
%build |
130 |
perl createlinks |
perl createlinks |
131 |
|
|
132 |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
133 |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
134 |
|
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
135 |
%{__mkdir_p} root/var/run/openvpn-s2s |
%{__mkdir_p} root/var/run/openvpn-s2s |
136 |
%{__mkdir_p} root/var/log/openvpn-s2s |
%{__mkdir_p} root/var/log/openvpn-s2s |
137 |
|
|
142 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
143 |
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
144 |
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
145 |
|
--dir /etc/openvpn/s2s/tmp 'attr(0750,root,root)' \ |
146 |
--dir /var/log/openvpn-s2s 'attr(0770,root,nobody)' \ |
--dir /var/log/openvpn-s2s 'attr(0770,root,nobody)' \ |
147 |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
148 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |