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