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