]> git.pld-linux.org Git - packages/openl2tp.git/blame - openl2tp.spec
- release 3
[packages/openl2tp.git] / openl2tp.spec
CommitLineData
b68a277b
JK
1#
2Summary: An L2TP client/server, designed for VPN use
3Name: openl2tp
4Version: 1.8
2baca184 5Release: 3
b68a277b
JK
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
10b3c19a 12Source3: %{name}.tmpfiles
b68a277b 13Patch0: %{name}-no_Werror.patch
a6bc4aa2 14Patch1: %{name}-setkey.patch
b68a277b
JK
15URL: http://www.openl2tp.org/
16BuildRequires: bison
17BuildRequires: flex
18BuildRequires: linux-libc-headers >= 2.6.23
19BuildRequires: readline-devel >= 4.2
20Requires: portmap
21Requires: ppp >= 2.4.5
22Requires: readline >= 4.2
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26OpenL2TP is a complete implementation of RFC2661 - Layer Two Tunneling
27Protocol Version 2, able to operate as both a server and a client. It
28is ideal for use as an enterprise L2TP VPN server, supporting more
29than 100 simultaneous connected users. It may also be used as a client
30on a home PC or roadwarrior laptop.
31
32OpenL2TP has been designed and implemented specifically for Linux. It
33consists 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
47Summary: OpenL2TP support files for plugin development
48Group: Development/Libraries
49
50%description devel
51This package contains support files for building plugins for OpenL2TP,
52or 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
63rm -rf $RPM_BUILD_ROOT
10b3c19a
JR
64install -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
69install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/openl2tpd
70install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/openl2tpd
10b3c19a
JR
71install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
72
b68a277b
JK
73touch $RPM_BUILD_ROOT%{_sysconfdir}/openl2tpd.conf
74
75%clean
76rm -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
This page took 0.084682 seconds and 4 git commands to generate.