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