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