1 |
unnilennium |
1.1 |
%define name smeserver-libreswan |
2 |
|
|
%define version 0.5 |
3 |
jcrisp |
1.19 |
%define release 32 |
4 |
unnilennium |
1.1 |
Summary: Plugin to enable IPSEC connections |
5 |
|
|
Name: %{name} |
6 |
|
|
Version: %{version} |
7 |
unnilennium |
1.3 |
Release: %{release}%{?dist} |
8 |
unnilennium |
1.1 |
License: GNU GPL version 2 |
9 |
|
|
URL: http://libreswan.org/ |
10 |
|
|
Group: SMEserver/addon |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
reetspetit |
1.4 |
Patch1: smeserver-libreswan-fix-masq-templates.patch |
13 |
reetspetit |
1.5 |
Patch2: smeserver-libreswan-move-logfile.patch |
14 |
reetspetit |
1.6 |
Patch3: smeserver-libreswan-add-debug-key.patch |
15 |
reetspetit |
1.7 |
Patch4: smeserver-libreswan-fix-rsa-id.patch |
16 |
reetspetit |
1.8 |
Patch5: smeserver-libreswan-fix-createlinks.patch |
17 |
reetspetit |
1.9 |
Patch6: smeserver-libreswan-ikev2-logrotate.patch |
18 |
reetspetit |
1.10 |
Patch7: smeserver-libreswan-add-certificates.patch |
19 |
reetspetit |
1.11 |
Patch8: smeserver-libreswan-modify-identifiers.patch |
20 |
reetspetit |
1.12 |
Patch9: smeserver-libreswan-modify-identifiers1.patch |
21 |
reetspetit |
1.13 |
Patch10: smeserver-libreswan-forceencaps-l2tpd.patch |
22 |
reetspetit |
1.14 |
Patch11: smeserver-libreswan-variable-network-interfaces.patch |
23 |
jcrisp |
1.15 |
Patch12: smeserver-libreswan-remove-obsoletes.patch |
24 |
jcrisp |
1.16 |
Patch13: smeserver-libreswan-add-reauth.patch |
25 |
jcrisp |
1.17 |
Patch14: smeserver-libreswan-check-l2tpd-status.patch |
26 |
jcrisp |
1.18 |
Patch15: smeserver-libreswan-include-l2tpd-rightsubnet.patch |
27 |
jcrisp |
1.19 |
Patch16: smeserver-libreswan-fix-xl2tpd-status-check.patch |
28 |
reetspetit |
1.9 |
|
29 |
unnilennium |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version} |
30 |
|
|
BuildArchitectures: noarch |
31 |
|
|
BuildRequires: e-smith-devtools |
32 |
jcrisp |
1.15 |
Requires: e-smith-release >= 9.2 |
33 |
jcrisp |
1.16 |
Requires: libreswan >= 3.29 |
34 |
unnilennium |
1.1 |
AutoReqProv: no |
35 |
|
|
|
36 |
|
|
%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") |
38 |
|
|
|
39 |
|
|
%changelog |
40 |
jcrisp |
1.19 |
* Thu Jan 30 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-32.sme |
41 |
|
|
- Fix xl2tpd status check |
42 |
|
|
|
43 |
jcrisp |
1.18 |
* 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 |
jcrisp |
1.17 |
* 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 |
jcrisp |
1.16 |
* 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 |
jcrisp |
1.15 |
* Thu Jun 21 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-28.sme |
55 |
|
|
- Bump required Libreswan to 3.23 |
56 |
jcrisp |
1.16 |
- Change forceencaps to encapsulation |
57 |
jcrisp |
1.15 |
- Remove obsolete nat_traversal |
58 |
|
|
- Modify ipsec.conf for no rightsubnet in xl2tpd |
59 |
|
|
|
60 |
reetspetit |
1.14 |
* Tue Sep 19 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-27.sme |
61 |
|
|
- Allow variable network interface names - Stefano Zamboni |
62 |
reetspetit |
1.13 |
|
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 |
reetspetit |
1.12 |
* 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 |
reetspetit |
1.11 |
* 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 |
reetspetit |
1.10 |
* 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 |
reetspetit |
1.9 |
* 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 |
reetspetit |
1.8 |
* Sat Apr 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-20.sme |
92 |
|
|
- Fix typo in createlinks for sysctl.conf |
93 |
reetspetit |
1.7 |
|
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 |
reetspetit |
1.6 |
* 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 |
reetspetit |
1.7 |
- Set xfrm_larval_drop drop correctly |
101 |
reetspetit |
1.6 |
|
102 |
reetspetit |
1.5 |
* Tue Mar 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-17.sme |
103 |
|
|
- Move pluto.log to /var/log/pluto |
104 |
|
|
- bump libreswan requires version to 3.16 |
105 |
|
|
- regenerate masq template on ipsec-update |
106 |
|
|
- change wiki location page |
107 |
|
|
- add sysctl.conf template |
108 |
|
|
- modify masq templates for ipsec status enabled/disabled |
109 |
|
|
- only load ipsec.conf rather than *.conf to avoid loading v6neighbor-hole.conf |
110 |
|
|
|
111 |
reetspetit |
1.4 |
* Thu Mar 10 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-16.sme |
112 |
|
|
- Fix masq templates for missing db entries on install |
113 |
|
|
|
114 |
unnilennium |
1.3 |
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 0.5-15.sme |
115 |
unnilennium |
1.2 |
- first import in SME buildsys |
116 |
|
|
|
117 |
unnilennium |
1.1 |
* Wed Feb 17 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-13 |
118 |
|
|
- Fix small typo in readme |
119 |
|
|
|
120 |
|
|
* Fri Dec 04 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-12 |
121 |
|
|
- Add keyingtries |
122 |
|
|
- Finally fix add issues using asynchronous |
123 |
|
|
|
124 |
|
|
* Wed Dec 02 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-11 |
125 |
|
|
- Determine host IPtype - static or dynamic IP |
126 |
|
|
- auto --up changed to exec |
127 |
|
|
- Add checks for Left/Right ID in secrets file |
128 |
|
|
|
129 |
|
|
* Tue Dec 01 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-10 |
130 |
|
|
- Allow dynamic addresses |
131 |
|
|
- Add iptype |
132 |
|
|
- disallow " in PSK passwords |
133 |
|
|
- Revised logging messages |
134 |
|
|
|
135 |
|
|
* Mon Nov 30 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-9 |
136 |
|
|
- Amended templates to allow for rsasig. Early cert settings removed |
137 |
|
|
|
138 |
|
|
* Wed Nov 25 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-8 |
139 |
|
|
- Revised masq templates - disable on ipsec disable |
140 |
|
|
- Template ipsec.secrets so Terry won't break it again |
141 |
|
|
- Set requires e-smith >=9 and libreswan >=3.14 |
142 |
|
|
|
143 |
|
|
* Wed Nov 18 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-7 |
144 |
|
|
- add 90adjustESP |
145 |
|
|
|
146 |
|
|
* Tue Nov 17 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-6 |
147 |
|
|
- more update to masq firewalls - change -p 50 to -p ESP |
148 |
|
|
|
149 |
|
|
* Tue Nov 17 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-5 |
150 |
|
|
- update masq firewall rules |
151 |
|
|
- document clean up |
152 |
|
|
|
153 |
|
|
* Wed May 27 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-4 |
154 |
|
|
- set dpd actions off if ipsec is 'add' |
155 |
|
|
- add salifetime key and rename ikelifetime and keylife |
156 |
|
|
- change defaults for salifetime and ikelifetime |
157 |
|
|
- add in rsasig support |
158 |
|
|
|
159 |
|
|
* Wed Apr 22 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-3 |
160 |
|
|
- change default ike from aes-sha to aes-sha1 |
161 |
|
|
|
162 |
|
|
* Tue Mar 24 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-2 |
163 |
|
|
- More minor fixes - should work OK with xl2tpd |
164 |
|
|
|
165 |
|
|
* Thu Mar 19 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1 |
166 |
|
|
- Remove templates2expand and added to createlinks |
167 |
|
|
- modified ipsec.secret template |
168 |
|
|
- various other fixes |
169 |
|
|
|
170 |
|
|
* Fri Mar 13 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5 |
171 |
|
|
- Big changes again - now have PreviousState to detect changes |
172 |
|
|
- Createlinks to S10 to run after expand-templates |
173 |
|
|
|
174 |
|
|
* Thu Mar 5 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-4 |
175 |
|
|
- Changed lots. Removed sysctl.conf template |
176 |
|
|
- Changed firewall template |
177 |
|
|
|
178 |
|
|
* Tue Mar 3 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-3 |
179 |
|
|
- Load of code tidying and prep from xl2tpd |
180 |
|
|
|
181 |
|
|
* Fri Feb 27 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-2 |
182 |
|
|
- Update action script and allow for system not in gateway mode |
183 |
|
|
- add ike and phase2alg db settings |
184 |
|
|
|
185 |
|
|
* Tue Feb 24 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1 |
186 |
|
|
- New ipsec-action script |
187 |
|
|
- Numerous template changes |
188 |
|
|
|
189 |
|
|
* Fri Jan 16 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1 |
190 |
|
|
- remove debugging lines |
191 |
|
|
- remove expand templates from spec file |
192 |
|
|
- add status check for ipsec.conf |
193 |
|
|
- add comment to masq template |
194 |
|
|
- updated db defaults |
195 |
|
|
- ipsec.conf not expanded on install |
196 |
|
|
- missed auto=start |
197 |
|
|
|
198 |
|
|
* Fri Jan 16 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1 |
199 |
|
|
- remove rc.local modifications |
200 |
|
|
- add /etc/sysctl.conf patches |
201 |
|
|
|
202 |
|
|
* Thu Jan 15 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1 |
203 |
|
|
- initial release |
204 |
|
|
|
205 |
|
|
%prep |
206 |
|
|
%setup |
207 |
reetspetit |
1.4 |
%patch1 -p1 |
208 |
reetspetit |
1.5 |
%patch2 -p1 |
209 |
reetspetit |
1.6 |
%patch3 -p1 |
210 |
reetspetit |
1.7 |
%patch4 -p1 |
211 |
reetspetit |
1.8 |
%patch5 -p1 |
212 |
reetspetit |
1.9 |
%patch6 -p1 |
213 |
reetspetit |
1.10 |
%patch7 -p1 |
214 |
reetspetit |
1.11 |
%patch8 -p1 |
215 |
reetspetit |
1.12 |
%patch9 -p1 |
216 |
reetspetit |
1.13 |
%patch10 -p1 |
217 |
reetspetit |
1.14 |
%patch11 -p1 |
218 |
jcrisp |
1.15 |
%patch12 -p1 |
219 |
jcrisp |
1.16 |
%patch13 -p1 |
220 |
jcrisp |
1.17 |
%patch14 -p1 |
221 |
jcrisp |
1.18 |
%patch15 -p1 |
222 |
jcrisp |
1.19 |
%patch16 -p1 |
223 |
unnilennium |
1.1 |
|
224 |
|
|
%build |
225 |
|
|
perl createlinks |
226 |
|
|
|
227 |
|
|
%install |
228 |
|
|
rm -rf $RPM_BUILD_ROOT |
229 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
230 |
|
|
rm -f %{name}-%{version}-filelist |
231 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
232 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
233 |
|
|
|
234 |
|
|
|
235 |
|
|
%clean |
236 |
|
|
cd .. |
237 |
|
|
rm -rf %{name}-%{version} |
238 |
|
|
|
239 |
|
|
%files -f %{name}-%{version}-filelist |
240 |
|
|
%defattr(-,root,root) |
241 |
|
|
|
242 |
|
|
%pre |
243 |
|
|
%preun |
244 |
|
|
%post |
245 |
reetspetit |
1.6 |
|
246 |
unnilennium |
1.1 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
247 |
|
|
/sbin/e-smith/expand-template /etc/inittab |
248 |
|
|
/sbin/init q |
249 |
|
|
|
250 |
|
|
|
251 |
reetspetit |
1.11 |
echo "see https://wiki.contribs.org/Libreswan" |
252 |
unnilennium |
1.1 |
|
253 |
|
|
%postun |
254 |
|
|
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
255 |
|
|
/sbin/e-smith/expand-template /etc/inittab |
256 |
|
|
/sbin/init q |