1 |
# $Id: smeserver-openvpn-s2s.spec,v 1.12 2011/10/13 16:49:06 vip-ire Exp $ |
# $Id: smeserver-openvpn-s2s.spec,v 1.5 2014/12/18 08:33:09 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.1 |
%define version 0.1 |
9 |
%define release 21 |
%define release 26 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
48 |
Patch32: smeserver-openvpn-s2s-0.1-snat_outbound.patch |
Patch32: smeserver-openvpn-s2s-0.1-snat_outbound.patch |
49 |
Patch33: smeserver-openvpn-s2s-0.1-fix_remote_host_desc.patch |
Patch33: smeserver-openvpn-s2s-0.1-fix_remote_host_desc.patch |
50 |
Patch34: smeserver-openvpn-s2s-0.1-locale-2011-10-13.patch |
Patch34: smeserver-openvpn-s2s-0.1-locale-2011-10-13.patch |
51 |
|
Patch35: smeserver-openvpn-s2s-0.1-locale-2013-07-14.patch |
52 |
|
Patch36: smeserver-openvpn-s2s-0.1-use_verify_x509_name.patch |
53 |
|
Patch37: smeserver-openvpn-s2s-0.1-locale-2014-11-02.patch |
54 |
|
Patch38: smeserver-openvpn-s2s-0.1-locale-2015-02-17.patch |
55 |
|
|
56 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
57 |
|
|
66 |
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 |
67 |
|
|
68 |
%changelog |
%changelog |
69 |
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.1-26.sme |
70 |
|
- Apply locale 2015-02-17 patch |
71 |
|
|
72 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1-25.sme |
73 |
|
- Create required but unused /etc/openvpn/s2s/tmp dir |
74 |
|
|
75 |
|
* Sun Nov 2 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1-24.sme |
76 |
|
- Apply locale 2014-11-02 patch |
77 |
|
|
78 |
|
* Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-23.sme |
79 |
|
- Use verify-x509-name instead of tls-remote |
80 |
|
|
81 |
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 0.1-22.sme |
82 |
|
- apply locale 2013-07-14 patch |
83 |
|
|
84 |
* Thu Oct 13 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-21.sme |
* Thu Oct 13 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-21.sme |
85 |
- Apply locale 2011-10-13 patch |
- Apply locale 2011-10-13 patch |
86 |
|
|
190 |
%patch32 -p1 |
%patch32 -p1 |
191 |
%patch33 -p1 |
%patch33 -p1 |
192 |
%patch34 -p1 |
%patch34 -p1 |
193 |
|
%patch35 -p1 |
194 |
|
%patch36 -p1 |
195 |
|
%patch37 -p1 |
196 |
|
%patch38 -p1 |
197 |
|
|
198 |
%build |
%build |
199 |
perl createlinks |
perl createlinks |
200 |
|
|
201 |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
202 |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
203 |
|
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
204 |
%{__mkdir_p} root/var/run/openvpn-s2s |
%{__mkdir_p} root/var/run/openvpn-s2s |
205 |
%{__mkdir_p} root/var/log/openvpn-s2s |
%{__mkdir_p} root/var/log/openvpn-s2s |
206 |
|
|
211 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
212 |
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
213 |
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
214 |
|
--dir /etc/openvpn/s2s/tmp 'attr(0750,root,root)' \ |
215 |
--dir /var/log/openvpn-s2s 'attr(0770,root,nobody)' \ |
--dir /var/log/openvpn-s2s 'attr(0770,root,nobody)' \ |
216 |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
217 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |