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