1 |
%define name smeserver-libreswan |
2 |
%define version 0.5 |
3 |
%define release 27 |
4 |
Summary: Plugin to enable IPSEC connections |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GNU GPL version 2 |
9 |
URL: http://libreswan.org/ |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
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 |
|
24 |
BuildRoot: /var/tmp/%{name}-%{version} |
25 |
BuildArchitectures: noarch |
26 |
BuildRequires: e-smith-devtools |
27 |
Requires: e-smith-release >= 9.0 |
28 |
Requires: libreswan >= 3.16 |
29 |
AutoReqProv: no |
30 |
|
31 |
%description |
32 |
Libreswan is a free software implementation of the most widely supported and standardised VPN protocol based on ("IPsec") and the Internet Key Exchange ("IKE") |
33 |
|
34 |
%changelog |
35 |
* Tue Sep 19 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-27.sme |
36 |
- Allow variable network interface names - Stefano Zamboni |
37 |
|
38 |
* Thu Jun 15 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-26.sme |
39 |
- add keep-alive option in main ipsec.conf |
40 |
- add forceencaps option overall default and per connection |
41 |
- small code tidy |
42 |
- Add support for L2TPD |
43 |
|
44 |
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-25.sme |
45 |
- Fix the ipsec.conf as well |
46 |
- remove automatic \@ in IDs - Fixes [SME: 9729] |
47 |
|
48 |
* Thu Jan 26 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-24.sme |
49 |
- remove automatic \@ in IDs - Fixes [SME: 9729] |
50 |
- fix swapped left/right IDs in password file |
51 |
|
52 |
* Wed Jan 25 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-23.sme |
53 |
- Add the ability to use PEM/PKCS#12 certificates - fixes [SME: 9942] |
54 |
- lots of code tidying |
55 |
|
56 |
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-22.sme |
57 |
- update logrotate completely now I realise it is symlinked |
58 |
- remove UPDPort and add UPDPorts due to ipsec v2 |
59 |
|
60 |
* Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-21.sme |
61 |
- add more variations for ike v1/2 |
62 |
- remove logrotate template |
63 |
- add /etc/e-smith/events/logrotate/logfiles2timestamp/var/log/pluto.log |
64 |
- Fix some log noise when first installed and still disabled |
65 |
|
66 |
* Sat Apr 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-20.sme |
67 |
- Fix typo in createlinks for sysctl.conf |
68 |
|
69 |
* Mon Apr 04 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-19.sme |
70 |
- Fix ID in ipsec.secrets if ID is set |
71 |
|
72 |
* Thu Mar 24 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-18.sme |
73 |
- Add debug db key to /etc/ipsec.conf |
74 |
- Remove setting public/private keys as they won't affect unless templates are re-expanded |
75 |
- Set xfrm_larval_drop drop correctly |
76 |
|
77 |
* Tue Mar 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-17.sme |
78 |
- Move pluto.log to /var/log/pluto |
79 |
- bump libreswan requires version to 3.16 |
80 |
- regenerate masq template on ipsec-update |
81 |
- change wiki location page |
82 |
- add sysctl.conf template |
83 |
- modify masq templates for ipsec status enabled/disabled |
84 |
- only load ipsec.conf rather than *.conf to avoid loading v6neighbor-hole.conf |
85 |
|
86 |
* Thu Mar 10 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-16.sme |
87 |
- Fix masq templates for missing db entries on install |
88 |
|
89 |
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 0.5-15.sme |
90 |
- first import in SME buildsys |
91 |
|
92 |
* Wed Feb 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-13 |
93 |
- Fix small typo in readme |
94 |
|
95 |
* Fri Dec 04 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-12 |
96 |
- Add keyingtries |
97 |
- Finally fix add issues using asynchronous |
98 |
|
99 |
* Wed Dec 02 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-11 |
100 |
- Determine host IPtype - static or dynamic IP |
101 |
- auto --up changed to exec |
102 |
- Add checks for Left/Right ID in secrets file |
103 |
|
104 |
* Tue Dec 01 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-10 |
105 |
- Allow dynamic addresses |
106 |
- Add iptype |
107 |
- disallow " in PSK passwords |
108 |
- Revised logging messages |
109 |
|
110 |
* Mon Nov 30 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-9 |
111 |
- Amended templates to allow for rsasig. Early cert settings removed |
112 |
|
113 |
* Wed Nov 25 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-8 |
114 |
- Revised masq templates - disable on ipsec disable |
115 |
- Template ipsec.secrets so Terry won't break it again |
116 |
- Set requires e-smith >=9 and libreswan >=3.14 |
117 |
|
118 |
* Wed Nov 18 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-7 |
119 |
- add 90adjustESP |
120 |
|
121 |
* Tue Nov 17 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-6 |
122 |
- more update to masq firewalls - change -p 50 to -p ESP |
123 |
|
124 |
* Tue Nov 17 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5 |
125 |
- update masq firewall rules |
126 |
- document clean up |
127 |
|
128 |
* Wed May 27 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4 |
129 |
- set dpd actions off if ipsec is 'add' |
130 |
- add salifetime key and rename ikelifetime and keylife |
131 |
- change defaults for salifetime and ikelifetime |
132 |
- add in rsasig support |
133 |
|
134 |
* Wed Apr 22 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-3 |
135 |
- change default ike from aes-sha to aes-sha1 |
136 |
|
137 |
* Tue Mar 24 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2 |
138 |
- More minor fixes - should work OK with xl2tpd |
139 |
|
140 |
* Thu Mar 19 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1 |
141 |
- Remove templates2expand and added to createlinks |
142 |
- modified ipsec.secret template |
143 |
- various other fixes |
144 |
|
145 |
* Fri Mar 13 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5 |
146 |
- Big changes again - now have PreviousState to detect changes |
147 |
- Createlinks to S10 to run after expand-templates |
148 |
|
149 |
* Thu Mar 5 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-4 |
150 |
- Changed lots. Removed sysctl.conf template |
151 |
- Changed firewall template |
152 |
|
153 |
* Tue Mar 3 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-3 |
154 |
- Load of code tidying and prep from xl2tpd |
155 |
|
156 |
* Fri Feb 27 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-2 |
157 |
- Update action script and allow for system not in gateway mode |
158 |
- add ike and phase2alg db settings |
159 |
|
160 |
* Tue Feb 24 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1 |
161 |
- New ipsec-action script |
162 |
- Numerous template changes |
163 |
|
164 |
* Fri Jan 16 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1 |
165 |
- remove debugging lines |
166 |
- remove expand templates from spec file |
167 |
- add status check for ipsec.conf |
168 |
- add comment to masq template |
169 |
- updated db defaults |
170 |
- ipsec.conf not expanded on install |
171 |
- missed auto=start |
172 |
|
173 |
* Fri Jan 16 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1 |
174 |
- remove rc.local modifications |
175 |
- add /etc/sysctl.conf patches |
176 |
|
177 |
* Thu Jan 15 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1 |
178 |
- initial release |
179 |
|
180 |
%prep |
181 |
%setup |
182 |
%patch1 -p1 |
183 |
%patch2 -p1 |
184 |
%patch3 -p1 |
185 |
%patch4 -p1 |
186 |
%patch5 -p1 |
187 |
%patch6 -p1 |
188 |
%patch7 -p1 |
189 |
%patch8 -p1 |
190 |
%patch9 -p1 |
191 |
%patch10 -p1 |
192 |
%patch11 -p1 |
193 |
|
194 |
%build |
195 |
perl createlinks |
196 |
|
197 |
%install |
198 |
rm -rf $RPM_BUILD_ROOT |
199 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
200 |
rm -f %{name}-%{version}-filelist |
201 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
202 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
203 |
|
204 |
|
205 |
%clean |
206 |
cd .. |
207 |
rm -rf %{name}-%{version} |
208 |
|
209 |
%files -f %{name}-%{version}-filelist |
210 |
%defattr(-,root,root) |
211 |
|
212 |
%pre |
213 |
%preun |
214 |
%post |
215 |
|
216 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
217 |
/sbin/e-smith/expand-template /etc/inittab |
218 |
/sbin/init q |
219 |
|
220 |
|
221 |
echo "see https://wiki.contribs.org/Libreswan" |
222 |
|
223 |
%postun |
224 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
225 |
/sbin/e-smith/expand-template /etc/inittab |
226 |
/sbin/init q |