1 |
%define name smeserver-libreswan |
%define name smeserver-libreswan |
2 |
%define version 0.5 |
%define version 0.5 |
3 |
%define release 17 |
%define release 32 |
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 |
|
Patch15: smeserver-libreswan-include-l2tpd-rightsubnet.patch |
27 |
|
Patch16: smeserver-libreswan-fix-xl2tpd-status-check.patch |
28 |
|
|
29 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
30 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
31 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
32 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.2 |
33 |
Requires: libreswan >= 3.16 |
Requires: libreswan >= 3.29 |
34 |
AutoReqProv: no |
AutoReqProv: no |
35 |
|
|
36 |
%description |
%description |
37 |
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") |
38 |
|
|
39 |
%changelog |
%changelog |
40 |
|
* Thu Jan 30 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-32.sme |
41 |
|
- Fix xl2tpd status check |
42 |
|
|
43 |
|
* Thu Oct 17 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-31.sme |
44 |
|
- Allow rightsubnet for xl2tpd in virtual_private |
45 |
|
- Add check for empty virtual_private hosts |
46 |
|
|
47 |
|
* Sun Oct 13 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-30.sme |
48 |
|
- Fix issue when there is no xl2tpd key |
49 |
|
|
50 |
|
* Sat Aug 31 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-29.sme |
51 |
|
- Bump required Libreswan to 3.29 |
52 |
|
- add reauth option |
53 |
|
|
54 |
|
* Thu Jun 21 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-28.sme |
55 |
|
- Bump required Libreswan to 3.23 |
56 |
|
- Change forceencaps to encapsulation |
57 |
|
- Remove obsolete nat_traversal |
58 |
|
- Modify ipsec.conf for no rightsubnet in xl2tpd |
59 |
|
|
60 |
|
* Tue Sep 19 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-27.sme |
61 |
|
- Allow variable network interface names - Stefano Zamboni |
62 |
|
|
63 |
|
* Thu Jun 15 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-26.sme |
64 |
|
- add keep-alive option in main ipsec.conf |
65 |
|
- add forceencaps option overall default and per connection |
66 |
|
- small code tidy |
67 |
|
- Add support for L2TPD |
68 |
|
|
69 |
|
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-25.sme |
70 |
|
- Fix the ipsec.conf as well |
71 |
|
- remove automatic \@ in IDs - Fixes [SME: 9729] |
72 |
|
|
73 |
|
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-24.sme |
74 |
|
- remove automatic \@ in IDs - Fixes [SME: 9729] |
75 |
|
- fix swapped left/right IDs in password file |
76 |
|
|
77 |
|
* Wed Jan 25 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-23.sme |
78 |
|
- Add the ability to use PEM/PKCS#12 certificates - fixes [SME: 9942] |
79 |
|
- lots of code tidying |
80 |
|
|
81 |
|
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-22.sme |
82 |
|
- update logrotate completely now I realise it is symlinked |
83 |
|
- remove UPDPort and add UPDPorts due to ipsec v2 |
84 |
|
|
85 |
|
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-21.sme |
86 |
|
- add more variations for ike v1/2 |
87 |
|
- remove logrotate template |
88 |
|
- add /etc/e-smith/events/logrotate/logfiles2timestamp/var/log/pluto.log |
89 |
|
- Fix some log noise when first installed and still disabled |
90 |
|
|
91 |
|
* Sat Apr 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-20.sme |
92 |
|
- Fix typo in createlinks for sysctl.conf |
93 |
|
|
94 |
|
* Mon Apr 04 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-19.sme |
95 |
|
- Fix ID in ipsec.secrets if ID is set |
96 |
|
|
97 |
|
* Thu Mar 24 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-18.sme |
98 |
|
- Add debug db key to /etc/ipsec.conf |
99 |
|
- Remove setting public/private keys as they won't affect unless templates are re-expanded |
100 |
|
- Set xfrm_larval_drop drop correctly |
101 |
|
|
102 |
* 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 |
103 |
- Move pluto.log to /var/log/pluto |
- Move pluto.log to /var/log/pluto |
104 |
- bump libreswan requires version to 3.16 |
- bump libreswan requires version to 3.16 |
206 |
%setup |
%setup |
207 |
%patch1 -p1 |
%patch1 -p1 |
208 |
%patch2 -p1 |
%patch2 -p1 |
209 |
|
%patch3 -p1 |
210 |
|
%patch4 -p1 |
211 |
|
%patch5 -p1 |
212 |
|
%patch6 -p1 |
213 |
|
%patch7 -p1 |
214 |
|
%patch8 -p1 |
215 |
|
%patch9 -p1 |
216 |
|
%patch10 -p1 |
217 |
|
%patch11 -p1 |
218 |
|
%patch12 -p1 |
219 |
|
%patch13 -p1 |
220 |
|
%patch14 -p1 |
221 |
|
%patch15 -p1 |
222 |
|
%patch16 -p1 |
223 |
|
|
224 |
%build |
%build |
225 |
perl createlinks |
perl createlinks |
242 |
%pre |
%pre |
243 |
%preun |
%preun |
244 |
%post |
%post |
245 |
|
|
246 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
247 |
/sbin/e-smith/expand-template /etc/inittab |
/sbin/e-smith/expand-template /etc/inittab |
248 |
/sbin/init q |
/sbin/init q |
249 |
|
|
250 |
|
|
251 |
echo "see http://wiki.contribs.org/VPN" |
echo "see https://wiki.contribs.org/Libreswan" |
252 |
|
|
253 |
%postun |
%postun |
254 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |