]>
Commit | Line | Data |
---|---|---|
b68a277b JK |
1 | # |
2 | Summary: An L2TP client/server, designed for VPN use | |
3 | Name: openl2tp | |
4 | Version: 1.8 | |
2baca184 | 5 | Release: 3 |
b68a277b JK |
6 | License: GPL |
7 | Group: Networking/Daemons | |
dafbe44c | 8 | Source0: http://dl.sourceforge.net//openl2tp/%{name}-%{version}.tar.gz |
b68a277b JK |
9 | # Source0-md5: e3d08dedfb9e6a9a1e24f6766f6dadd0 |
10 | Source1: %{name}d.init | |
11 | Source2: %{name}d.sysconfig | |
10b3c19a | 12 | Source3: %{name}.tmpfiles |
b68a277b | 13 | Patch0: %{name}-no_Werror.patch |
a6bc4aa2 | 14 | Patch1: %{name}-setkey.patch |
b68a277b JK |
15 | URL: http://www.openl2tp.org/ |
16 | BuildRequires: bison | |
17 | BuildRequires: flex | |
18 | BuildRequires: linux-libc-headers >= 2.6.23 | |
19 | BuildRequires: readline-devel >= 4.2 | |
20 | Requires: portmap | |
21 | Requires: ppp >= 2.4.5 | |
22 | Requires: readline >= 4.2 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | OpenL2TP is a complete implementation of RFC2661 - Layer Two Tunneling | |
27 | Protocol Version 2, able to operate as both a server and a client. It | |
28 | is ideal for use as an enterprise L2TP VPN server, supporting more | |
29 | than 100 simultaneous connected users. It may also be used as a client | |
30 | on a home PC or roadwarrior laptop. | |
31 | ||
32 | OpenL2TP has been designed and implemented specifically for Linux. It | |
33 | consists of | |
34 | ||
35 | - a daemon, openl2tpd, handling the L2TP control protocol exchanges | |
36 | for all tunnels and sessions | |
37 | ||
38 | - a plugin for pppd to allow its PPP connections to run over L2TP | |
39 | sessions | |
40 | ||
41 | - a Linux kernel driver for efficient datapath (integrated into the | |
42 | standard kernel from 2.6.23). | |
43 | ||
44 | - a command line application, l2tpconfig, for management. | |
45 | ||
46 | %package devel | |
47 | Summary: OpenL2TP support files for plugin development | |
48 | Group: Development/Libraries | |
49 | ||
50 | %description devel | |
51 | This package contains support files for building plugins for OpenL2TP, | |
52 | or applications that use the OpenL2TP APIs. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | %patch0 -p1 | |
a6bc4aa2 | 57 | %patch1 -p1 |
b68a277b JK |
58 | |
59 | %build | |
60 | %{__make} CFLAGS.optimize="%{rpmcflags}" | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
10b3c19a JR |
64 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,/var/run/%{name}} \ |
65 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
b68a277b JK |
66 | |
67 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/openl2tpd | |
70 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/openl2tpd | |
10b3c19a JR |
71 | install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
72 | ||
b68a277b JK |
73 | touch $RPM_BUILD_ROOT%{_sysconfdir}/openl2tpd.conf |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc README LICENSE | |
81 | %dir %{_libdir}/openl2tp | |
82 | %attr(755,root,root) %{_bindir}/l2tpconfig | |
83 | %attr(755,root,root) %{_sbindir}/openl2tpd | |
84 | %attr(755,root,root) %{_libdir}/openl2tp/ppp_null.so | |
85 | %attr(755,root,root) %{_libdir}/openl2tp/ppp_unix.so | |
86 | %attr(755,root,root) %{_libdir}/openl2tp/ipsec.so | |
87 | %attr(755,root,root) %{_libdir}/openl2tp/event_sock.so | |
88 | %{_mandir}/man1/l2tpconfig.1* | |
89 | %{_mandir}/man4/openl2tp_rpc.4* | |
90 | %{_mandir}/man5/openl2tpd.conf.5* | |
91 | %{_mandir}/man7/openl2tp.7* | |
92 | %{_mandir}/man8/openl2tpd.8* | |
93 | %attr(754,root,root) /etc/rc.d/init.d/openl2tpd | |
94 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/openl2tpd | |
95 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openl2tpd.conf | |
a6bc4aa2 | 96 | %dir /var/run/%{name} |
10b3c19a | 97 | /usr/lib/tmpfiles.d/%{name}.conf |
b68a277b JK |
98 | |
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %doc plugins/README doc/README.event_sock | |
102 | %{_libdir}/openl2tp/l2tp_rpc.x | |
103 | %{_libdir}/openl2tp/l2tp_event.h | |
104 | %{_libdir}/openl2tp/event_sock.h |