source: projects/specs/trunk/x/xl2tpd/xl2tpd-vl.spec @ 10954

Revision 10954, 14.5 KB checked in by tomop, 7 years ago (diff)

gd-2.2.4-1 g/gd/gd-vl.spec

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