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

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

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


Revision 1.18 - (show annotations) (download)
Thu Oct 17 15:10:44 2019 UTC (4 years, 7 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-libreswan-0_5-31_el6_sme
Changes since 1.17: +7 -1 lines
* Thu Oct 17 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-31.sme
- Allow rightsubnet for xl2tpd in virtual_private
- Add check for empty virtual_private hosts

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

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