1 |
%define name smeserver-libreswan |
%define name smeserver-libreswan |
2 |
%define version 0.5 |
%define version 0.5 |
3 |
%define release 16 |
%define release 29 |
4 |
Summary: Plugin to enable IPSEC connections |
Summary: Plugin to enable IPSEC connections |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
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 |
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 |
|
|
26 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
27 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
28 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
29 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.2 |
30 |
Requires: libreswan >= 3.14 |
Requires: libreswan >= 3.29 |
31 |
AutoReqProv: no |
AutoReqProv: no |
32 |
|
|
33 |
%description |
%description |
34 |
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") |
35 |
|
|
36 |
%changelog |
%changelog |
37 |
|
* Sat Aug 31 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-29.sme |
38 |
|
- Bump required Libreswan to 3.29 |
39 |
|
- add reauth option |
40 |
|
|
41 |
|
* Thu Jun 21 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-28.sme |
42 |
|
- Bump required Libreswan to 3.23 |
43 |
|
- Change forceencaps to encapsulation |
44 |
|
- Remove obsolete nat_traversal |
45 |
|
- Modify ipsec.conf for no rightsubnet in xl2tpd |
46 |
|
|
47 |
|
* Tue Sep 19 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-27.sme |
48 |
|
- Allow variable network interface names - Stefano Zamboni |
49 |
|
|
50 |
|
* Thu Jun 15 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-26.sme |
51 |
|
- add keep-alive option in main ipsec.conf |
52 |
|
- add forceencaps option overall default and per connection |
53 |
|
- small code tidy |
54 |
|
- Add support for L2TPD |
55 |
|
|
56 |
|
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-25.sme |
57 |
|
- Fix the ipsec.conf as well |
58 |
|
- remove automatic \@ in IDs - Fixes [SME: 9729] |
59 |
|
|
60 |
|
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-24.sme |
61 |
|
- remove automatic \@ in IDs - Fixes [SME: 9729] |
62 |
|
- fix swapped left/right IDs in password file |
63 |
|
|
64 |
|
* Wed Jan 25 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-23.sme |
65 |
|
- Add the ability to use PEM/PKCS#12 certificates - fixes [SME: 9942] |
66 |
|
- lots of code tidying |
67 |
|
|
68 |
|
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-22.sme |
69 |
|
- update logrotate completely now I realise it is symlinked |
70 |
|
- remove UPDPort and add UPDPorts due to ipsec v2 |
71 |
|
|
72 |
|
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-21.sme |
73 |
|
- add more variations for ike v1/2 |
74 |
|
- remove logrotate template |
75 |
|
- add /etc/e-smith/events/logrotate/logfiles2timestamp/var/log/pluto.log |
76 |
|
- Fix some log noise when first installed and still disabled |
77 |
|
|
78 |
|
* Sat Apr 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-20.sme |
79 |
|
- Fix typo in createlinks for sysctl.conf |
80 |
|
|
81 |
|
* Mon Apr 04 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-19.sme |
82 |
|
- Fix ID in ipsec.secrets if ID is set |
83 |
|
|
84 |
|
* Thu Mar 24 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-18.sme |
85 |
|
- Add debug db key to /etc/ipsec.conf |
86 |
|
- Remove setting public/private keys as they won't affect unless templates are re-expanded |
87 |
|
- Set xfrm_larval_drop drop correctly |
88 |
|
|
89 |
|
* Tue Mar 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-17.sme |
90 |
|
- Move pluto.log to /var/log/pluto |
91 |
|
- bump libreswan requires version to 3.16 |
92 |
|
- regenerate masq template on ipsec-update |
93 |
|
- change wiki location page |
94 |
|
- add sysctl.conf template |
95 |
|
- modify masq templates for ipsec status enabled/disabled |
96 |
|
- only load ipsec.conf rather than *.conf to avoid loading v6neighbor-hole.conf |
97 |
|
|
98 |
* Thu Mar 10 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-16.sme |
* Thu Mar 10 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-16.sme |
99 |
- Fix masq templates for missing db entries on install |
- Fix masq templates for missing db entries on install |
100 |
|
|
192 |
%prep |
%prep |
193 |
%setup |
%setup |
194 |
%patch1 -p1 |
%patch1 -p1 |
195 |
|
%patch2 -p1 |
196 |
|
%patch3 -p1 |
197 |
|
%patch4 -p1 |
198 |
|
%patch5 -p1 |
199 |
|
%patch6 -p1 |
200 |
|
%patch7 -p1 |
201 |
|
%patch8 -p1 |
202 |
|
%patch9 -p1 |
203 |
|
%patch10 -p1 |
204 |
|
%patch11 -p1 |
205 |
|
%patch12 -p1 |
206 |
|
%patch13 -p1 |
207 |
|
|
208 |
%build |
%build |
209 |
perl createlinks |
perl createlinks |
232 |
/sbin/init q |
/sbin/init q |
233 |
|
|
234 |
|
|
235 |
echo "see http://wiki.contribs.org/IPSEC" |
echo "see https://wiki.contribs.org/Libreswan" |
236 |
|
|
237 |
%postun |
%postun |
238 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |