/[smecontribs]/rpms/smeserver-libreswan/contribs10/smeserver-libreswan.spec
ViewVC logotype

Contents of /rpms/smeserver-libreswan/contribs10/smeserver-libreswan.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Mon Mar 1 18:46:10 2021 UTC (3 years, 2 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-libreswan-0_5-35_el7_sme
Changes since 1.1: +7 -1 lines
* Mon Mar 01 2021 Brian Read <brianr@bjsystems.co.uk> 0.5-35.sme
- Initial Import in SME10 tree  [SME: 11405]
- Update for systemd

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed