1 |
jcrisp |
1.1 |
%define name smeserver-libreswan-xl2tpd |
2 |
|
|
%define version 0.5 |
3 |
|
|
%define release 1 |
4 |
|
|
Summary: Plugin to enable LT2P/IPSEC connections |
5 |
|
|
Name: %{name} |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release} |
8 |
|
|
License: GNU GPL version 2 |
9 |
|
|
URL: http://libreswan.org/ |
10 |
|
|
Group: SMEserver/addon |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
13 |
|
|
BuildArchitectures: noarch |
14 |
|
|
BuildRequires: e-smith-devtools |
15 |
|
|
Requires: e-smith-release >= 9.2 |
16 |
|
|
Requires: libreswan >= 3.16 |
17 |
|
|
Requires: smeserver-libreswan >= 0.5 |
18 |
|
|
Requires: xl2tpd >= 1.3.8 |
19 |
|
|
AutoReqProv: no |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661). L2TP allows you to tunnel PPP over UDP |
23 |
|
|
|
24 |
|
|
%changelog |
25 |
|
|
* Fri Nov 24 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-1 |
26 |
|
|
- First import to contribs |
27 |
|
|
|
28 |
|
|
* Wed Sep 20 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4 |
29 |
|
|
- Fix typo error in ipsec.secrets |
30 |
|
|
|
31 |
|
|
* Wed Sep 20 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-3 |
32 |
|
|
- Modified client authent to work with existing VPN Client Access via Server Manager |
33 |
|
|
|
34 |
|
|
* Mon Jul 31 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-2 |
35 |
|
|
- Modify rightsubnet |
36 |
|
|
|
37 |
|
|
* Wed Jun 14 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1 |
38 |
|
|
- New v 0.2 release |
39 |
|
|
|
40 |
|
|
* Wed Jun 14 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15 |
41 |
|
|
- template masq fragment |
42 |
|
|
|
43 |
|
|
* Mon Jun 12 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-14 |
44 |
|
|
- Big reformat of code to disable templates when items are disabled |
45 |
|
|
- Remove service link in spec as xl2tpd will need starting via ipsec-update |
46 |
|
|
|
47 |
|
|
* Fri Jun 09 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-13 |
48 |
|
|
- add options to /etc/ppp/options.xl2tpd |
49 |
|
|
|
50 |
|
|
* Thu Jun 08 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-12 |
51 |
|
|
- Fix more templates |
52 |
|
|
|
53 |
|
|
+* Wed Jun 07 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-11 |
54 |
|
|
+- Fix various templates |
55 |
|
|
|
56 |
|
|
* Thu Jun 1 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-10 |
57 |
|
|
- Update notes |
58 |
|
|
- Note SME bugs: 8890,8891,8897 |
59 |
|
|
- Fix mistakes in createlinks file |
60 |
|
|
- Add event link |
61 |
|
|
|
62 |
|
|
* Wed Nov 18 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-9 |
63 |
|
|
- Add UDP DB variable and modify masq temnplate |
64 |
|
|
|
65 |
|
|
* Mon Jun 29 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-8 |
66 |
|
|
- Remove Incorrect template file from /etc/ip-up.local |
67 |
|
|
|
68 |
|
|
* Wed Apr 08 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6 |
69 |
|
|
- Add ip-up.local template - variosu other mods |
70 |
|
|
|
71 |
|
|
* Tue Mar 24 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5 |
72 |
|
|
- Few more mods to syntax - this appears to work |
73 |
|
|
|
74 |
|
|
* Thu Mar 19 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4 |
75 |
|
|
- Escape quotes in template |
76 |
|
|
- Remove comments from db |
77 |
|
|
|
78 |
|
|
* Thu Mar 5 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-3 |
79 |
|
|
- Amend firewall fragment |
80 |
|
|
|
81 |
|
|
* Tue Mar 3 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2 |
82 |
|
|
- More of code tidying |
83 |
|
|
|
84 |
|
|
* Fri Feb 15 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1 |
85 |
|
|
- initial release |
86 |
|
|
|
87 |
|
|
%prep |
88 |
|
|
%setup |
89 |
|
|
|
90 |
|
|
%build |
91 |
|
|
perl createlinks |
92 |
|
|
|
93 |
|
|
%install |
94 |
|
|
rm -rf $RPM_BUILD_ROOT |
95 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
96 |
|
|
rm -f %{name}-%{version}-filelist |
97 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
98 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
99 |
|
|
|
100 |
|
|
|
101 |
|
|
%clean |
102 |
|
|
cd .. |
103 |
|
|
rm -rf %{name}-%{version} |
104 |
|
|
|
105 |
|
|
%files -f %{name}-%{version}-filelist |
106 |
|
|
%defattr(-,root,root) |
107 |
|
|
|
108 |
|
|
%pre |
109 |
|
|
%preun |
110 |
|
|
%post |
111 |
|
|
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
112 |
|
|
/sbin/e-smith/expand-template /etc/inittab |
113 |
|
|
/sbin/init q |
114 |
|
|
|
115 |
|
|
%postun |
116 |
|
|
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
117 |
|
|
/sbin/e-smith/expand-template /etc/inittab |
118 |
|
|
/sbin/init q |