1 Summary: An L2TP client/server, designed for VPN use
2 Summary(pl.UTF-8): Klient/serwer L2TP, zaprojektowany pod kątem VPN
7 Group: Networking/Daemons
8 Source0: http://downloads.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 Patch3: %{name}-tirpc.patch
17 URL: http://www.openl2tp.org/
20 BuildRequires: libtirpc-devel
21 BuildRequires: linux-libc-headers >= 2.6.23
22 BuildRequires: pkgconfig
23 BuildRequires: readline-devel >= 4.2
24 BuildRequires: rpcsvc-proto
25 BuildRequires: rpmbuild(macros) >= 1.644
26 Requires: ppp >= 2.4.5
27 Requires: readline >= 4.2
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 OpenL2TP is a complete implementation of RFC2661 - Layer Two Tunneling
33 Protocol Version 2, able to operate as both a server and a client. It
34 is ideal for use as an enterprise L2TP VPN server, supporting more
35 than 100 simultaneous connected users. It may also be used as a client
36 on a home PC or roadwarrior laptop.
38 OpenL2TP has been designed and implemented specifically for Linux. It
40 - a daemon, openl2tpd, handling the L2TP control protocol exchanges
41 for all tunnels and sessions
42 - a plugin for pppd to allow its PPP connections to run over L2TP
44 - a Linux kernel driver for efficient datapath (integrated into the
45 standard kernel from 2.6.23).
46 - a command line application, l2tpconfig, for management.
48 %description -l pl.UTF-8
49 OpenL2TP to kompletna implementacja RFC2661 - Layer Two Tunneling
50 Protocol (protokołu tunelowania warstwy drugiej) w wersji 2, będąca w
51 stanie działać zarówno jako serwer, jak i klient. Nadaje się do użycia
52 jako serwer VPN L2TP, obsługujący ponad 100 jednocześnie podłączonych
53 użytkowników. Może być także używana jako klient na domowym komputerze
54 lub podróżnym laptopie.
56 OpenL2TP został zaprojektowany i zaimplementowany dla Linuksa. Składa
58 - demona openl2tpd, obsługującego protokół sterujący L2TP dla
59 wszystkich tuneli i sesji
60 - wtyczki pppd, pozwalającej na uruchamianie połączeń PPP po sesjach
62 - serwownika jądra Linuksa umożliwiającego wydajne przesyłanie danych
63 (zintegrowanego do jądra od wersji 2.6.23)
64 - aplikacji linii poleceń l2tpconfig do zarządzania.
67 Summary: OpenL2TP support files for plugin development
68 Summary(pl.UTF-8): Pliki OpenL2TP do tworzenia wtyczek
69 Group: Development/Libraries
72 This package contains support files for building plugins for OpenL2TP,
73 or applications that use the OpenL2TP APIs.
75 %description devel -l pl.UTF-8
76 Ten pakiet zawiera pliki wspomagające budowanie wtyczek OpenL2TP oraz
77 aplikacji wykorzystujących API OpenL2TP.
89 CFLAGS.optimize="%{rpmcflags} %{rpmcppflags} $(pkg-config --cflags libtirpc)" \
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,/var/run/%{name}} \
95 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
98 SYS_LIBDIR=%{_libdir} \
99 DESTDIR=$RPM_BUILD_ROOT
101 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/openl2tpd
102 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/openl2tpd
103 install %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
105 touch $RPM_BUILD_ROOT%{_sysconfdir}/openl2tpd.conf
108 rm -rf $RPM_BUILD_ROOT
111 %defattr(644,root,root,755)
112 %doc CHANGES LICENSE README
113 %dir %{_libdir}/openl2tp
114 %attr(755,root,root) %{_bindir}/l2tpconfig
115 %attr(755,root,root) %{_sbindir}/openl2tpd
116 %attr(755,root,root) %{_libdir}/openl2tp/ppp_null.so
117 %attr(755,root,root) %{_libdir}/openl2tp/ppp_unix.so
118 %attr(755,root,root) %{_libdir}/openl2tp/ipsec.so
119 %attr(755,root,root) %{_libdir}/openl2tp/event_sock.so
120 %{_mandir}/man1/l2tpconfig.1*
121 %{_mandir}/man5/openl2tpd.conf.5*
122 %{_mandir}/man7/openl2tp.7*
123 %{_mandir}/man8/openl2tpd.8*
124 %attr(754,root,root) /etc/rc.d/init.d/openl2tpd
125 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/openl2tpd
126 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openl2tpd.conf
127 %dir /var/run/%{name}
128 %{systemdtmpfilesdir}/%{name}.conf
131 %defattr(644,root,root,755)
132 %doc plugins/README doc/README.event_sock
133 %{_libdir}/openl2tp/l2tp_rpc.x
134 %{_libdir}/openl2tp/l2tp_event.h
135 %{_libdir}/openl2tp/event_sock.h
136 %{_mandir}/man4/openl2tp_rpc.4*