]>
Commit | Line | Data |
---|---|---|
cf932b45 | 1 | # TODO: |
cf932b45 | 2 | # - check accel-ppp.tmpfiles |
57624d7f | 3 | # - logrotate archivedir |
cf932b45 | 4 | # - add bconds |
4bd8014d | 5 | # - initscript: remove duplicate force-reload, remove one depending whether it supports reload or not |
cf932b45 SP |
6 | # |
7 | Summary: High performance PPTP/L2TP/PPPoE server | |
8 | Name: accel-ppp | |
cad42b83 SP |
9 | Version: 1.8.0 |
10 | Release: 1 | |
cf932b45 SP |
11 | License: GPL v2+ |
12 | Group: Networking | |
cad42b83 | 13 | URL: http://sourceforge.net/projects/accel-ppp |
cf932b45 | 14 | Source0: http://downloads.sourceforge.net/accel-ppp/%{name}-%{version}.tar.bz2 |
cad42b83 | 15 | # Source0-md5: bc3a02b24fb9f304f7417a9011a494d6 |
cf932b45 | 16 | Source1: %{name}.tmpfiles |
2e2d22a4 | 17 | Source2: %{name}.init |
dbc59aa0 | 18 | Source3: %{name}.logrotate |
cf932b45 SP |
19 | BuildRequires: cmake >= 2.6 |
20 | BuildRequires: libnl1-devel | |
d2546e0a | 21 | BuildRequires: net-snmp-devel >= 5.0 |
cf932b45 SP |
22 | BuildRequires: openssl-devel |
23 | BuildRequires: pcre-devel | |
57624d7f ER |
24 | BuildRequires: rpmbuild(macros) >= 1.600 |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
cf932b45 SP |
26 | |
27 | %description | |
d2546e0a SP |
28 | The ACCEL-PPP is completly new implementation of PPTP/PPPoE/L2TP which |
29 | was written from scratch. Userspace daemon has its own PPP | |
cf932b45 SP |
30 | implementation, so it does not uses pppd and one process |
31 | (multi-threaded) manages all connections. ACCEL-PPP uses only | |
32 | kernel-mode implementations of pptp/l2tp/pppoe. | |
33 | ||
34 | Features: | |
35 | - PPTP server | |
36 | - PPPoE server | |
37 | - L2TPv2 server | |
38 | - Radius CoA/DM(PoD) | |
39 | - Built-in shaper (tbf) | |
40 | - Command line interface (telnet) | |
41 | - SNMP | |
42 | - IPv6 (including builtin Neighbor Discovery and DHCPv6) | |
43 | ||
cf932b45 SP |
44 | %prep |
45 | %setup -q | |
cf932b45 SP |
46 | |
47 | %build | |
48 | install -d build | |
49 | cd build | |
57624d7f ER |
50 | %cmake \ |
51 | -DSHAPER=TRUE \ | |
52 | -DRADIUS=TRUE \ | |
53 | -DNETSNMP=TRUE \ | |
54 | -DBUILD_INSTALL_PREFIX=$RPM_BUILD_ROOT \ | |
55 | -DLOG_PGSQL=FALSE \ | |
56 | .. | |
cf932b45 SP |
57 | %{__make} |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | %{__make} -C build install/fast \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
21689e2b | 64 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d} $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
57624d7f ER |
65 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
66 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/accel-pppd | |
67 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
cad42b83 | 68 | install -d $RPM_BUILD_ROOT/var/log/accel-ppp |
cf932b45 | 69 | |
cf932b45 SP |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
57624d7f | 75 | %doc README |
2e2d22a4 SP |
76 | %dir %{_sysconfdir} |
77 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/accel-ppp.conf.dist | |
21689e2b | 78 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
cad42b83 | 79 | %attr(755,root,root) %{_bindir}/accel-cmd |
cf932b45 | 80 | %attr(755,root,root) %{_sbindir}/accel-pppd |
dbc59aa0 | 81 | %attr(755,root,root) %{_libdir}/accel-ppp |
e31bacda | 82 | %attr(754,root,root) /etc/rc.d/init.d/accel-pppd |
cf932b45 | 83 | %dir /var/run/%{name} |
cf932b45 | 84 | %{systemdtmpfilesdir}/%{name}.conf |
57624d7f | 85 | %{_datadir}/%{name} |
cad42b83 | 86 | %{_mandir}/man1/accel-cmd.* |
cf932b45 | 87 | %{_mandir}/man5/accel-ppp.conf.5* |
d2546e0a | 88 | %dir /var/log/accel-ppp |