]> git.pld-linux.org Git - SPECS.git/blob - l2tpns.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / l2tpns.spec
1 # TODO
2 # - detects HAVE_EPOLL from uname -r
3 Summary:        High-speed clustered L2TP LNS
4 Name:           l2tpns
5 Version:        2.1.21
6 Release:        1
7 License:        GPL
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
12 Source1:        %{name}.init
13 Source2:        %{name}.logrotate
14 BuildRequires:  libcli-devel >= 1.8.5
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
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
21 more.
22
23 %prep
24 %setup -q
25
26 %build
27 %{__make} \
28         CC="%{__cc}" \
29         OPTIM="%{rpmcflags}" \
30         libdir=%{_libdir}/l2tpns
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d}
35
36 %{__make} install \
37         INSTALL="install -c -D" \
38         DESTDIR=$RPM_BUILD_ROOT \
39         libdir=%{_libdir}/l2tpns
40
41 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/l2tpns
42 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/l2tpns
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
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*
This page took 0.310169 seconds and 3 git commands to generate.