-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmeserver-libreswan-xl2tpd.spec
170 lines (133 loc) · 5.26 KB
/
smeserver-libreswan-xl2tpd.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
%define name smeserver-libreswan-xl2tpd
%define version 0.5
%define release 9
Summary: Plugin to enable LT2P/IPSEC connections
Name: %{name}
Version: %{version}
Release: %{release}
License: GNU GPL version 2
URL: https://www.libreswan.org/
Group: SMEserver/addon
Source: %{name}-%{version}.tar.gz
Patch1: smeserver-libreswan-xl2tpd-private-access.patch
Patch2: smeserver-libreswan-xl2tpd-update-variables.patch
Patch3: smeserver-libreswan-xl2tpd-cleanup-obsoletes.patch
Patch4: smeserver-libreswan-xl2tpd-update-status-default
Patch5: smeserver-libreswan-xl2tpd-update-ip-up-local.patch
Patch6: smeserver-libreswan-xl2tpd-update-createlinks.patch
Patch7: smeserver-libreswan-xl2tpd-remove-crtcts.patch
BuildRoot: /var/tmp/%{name}-%{version}
BuildArchitectures: noarch
BuildRequires: e-smith-devtools
Requires: e-smith-release >= 9.2
Requires: libreswan >= 3.29
Requires: smeserver-libreswan >= 0.5
Requires: xl2tpd >= 1.3.15
AutoReqProv: no
%description
xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661). L2TP allows you to tunnel PPP over UDP
%changelog
* Tue Feb 18 2020 John Crisp <[email protected]> 0.5-9.sme
- remove crtscts fropm options.xl2tpd for xl2tpd 1.3.15
* Fri Feb 14 2020 John Crisp <[email protected]> 0.5-8.sme
- Update for xl2tpd 1.3.15
- Update createlinks to regenerate masq on connection
- Modify Nat/non Nat sections
- remove rightsubnet as normal configuration item
- set IKE v1 only and other updates to ipsec.conf
- update file layouts to match samples
- load pppol2tp on startup if xl2tpd is enabled
- Bump requires to newer xl2tpd
* Thu Jan 30 2020 John Crisp <[email protected]> 0.5-7
- Update ip-up.local to add debug and enhance setting
- update ipsec.conf to for NAT/noNAT
- add $mtu key - defaults to 1400
* Tue Sep 03 2019 John Crisp <[email protected]> 0.5-6
- Add ipsec connection status key (disabled as default)
- Update Libreswan depends
- Add ikev2 permit to allow ike v1
* Thu Jun 21 2018 John Crisp <[email protected]> 0.5-5
- Fix obsolete forecencaps
- Update required Libreswan version
* Thu Nov 30 2017 John Crisp <[email protected]> 0.5-4
- template cleanup pending - not yet committed to CVS but in git
* Wed Nov 29 2017 John Crisp <[email protected]> 0.5-3
- remove unneeded default right subnet setting to clear error
- added variables for leftsourceip and leftsubnet if required
* Wed Nov 29 2017 John Crisp <[email protected]> 0.5-2
- add xl2tpd access private as default
* Fri Nov 24 2017 John Crisp <[email protected]> 0.5-1
- First import to contribs
* Wed Sep 20 2017 John Crisp <[email protected]> 0.2-4
- Fix typo error in ipsec.secrets
* Wed Sep 20 2017 John Crisp <[email protected]> 0.2-3
- Modified client authent to work with existing VPN Client Access via Server Manager
* Mon Jul 31 2017 John Crisp <[email protected]> 0.2-2
- Modify rightsubnet
* Wed Jun 14 2017 John Crisp <[email protected]> 0.2-1
- New v 0.2 release
* Wed Jun 14 2017 John Crisp <[email protected]> 0.1-15
- template masq fragment
* Mon Jun 12 2017 John Crisp <[email protected]> 0.1-14
- Big reformat of code to disable templates when items are disabled
- Remove service link in spec as xl2tpd will need starting via ipsec-update
* Fri Jun 09 2017 John Crisp <[email protected]> 0.1-13
- add options to /etc/ppp/options.xl2tpd
* Thu Jun 08 2017 John Crisp <[email protected]> 0.1-12
- Fix more templates
+* Wed Jun 07 2017 John Crisp <[email protected]> 0.1-11
+- Fix various templates
* Thu Jun 1 2017 John Crisp <[email protected]> 0.1-10
- Update notes
- Note SME bugs: 8890,8891,8897
- Fix mistakes in createlinks file
- Add event link
* Wed Nov 18 2015 John Crisp <[email protected]> 0.1-9
- Add UDP DB variable and modify masq temnplate
* Mon Jun 29 2015 John Crisp <[email protected]> 0.1-8
- Remove Incorrect template file from /etc/ip-up.local
* Wed Apr 08 2015 John Crisp <[email protected]> 0.1-6
- Add ip-up.local template - variosu other mods
* Tue Mar 24 2015 John Crisp <[email protected]> 0.1-5
- Few more mods to syntax - this appears to work
* Thu Mar 19 2015 John Crisp <[email protected]> 0.1-4
- Escape quotes in template
- Remove comments from db
* Thu Mar 5 2015 John Crisp <[email protected]> 0.1-3
- Amend firewall fragment
* Tue Mar 3 2015 John Crisp <[email protected]> 0.1-2
- More of code tidying
* Fri Feb 15 2015 John Crisp <[email protected]> 0.1-1
- initial release
%prep
%setup
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
perl createlinks
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
echo "%doc COPYING" >> %{name}-%{version}-filelist
%clean
cd ..
rm -rf %{name}-%{version}
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%pre
%preun
%post
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/sbin/e-smith/expand-template /etc/inittab
/sbin/init q
%postun
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/sbin/e-smith/expand-template /etc/inittab
/sbin/init q