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.4 2014/11/02 01:05:28 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 25 |
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 |
|
|
55 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
56 |
|
|
65 |
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 |
66 |
|
|
67 |
%changelog |
%changelog |
68 |
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1-25.sme |
69 |
|
- Create required but unused /etc/openvpn/s2s/tmp dir |
70 |
|
|
71 |
|
* Sun Nov 2 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1-24.sme |
72 |
|
- Apply locale 2014-11-02 patch |
73 |
|
|
74 |
|
* Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-23.sme |
75 |
|
- Use verify-x509-name instead of tls-remote |
76 |
|
|
77 |
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 0.1-22.sme |
78 |
|
- apply locale 2013-07-14 patch |
79 |
|
|
80 |
* 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 |
81 |
- Apply locale 2011-10-13 patch |
- Apply locale 2011-10-13 patch |
82 |
|
|
186 |
%patch32 -p1 |
%patch32 -p1 |
187 |
%patch33 -p1 |
%patch33 -p1 |
188 |
%patch34 -p1 |
%patch34 -p1 |
189 |
|
%patch35 -p1 |
190 |
|
%patch36 -p1 |
191 |
|
%patch37 -p1 |
192 |
|
|
193 |
%build |
%build |
194 |
perl createlinks |
perl createlinks |
195 |
|
|
196 |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
197 |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
198 |
|
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
199 |
%{__mkdir_p} root/var/run/openvpn-s2s |
%{__mkdir_p} root/var/run/openvpn-s2s |
200 |
%{__mkdir_p} root/var/log/openvpn-s2s |
%{__mkdir_p} root/var/log/openvpn-s2s |
201 |
|
|
206 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
207 |
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
208 |
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
209 |
|
--dir /etc/openvpn/s2s/tmp 'attr(0750,root,root)' \ |
210 |
--dir /var/log/openvpn-s2s 'attr(0770,root,nobody)' \ |
--dir /var/log/openvpn-s2s 'attr(0770,root,nobody)' \ |
211 |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
212 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |