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