source: projects/specs/branches/6/x/xl2tpd/xl2tpd-vl.spec @ 3645

Revision 3645, 13.8 KB checked in by tomop, 13 years ago (diff)

xl2tpd-1.2.8-2

Line 
1Summary: Layer 2 Tunnelling Protocol Daemon (RFC 2661)
2Name: xl2tpd
3Version: 1.2.8
4Release: 2%{?_dist_release}
5# No version specified.
6License: GPL+
7Url: http://www.xelerance.com/software/xl2tpd/
8Group: System Environment/Daemons
9Source0: http://www.xelerance.com/software/xl2tpd/xl2tpd-%{version}.tar.gz
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11Requires: ppp
12BuildRequires: libpcap-devel
13Requires(post): /sbin/chkconfig
14Requires(preun): /sbin/chkconfig
15Requires(preun): /sbin/service
16
17Vendor: Project Vine
18Distribution: Vine Linux
19Packager: tomop
20
21%description
22xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661).
23L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user
24sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP
25servers. Another important application is Virtual Private Networks where
26the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec,
27RFC 3193). The L2TP/IPsec protocol is mainly used by Windows and
28Mac OS X clients. On Linux, xl2tpd can be used in combination with IPsec
29implementations such as Openswan.
30Example configuration files for such a setup are included in this RPM.
31
32xl2tpd works by opening a pseudo-tty for communicating with pppd.
33It runs completely in userspace.
34
35xl2tpd supports IPsec SA Reference tracking to enable overlapping internak
36NAT'ed IP's by different clients (eg all clients connecting from their
37linksys internal IP 192.168.1.101) as well as multiple clients behind
38the same NAT router.
39
40xl2tpd supports the pppol2tp kernel mode operations on 2.6.23 or higher,
41or via a patch in contrib for 2.4.x kernels.
42
43Xl2tpd is based on the 0.69 L2TP by Jeff McAdams <jeffm@iglou.com>
44It was de-facto maintained by Jacco de Leeuw <jacco2@dds.nl> in 2002 and 2003.
45
46%prep
47%setup -q
48
49%build
50make DFLAGS="$RPM_OPT_FLAGS -g -DDEBUG_HELLO -DDEBUG_CLOSE -DDEBUG_FLOW -DDEBUG_PAYLOAD -DDEBUG_CONTROL -DDEBUG_CONTROL_XMIT -DDEBUG_FLOW_MORE -DDEBUG_MAGIC -DDEBUG_ENTROPY -DDEBUG_HIDDEN -DDEBUG_PPPD -DDEBUG_AAA -DDEBUG_FILE -DDEBUG_FLOW -DDEBUG_HELLO -DDEBUG_CLOSE -DDEBUG_ZLB -DDEBUG_AUTH"
51
52%install
53rm -rf %{buildroot}
54make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
55install -p -D -m644 examples/xl2tpd.conf %{buildroot}%{_sysconfdir}/xl2tpd/xl2tpd.conf
56install -p -D -m644 examples/ppp-options.xl2tpd %{buildroot}%{_sysconfdir}/ppp/options.xl2tpd
57install -p -D -m600 doc/l2tp-secrets.sample %{buildroot}%{_sysconfdir}/xl2tpd/l2tp-secrets
58install -p -D -m600 examples/chapsecrets.sample %{buildroot}%{_sysconfdir}/ppp/chap-secrets.sample
59install -p -D -m755 packaging/fedora/xl2tpd.init %{buildroot}%{_initrddir}/xl2tpd
60install -p -D -m755 -d %{buildroot}%{_localstatedir}/run/xl2tpd
61
62
63%clean
64rm -rf %{buildroot}
65
66%post
67/sbin/chkconfig --add xl2tpd
68
69%preun
70if [ $1 -eq 0 ]; then
71  /sbin/service xl2tpd stop > /dev/null 2>&1
72  /sbin/chkconfig --del xl2tpd
73fi
74
75%postun
76if [ $1 -ge 1 ]; then
77  /sbin/service xl2tpd condrestart 2>&1 >/dev/null
78fi
79
80%files
81%defattr(-,root,root)
82%doc BUGS CHANGES CREDITS LICENSE README.* TODO doc/rfc2661.txt
83%doc doc/README.patents examples/chapsecrets.sample
84%{_sbindir}/xl2tpd
85%{_bindir}/pfc
86%{_mandir}/*/*
87%dir %{_sysconfdir}/xl2tpd
88%config(noreplace) %{_sysconfdir}/xl2tpd/*
89%config(noreplace) %{_sysconfdir}/ppp/*
90%attr(0755,root,root)  %{_initrddir}/xl2tpd
91%dir %{_localstatedir}/run/xl2tpd
92%ghost %attr(0600,root,root) %{_localstatedir}/run/xl2tpd/l2tp-control
93
94%changelog
95* Fri Apr 22 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.8-2
96- built for Vine Linux.
97
98* Wed Feb 23 2011 Paul Wouters <paul@xelerance.com> - 1.2.8-1
99- Updated to 1.2.8
100- Add ghosting for l2tp pipe (bz#656725)
101
102* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-3
103- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
104
105* Tue Nov 30 2010 Paul Wouters <paul@xelerance.com> - 1.2.7-2
106- fix md5 of init script in sources
107
108* Tue Nov 30 2010 Paul Wouters <paul@xelerance.com> - 1.2.7-1
109- Updated to 1.2.7
110- Added more DEBUG build options to the make command
111- Minor cleanups
112
113* Sat Jan 09 2010 Paul Wouters <paul@xelerance.com> - 1.2.5-2
114- Bump for EVR
115
116* Sat Jan 09 2010 Paul Wouters <paul@xelerance.com> - 1.2.5-1
117- Upgraded to 1.2.5. (fixes interop with two Windows machines behind same NAT)
118- Fix mix space/tab in spec file
119- Added missing keyword Default-Stop
120
121* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-4
122- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
123
124* Sun Mar 08 2009 Paul Wouters <paul@xelerance.com> - 1.2.4-3
125- Bump version for tagging mistake
126
127* Sun Mar 08 2009 Paul Wouters <paul@xelerance.com> - 1.2.4-2
128-Fix initscript for https://bugzilla.redhat.com/show_bug.cgi?id=247100
129
130* Sun Mar 08 2009 Paul Wouters <paul@xelerance.com> - 1.2.4-1
131- Upgraded to 1.2.4
132- Merged spec file with upstream
133
134* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
135- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
136
137* Thu Oct  9 2008 Paul Wouters <paul@xelerance.com> - 1.2.0-1
138- Updated to new upstream release
139
140* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.12-3
141- fix license tag
142
143* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.12-2
144- Autorebuild for GCC 4.3
145
146* Fri Oct 26 2007 Paul Wouters <paul@xelerance.com> 1.1.12-1
147- Upgraded to new release upstream
148- Removed l2tpd to xl2tpd migration in post
149
150* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.1.11-3
151- Rebuild for selinux ppc32 issue.
152
153* Sat Jul 28 2007 Paul Wouters <paul@xelerance.com> 1.1.11-2
154- Upgraded to 1.1.11
155- Include new split README.*
156
157* Mon Mar 19 2007 Paul Wouters <paul@xelerance.com> 1.1.09-1
158- Upgraded to 1.1.09
159
160* Fri Feb 23 2007 Paul Wouters <paul@xelerance.com> 1.1.08-2
161- Bump for EVR
162
163* Fri Feb 23 2007 Paul Wouters <paul@xelerance.com> 1.1.08-1
164- Upgraded to 1.1.08
165- This works around the ppp-2.4.2-6.4 issue of not dying on SIGTERM
166
167* Tue Feb 20 2007 Paul Wouters <paul@xelerance.com> 1.1.07-2
168- Fixed version usage in source macro
169
170* Tue Feb 20 2007 Paul Wouters <paul@xelerance.com> 1.1.07-1
171- Upgraded to 1.1.07
172- Added /var/run/xl2tpd to the spec file so this pacakge
173  owns /var/run/xl2tpd
174 
175* Thu Dec  7 2006 Paul Wouters <paul@xelerance.com> 1.1.06-5
176- Changed space/tab replacing method
177
178* Wed Dec  6 2006 Paul Wouters <paul@xelerance.com> 1.1.06-4
179- Added -p to keep original timestamps
180- Added temporary hack to change space/tab in init file.
181- Added /sbin/service dependancy
182
183* Tue Dec  5 2006 Paul Wouters <paul@xelerance.com> 1.1.06-3
184- Added Requires(post) / Requires(preun)
185- changed init file to create /var/run/xl2tpd fixed a tab/space
186- changed control file to be within /var/run/xl2tpd/
187
188* Tue Dec  5 2006 Paul Wouters <paul@xelerance.com> 1.1.06-2
189- Changed Mr. Karlsen's name to not be a utf8 problem
190- Fixed Obosoletes/Provides to be more specific wrt l2tpd.
191- Added dist tag which accidentally got deleted.
192
193* Mon Dec  4 2006 Paul Wouters <paul@xelerance.com> 1.1.06-1
194- Rebased spec file on Fedora Extras copy, but using xl2tpd as package name
195
196* Sun Nov 27 2005 Paul Wouters <paul@xelerance.com> 0.69.20051030
197- Pulled up sourceforget.net CVS fixes.
198- various debugging added, but debugging should not be on by default.
199- async/sync conversion routines must be ready for possibility that the read
200  will block due to routing loops.
201- refactor control socket handling.
202- move all logic about pty usage to pty.c. Try ptmx first, if it fails try
203  legacy ptys
204- rename log() to l2tp_log(), as "log" is a math function.
205- if we aren't deamonized, then log to stderr.
206- added install: and DESTDIR support.
207
208* Thu Oct 20 2005 Paul Wouters <paul@xelerance.com> 0.69-13
209- Removed suse/mandrake specifics. Comply for Fedora Extras guidelines
210
211* Tue Jun 21 2005 Jacco de Leeuw <jacco2@dds.nl> 0.69-12jdl
212- Added log() patch by Paul Wouters so that l2tpd compiles on FC4.
213
214* Sat Jun 4 2005 Jacco de Leeuw <jacco2@dds.nl>
215- l2tpd.org has been hijacked. Project moved back to SourceForge:
216  http://l2tpd.sourceforge.net
217
218* Tue May 3 2005 Jacco de Leeuw <jacco2@dds.nl>
219- Small Makefile fixes. Explicitly use gcc instead of cc.
220  Network services library was not linked on Solaris due to typo.
221
222* Thu Mar 17 2005 Jacco de Leeuw <jacco2@dds.nl> 0.69-11jdl
223- Choosing between SysV or BSD style ptys is now configurable through
224  a compile-time boolean "unix98pty".
225
226* Fri Feb 4 2005 Jacco de Leeuw <jacco2@dds.nl>
227- Added code from Roaring Penguin (rp-l2tp) to support SysV-style ptys.
228  Requires the N_HDLC kernel module.
229
230* Fri Nov 26 2004 Jacco de Leeuw <jacco2@dds.nl>
231- Updated the README.
232
233* Wed Nov 10 2004 Jacco de Leeuw <jacco2@dds.nl> 0.69-10jdl
234- Patch by Marald Klein and Roger Luethi. Fixes writing PID file.
235  (http://l2tpd.graffl.net/msg01790.html)
236  Long overdue. Rereleasing 10jdl.
237
238* Tue Nov 9 2004 Jacco de Leeuw <jacco2@dds.nl> 0.69-10jdl
239- [SECURITY FIX] Added fix from Debian because of a bss-based
240  buffer overflow.
241  (http://www.mail-archive.com/l2tpd-devel@l2tpd.org/msg01071.html)
242- Mandrake's FreeS/WAN, Openswan and Strongswan RPMS use configuration
243  directories /etc/{freeswan,openswan,strongswan}. Install our
244  configuration files to /etc/ipsec.d and create symbolic links in
245  those directories.
246
247* Tue Aug 18 2004 Jacco de Leeuw <jacco2@dds.nl>
248- Removed 'leftnexthop=' lines. Not relevant for recent versions
249  of FreeS/WAN and derivates.
250
251* Tue Jan 20 2004 Jacco de Leeuw <jacco2@dds.nl>  0.69-9jdl
252- Added "noccp" because of too much MPPE/CCP messages sometimes.
253
254* Wed Dec 31 2003 Jacco de Leeuw <jacco2@dds.nl>
255- Added patch in order to prevent StopCCN messages.
256
257* Sat Aug 23 2003 Jacco de Leeuw <jacco2@dds.nl>
258- MTU/MRU 1410 seems to be the lowest possible for MSL2TP.
259  For Windows 2000/XP it doesn't seem to matter.
260- Typo in l2tpd.conf (192.168.128/25).
261
262* Fri Aug 8 2003 Jacco de Leeuw <jacco2@dds.nl>  0.69-8jdl
263- Added MTU/MRU 1400 to options.l2tpd. I don't know the optimal
264  value but some apps had problems with the default value.
265
266* Fri Aug 1 2003 Jacco de Leeuw <jacco2@dds.nl>
267- Added workaround for the missing hostname bug in the MSL2TP client
268  ('Specify your hostname', error 629: "You have been disconnected
269  from the computer you are dialing").
270
271* Thu Jul 20 2003 Jacco de Leeuw <jacco2@dds.nl>  0.69-7jdl
272- Added the "listen-addr" global parameter for l2tpd.conf. By
273  default, the daemon listens on *all* interfaces. Use
274  "listen-addr" if you want it to bind to one specific
275  IP address (interface), for security reasons. (See also:
276  http://www.jacco2.dds.nl/networking/freeswan-l2tp.html#Firewallwarning)
277- Explained in l2tpd.conf that two different IP addresses should be
278  used for 'listen-addr' and 'local ip'.
279- Modified init script. Upgrades should work better now. You
280  still need to start/chkconfig l2tpd manually.
281- Renamed the example Openswan .conf files to better reflect
282  the situation. There are two variants using different portselectors.
283  Previously I thought Windows 2000/XP used portselector 17/0
284  and the rest used 17/1701. But with the release of an updated
285  IPsec client by Microsoft, it turns out that 17/0 must have
286  been a mistake: the updated client now also uses 17/1701.
287
288* Mon Apr 10 2003 Jacco de Leeuw <jacco2@dds.nl>  0.69-6jdl
289- Changed sample chap-secrets to be valid only for specific
290  IP addresses.
291
292* Thu Mar 13 2003 Bernhard Thoni <tech-role@tronicplanet.de>
293- Adjustments for SuSE8.x (thanks, Bernhard!)
294- Added sample chap-secrets.
295
296* Thu Mar 6 2003 Jacco de Leeuw <jacco2@dds.nl> 0.69-5jdl
297- Replaced Dominique's patch by Damion de Soto's, which does not
298  depend on the N_HDLC kernel module.
299
300* Wed Feb 26 2003 Jacco de Leeuw <jacco2@dds.nl> 0.69-4jdl
301- Seperate example config files for Win9x (MSL2TP) and Win2K/XP
302  due to left/rightprotoport differences.
303  Fixing preun for Red Hat.
304
305* Mon Feb 3 2003 Jacco de Leeuw <jacco2@dds.nl> 0.69-3jdl
306- Mandrake uses /etc/freeswan/ instead of /etc/ipsec.d/
307  Error fixed: source6 was used for both PSK and CERT.
308
309* Wed Jan 29 2003 Jacco de Leeuw <jacco2@dds.nl> 0.69-3jdl
310- Added Dominique Cressatti's pty patch in another attempt to
311  prevent the Windows 2000 Professional "loopback detected" error.
312  Seems to work!
313
314* Wed Dec 25 2002 Jacco de Leeuw <jacco2@dds.nl> 0.69-2jdl
315- Added 'connect-delay' to PPP parameters in an attempt to
316  prevent the Windows 2000 Professional "loopback detected" error.
317  Didn't seem to work.
318
319* Fri Dec 13 2002 Jacco de Leeuw <jacco2@dds.nl> 0.69-1jdl
320- Did not build on Red Hat 8.0. Solved by adding comments(?!).
321  Bug detected in spec file: chkconfig --list l2tpd does not work
322  on Red Hat 8.0. Not important enough to look into yet.
323
324* Sun Nov 17 2002 Jacco de Leeuw <jacco2@dds.nl> 0.69-1jdl
325- Tested on Red Hat, required some changes. No gprintf. Used different
326  pty patch, otherwise wouldn't run. Added buildroot sanity check.
327
328* Sun Nov 10 2002 Jacco de Leeuw <jacco2@dds.nl>
329- Specfile adapted from Mandrake Cooker. The original RPM can be
330  retrieved through:
331  http://www.rpmfind.net/linux/rpm2html/search.php?query=l2tpd
332- Config path changed from /etc/l2tp/ to /etc/l2tpd/
333  (Seems more logical and rp-l2tp already uses /etc/l2tp/).
334- Do not run at boot or install. The original RPM uses a config file
335  which is completely commented out, but it still starts l2tpd on all
336  interfaces. Could be a security risk. This RPM does not start l2tpd,
337  the sysadmin has to edit the config file and start l2tpd explicitly.
338- Renamed patches to start with l2tpd-
339- Added dependencies for pppd, glibc-devel.
340- Use %%{name} as much as possible.
341- l2tp-secrets contains passwords, thus should not be world readable.
342- Removed dependency on rpm-helper.
343
344* Mon Oct 21 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.69-3mdk
345- from Per 0yvind Karlsen <peroyvind@delonic.no> :
346 - PreReq and Requires
347 - Fix preun_service
348
349* Thu Oct 17 2002 Per 0yvind Karlsen <peroyvind@delonic.no> 0.69-2mdk
350- Move l2tpd from /usr/bin to /usr/sbin
351- Added SysV initscript
352- Patch0
353- Patch1
354
355* Thu Oct 17 2002 Per 0yvind Karlsen <peroyvind@delonic.no> 0.69-1mdk
356- Initial release
Note: See TracBrowser for help on using the repository browser.