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