2 # - detects HAVE_EPOLL from uname -r
3 Summary: High-speed clustered L2TP LNS
8 Group: Networking/Daemons
9 URL: http://sourceforge.net/projects/l2tpns/
10 Source0: http://dl.sourceforge.net/l2tpns/%{name}-%{version}.tar.gz
11 # Source0-md5: 385c58055723ebc6c38062acd2db9c2c
13 Source2: %{name}.logrotate
14 BuildRequires: libcli-devel >= 1.8.5
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 l2tpns is a layer 2 tunneling protocol network server (LNS). It
19 supports up to 65535 concurrent sessions per server/cluster plus ISP
20 features such as rate limiting, walled garden, usage accounting, and
29 OPTIM="%{rpmcflags}" \
30 libdir=%{_libdir}/l2tpns
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d}
37 INSTALL="install -c -D" \
38 DESTDIR=$RPM_BUILD_ROOT \
39 libdir=%{_libdir}/l2tpns
41 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/l2tpns
42 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/l2tpns
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc Changes INSTALL INTERNALS THANKS Docs/*.html
50 %attr(754,root,root) /etc/rc.d/init.d/l2tpns
51 %attr(640,root,root) /etc/logrotate.d/l2tpns
52 %config(noreplace) %{_sysconfdir}/l2tpns
53 %dir %{_libdir}/l2tpns
54 %attr(755,root,root) %{_libdir}/l2tpns/*.so
55 %attr(755,root,root) %{_sbindir}/l2tpns
56 %attr(755,root,root) %{_sbindir}/nsctl
57 %{_mandir}/man5/startup-config.5*
58 %{_mandir}/man8/l2tpns.8*
59 %{_mandir}/man8/nsctl.8*