1 |
%define name smeserver-libreswan |
%define name smeserver-libreswan |
2 |
%define version 0.5 |
%define version 0.5 |
3 |
%define release 17 |
%define release 30 |
4 |
Summary: Plugin to enable IPSEC connections |
Summary: Plugin to enable IPSEC connections |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Patch1: smeserver-libreswan-fix-masq-templates.patch |
Patch1: smeserver-libreswan-fix-masq-templates.patch |
13 |
Patch2: smeserver-libreswan-move-logfile.patch |
Patch2: smeserver-libreswan-move-logfile.patch |
14 |
|
Patch3: smeserver-libreswan-add-debug-key.patch |
15 |
|
Patch4: smeserver-libreswan-fix-rsa-id.patch |
16 |
|
Patch5: smeserver-libreswan-fix-createlinks.patch |
17 |
|
Patch6: smeserver-libreswan-ikev2-logrotate.patch |
18 |
|
Patch7: smeserver-libreswan-add-certificates.patch |
19 |
|
Patch8: smeserver-libreswan-modify-identifiers.patch |
20 |
|
Patch9: smeserver-libreswan-modify-identifiers1.patch |
21 |
|
Patch10: smeserver-libreswan-forceencaps-l2tpd.patch |
22 |
|
Patch11: smeserver-libreswan-variable-network-interfaces.patch |
23 |
|
Patch12: smeserver-libreswan-remove-obsoletes.patch |
24 |
|
Patch13: smeserver-libreswan-add-reauth.patch |
25 |
|
Patch14: smeserver-libreswan-check-l2tpd-status.patch |
26 |
|
|
27 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
28 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
29 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
30 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.2 |
31 |
Requires: libreswan >= 3.16 |
Requires: libreswan >= 3.29 |
32 |
AutoReqProv: no |
AutoReqProv: no |
33 |
|
|
34 |
%description |
%description |
35 |
Libreswan is a free software implementation of the most widely supported and standardised VPN protocol based on ("IPsec") and the Internet Key Exchange ("IKE") |
Libreswan is a free software implementation of the most widely supported and standardised VPN protocol based on ("IPsec") and the Internet Key Exchange ("IKE") |
36 |
|
|
37 |
%changelog |
%changelog |
38 |
|
* Sun Oct 13 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-30.sme |
39 |
|
- Fix issue when there is no xl2tpd key |
40 |
|
|
41 |
|
* Sat Aug 31 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-29.sme |
42 |
|
- Bump required Libreswan to 3.29 |
43 |
|
- add reauth option |
44 |
|
|
45 |
|
* Thu Jun 21 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-28.sme |
46 |
|
- Bump required Libreswan to 3.23 |
47 |
|
- Change forceencaps to encapsulation |
48 |
|
- Remove obsolete nat_traversal |
49 |
|
- Modify ipsec.conf for no rightsubnet in xl2tpd |
50 |
|
|
51 |
|
* Tue Sep 19 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-27.sme |
52 |
|
- Allow variable network interface names - Stefano Zamboni |
53 |
|
|
54 |
|
* Thu Jun 15 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-26.sme |
55 |
|
- add keep-alive option in main ipsec.conf |
56 |
|
- add forceencaps option overall default and per connection |
57 |
|
- small code tidy |
58 |
|
- Add support for L2TPD |
59 |
|
|
60 |
|
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-25.sme |
61 |
|
- Fix the ipsec.conf as well |
62 |
|
- remove automatic \@ in IDs - Fixes [SME: 9729] |
63 |
|
|
64 |
|
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-24.sme |
65 |
|
- remove automatic \@ in IDs - Fixes [SME: 9729] |
66 |
|
- fix swapped left/right IDs in password file |
67 |
|
|
68 |
|
* Wed Jan 25 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-23.sme |
69 |
|
- Add the ability to use PEM/PKCS#12 certificates - fixes [SME: 9942] |
70 |
|
- lots of code tidying |
71 |
|
|
72 |
|
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-22.sme |
73 |
|
- update logrotate completely now I realise it is symlinked |
74 |
|
- remove UPDPort and add UPDPorts due to ipsec v2 |
75 |
|
|
76 |
|
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-21.sme |
77 |
|
- add more variations for ike v1/2 |
78 |
|
- remove logrotate template |
79 |
|
- add /etc/e-smith/events/logrotate/logfiles2timestamp/var/log/pluto.log |
80 |
|
- Fix some log noise when first installed and still disabled |
81 |
|
|
82 |
|
* Sat Apr 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-20.sme |
83 |
|
- Fix typo in createlinks for sysctl.conf |
84 |
|
|
85 |
|
* Mon Apr 04 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-19.sme |
86 |
|
- Fix ID in ipsec.secrets if ID is set |
87 |
|
|
88 |
|
* Thu Mar 24 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-18.sme |
89 |
|
- Add debug db key to /etc/ipsec.conf |
90 |
|
- Remove setting public/private keys as they won't affect unless templates are re-expanded |
91 |
|
- Set xfrm_larval_drop drop correctly |
92 |
|
|
93 |
* Tue Mar 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-17.sme |
* Tue Mar 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-17.sme |
94 |
- Move pluto.log to /var/log/pluto |
- Move pluto.log to /var/log/pluto |
95 |
- bump libreswan requires version to 3.16 |
- bump libreswan requires version to 3.16 |
197 |
%setup |
%setup |
198 |
%patch1 -p1 |
%patch1 -p1 |
199 |
%patch2 -p1 |
%patch2 -p1 |
200 |
|
%patch3 -p1 |
201 |
|
%patch4 -p1 |
202 |
|
%patch5 -p1 |
203 |
|
%patch6 -p1 |
204 |
|
%patch7 -p1 |
205 |
|
%patch8 -p1 |
206 |
|
%patch9 -p1 |
207 |
|
%patch10 -p1 |
208 |
|
%patch11 -p1 |
209 |
|
%patch12 -p1 |
210 |
|
%patch13 -p1 |
211 |
|
%patch14 -p1 |
212 |
|
|
213 |
%build |
%build |
214 |
perl createlinks |
perl createlinks |
231 |
%pre |
%pre |
232 |
%preun |
%preun |
233 |
%post |
%post |
234 |
|
|
235 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
236 |
/sbin/e-smith/expand-template /etc/inittab |
/sbin/e-smith/expand-template /etc/inittab |
237 |
/sbin/init q |
/sbin/init q |
238 |
|
|
239 |
|
|
240 |
echo "see http://wiki.contribs.org/VPN" |
echo "see https://wiki.contribs.org/Libreswan" |
241 |
|
|
242 |
%postun |
%postun |
243 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |