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