-
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
- remove crtscts fropm options.xl2tpd for xl2tpd 1.3.15
- 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
- Update ip-up.local to add debug and enhance setting
- update ipsec.conf to for NAT/noNAT
- add $mtu key - defaults to 1400
- Add ipsec connection status key (disabled as default)
- Update Libreswan depends
- Add ikev2 permit to allow ike v1
- Fix obsolete forecencaps
- Update required Libreswan version
- template cleanup pending - not yet committed to CVS but in git
- remove unneeded default right subnet setting to clear error
- added variables for leftsourceip and leftsubnet if required
- add xl2tpd access private as default
- First import to contribs
- Fix typo error in ipsec.secrets
- Modified client authent to work with existing VPN Client Access via Server Manager
- Modify rightsubnet
- New v 0.2 release
- template masq fragment
- Big reformat of code to disable templates when items are disabled
- Remove service link in spec as xl2tpd will need starting via ipsec-update
- add options to /etc/ppp/options.xl2tpd
- Fix more templates
+* Wed Jun 07 2017 John Crisp <[email protected]> 0.1-11
+- Fix various templates
- Update notes
- Note SME bugs: 8890,8891,8897
- Fix mistakes in createlinks file
- Add event link
- Add UDP DB variable and modify masq temnplate
- Remove Incorrect template file from /etc/ip-up.local
- Add ip-up.local template - variosu other mods
- Few more mods to syntax - this appears to work
- Escape quotes in template
- Remove comments from db
- Amend firewall fragment
- More of code tidying
- 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