1 |
# $Id: smeserver-openvpn-s2s.spec,v 1.5 2021/03/31 20:54:55 jpp Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Summary: OpenVPN, a strong VPN solution built over SSL, for site to site tunnels |
6 |
%define name smeserver-openvpn-s2s |
7 |
Name: %{name} |
8 |
%define version 0.2 |
9 |
%define release 13 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Remote access |
14 |
Source: %{name}-%{version}.tar.xz |
15 |
|
16 |
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 |
Patch3: smeserver-openvpn-s2s-0.2-fix_daemon_id_validation.patch |
20 |
Patch4: smeserver-openvpn-s2s-0.2-locale-2017-12-02.patch |
21 |
Patch5: smeserver-openvpn-s2s-0.2-Alter-for-systemd-startup.patch |
22 |
Patch6: smeserver-openvpn-s2s-0.2-sme10.patch |
23 |
|
24 |
BuildArchitectures: noarch |
25 |
|
26 |
BuildRequires: e-smith-devtools |
27 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
|
29 |
Requires: e-smith-base |
30 |
Requires: openvpn >= 2.1 |
31 |
|
32 |
%description |
33 |
This package contains all the needed scripts and templates |
34 |
to run openvpn in client or server mode for site to site tunnels |
35 |
|
36 |
%changelog |
37 |
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-13.sme |
38 |
- fix permission on log dir [SME: 11516] |
39 |
|
40 |
* Wed Mar 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-12.sme |
41 |
- fix typos [SME: 11498] |
42 |
|
43 |
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-11.sme |
44 |
- enforce better cipher with settings [SME: 11498] |
45 |
- enforce better HMAC with setting [SME: 11498] |
46 |
- enforce TLS 1.2 or better with setting [SME: 11498] |
47 |
- enforce strong TLS ciphers with setting [SME: 11498] |
48 |
- better list of vpn connections [SME: 11337] |
49 |
- allow soft reload of individual connection [SME: 11337] |
50 |
- fix incorect permission on private keys [SME: 11337] |
51 |
|
52 |
* Thu Feb 04 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-9.sme |
53 |
- Initial import to SME10 [SME: 11337] |
54 |
- Alter-for-systemd-startup |
55 |
|
56 |
* Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 0.2-8.sme |
57 |
- apply locale 2017-12-02 patch |
58 |
|
59 |
* Wed Oct 25 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2-7.sme |
60 |
- Fix daemon ID validation [SME: 10446] |
61 |
|
62 |
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.2-6.sme |
63 |
- Create /etc/openvpn/s2s/dev/urandom [SME: 9238] |
64 |
|
65 |
* Wed Jul 1 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-5.sme |
66 |
- Apply smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch [SME: 8967] |
67 |
|
68 |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2-4.sme |
69 |
- Apply locale 2015-02-17 patch |
70 |
|
71 |
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2-3.sme |
72 |
- Create required (but unused) /etc/openvpn/s2s/tmp dir |
73 |
|
74 |
* Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-2.sme |
75 |
- Use verify-x509-name instead of tls-remote |
76 |
|
77 |
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-1.sme |
78 |
- Rebuild for SME9 |
79 |
|
80 |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 0.1-22.sme |
81 |
- apply locale 2013-07-14 patch |
82 |
|
83 |
* Thu Oct 13 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-21.sme |
84 |
- Apply locale 2011-10-13 patch |
85 |
|
86 |
* Thu Jun 2 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-20.sme |
87 |
- Fix remote host description |
88 |
|
89 |
* Wed Jun 1 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-19.sme |
90 |
- SNAT outbound connexions to use the local IP as source |
91 |
|
92 |
* Tue Apr 19 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-18.sme |
93 |
- Reduce inactivity timeout |
94 |
|
95 |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 0.1-17.sme |
96 |
- apply locale 2011-03-06 patch |
97 |
|
98 |
* Tue Jan 25 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-16.sme |
99 |
- Stop disabling service on rpm removal (spec change only) |
100 |
|
101 |
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-15.sme |
102 |
- Remove useless smb.conf template |
103 |
|
104 |
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-14.sme |
105 |
- Fix type variable (thks M. Doerner) |
106 |
|
107 |
* Mon Nov 8 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-13.sme |
108 |
- Apply locale 2010-11-08 patch |
109 |
|
110 |
* Thu Nov 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-12.sme |
111 |
- Apply locale 2010-11-04 patch |
112 |
|
113 |
* Tue Nov 02 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-11.sme |
114 |
- Remove the nice directive |
115 |
|
116 |
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-10.sme |
117 |
- Expand smb.conf and restart samba services |
118 |
|
119 |
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-9.sme |
120 |
- Fix typo in up script |
121 |
|
122 |
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-8.sme |
123 |
- Various enhancement in templates |
124 |
- Set wget timeout |
125 |
- Fix crontab templates |
126 |
|
127 |
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-7.sme |
128 |
- Implement CRL updates and verification |
129 |
- Fix masq template |
130 |
|
131 |
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-6.sme |
132 |
- Set VPN networks non removable |
133 |
|
134 |
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-5.sme |
135 |
- Rename logrotate configuration file |
136 |
- Add missingok to logrotate conf |
137 |
- Support per configuration customization |
138 |
- Add TLS auth support |
139 |
|
140 |
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-4.sme |
141 |
- Fix adding routes in up script |
142 |
- Log drop trafic |
143 |
- Fix multiple net validation |
144 |
|
145 |
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme |
146 |
- allow one-way VPN with AllowInbound prop |
147 |
|
148 |
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme |
149 |
- Various fixes |
150 |
|
151 |
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-1.sme |
152 |
- initiale release (based on work from Florian Dejan) |
153 |
|
154 |
%prep |
155 |
|
156 |
%setup -q -n %{name}-%{version} |
157 |
%patch0 -p1 |
158 |
%patch1 -p1 |
159 |
%patch2 -p1 |
160 |
%patch3 -p1 |
161 |
%patch4 -p1 |
162 |
%patch5 -p1 |
163 |
%patch6 -p1 |
164 |
|
165 |
%build |
166 |
perl createlinks |
167 |
|
168 |
%{__mkdir_p} root/etc/openvpn/s2s/priv |
169 |
%{__mkdir_p} root/etc/openvpn/s2s/pub |
170 |
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
171 |
%{__mkdir_p} root/etc/openvpn/s2s/dev |
172 |
%{__mkdir_p} root/var/run/openvpn-s2s |
173 |
%{__mkdir_p} root/var/log/openvpn-s2s |
174 |
|
175 |
%install |
176 |
/bin/rm -rf $RPM_BUILD_ROOT |
177 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
178 |
/bin/chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/openvpn-s2s |
179 |
/bin/rm -f %{name}-%{version}-filelist |
180 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
181 |
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
182 |
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
183 |
--dir /etc/openvpn/s2s/tmp 'attr(0750,root,root)' \ |
184 |
--dir /var/log/openvpn-s2s 'attr(0770,root,root)' \ |
185 |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
186 |
> %{name}-%{version}-filelist |
187 |
|
188 |
%files -f %{name}-%{version}-filelist |
189 |
%defattr(-,root,root) |
190 |
|
191 |
|
192 |
%clean |
193 |
rm -rf $RPM_BUILD_ROOT |
194 |
|
195 |
%post |
196 |
if [ \! -c /etc/openvpn/s2s/dev/urandom ]; then |
197 |
mknod -m 0444 /etc/openvpn/s2s/dev/urandom c 1 9 |
198 |
fi |
199 |
#chown root:root /var/log/openvpn-s2s |
200 |
%preun |
201 |
|