]>
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 |
8dfe57a7 | 19 | Source4: %{name}.sysconfig |
cf932b45 SP |
20 | BuildRequires: cmake >= 2.6 |
21 | BuildRequires: libnl1-devel | |
d2546e0a | 22 | BuildRequires: net-snmp-devel >= 5.0 |
cf932b45 SP |
23 | BuildRequires: openssl-devel |
24 | BuildRequires: pcre-devel | |
57624d7f ER |
25 | BuildRequires: rpmbuild(macros) >= 1.600 |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
cf932b45 SP |
27 | |
28 | %description | |
d2546e0a SP |
29 | The ACCEL-PPP is completly new implementation of PPTP/PPPoE/L2TP which |
30 | was written from scratch. Userspace daemon has its own PPP | |
cf932b45 SP |
31 | implementation, so it does not uses pppd and one process |
32 | (multi-threaded) manages all connections. ACCEL-PPP uses only | |
33 | kernel-mode implementations of pptp/l2tp/pppoe. | |
34 | ||
35 | Features: | |
36 | - PPTP server | |
37 | - PPPoE server | |
38 | - L2TPv2 server | |
39 | - Radius CoA/DM(PoD) | |
2be4adcd SP |
40 | - Built-in shaper |
41 | - Command line interface | |
cf932b45 SP |
42 | - SNMP |
43 | - IPv6 (including builtin Neighbor Discovery and DHCPv6) | |
2be4adcd | 44 | - IPoE (start session by DHCPv4 or unclassified IPv4 packet) |
cf932b45 | 45 | |
cf932b45 SP |
46 | %prep |
47 | %setup -q | |
cf932b45 SP |
48 | |
49 | %build | |
50 | install -d build | |
51 | cd build | |
57624d7f ER |
52 | %cmake \ |
53 | -DSHAPER=TRUE \ | |
54 | -DRADIUS=TRUE \ | |
55 | -DNETSNMP=TRUE \ | |
57624d7f ER |
56 | -DLOG_PGSQL=FALSE \ |
57 | .. | |
e9d40f13 | 58 | |
cf932b45 SP |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | %{__make} -C build install/fast \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
e9d40f13 | 66 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d} $RPM_BUILD_ROOT%{systemdtmpfilesdir} $RPM_BUILD_ROOT/var/log/accel-ppp |
57624d7f ER |
67 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
68 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/accel-pppd | |
69 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
8dfe57a7 | 70 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/accel-ppp |
cf932b45 | 71 | |
cf932b45 SP |
72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
57624d7f | 77 | %doc README |
2e2d22a4 | 78 | %dir %{_sysconfdir} |
e9d40f13 | 79 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/accel-ppp.conf.dist |
21689e2b | 80 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
8dfe57a7 | 81 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
cad42b83 | 82 | %attr(755,root,root) %{_bindir}/accel-cmd |
cf932b45 | 83 | %attr(755,root,root) %{_sbindir}/accel-pppd |
dbc59aa0 | 84 | %attr(755,root,root) %{_libdir}/accel-ppp |
e31bacda | 85 | %attr(754,root,root) /etc/rc.d/init.d/accel-pppd |
cf932b45 | 86 | %{systemdtmpfilesdir}/%{name}.conf |
57624d7f | 87 | %{_datadir}/%{name} |
cad42b83 | 88 | %{_mandir}/man1/accel-cmd.* |
cf932b45 | 89 | %{_mandir}/man5/accel-ppp.conf.5* |
d2546e0a | 90 | %dir /var/log/accel-ppp |