4 # - change libdir from /usr/lib to %{_libdir}
5 # - check accel-ppp.tmpfiles
8 Summary: High performance PPTP/L2TP/PPPoE server
14 URL: http://sourceforge.net/projects/accel-ppp/
15 Source0: http://downloads.sourceforge.net/accel-ppp/%{name}-%{version}.tar.bz2
16 # Source0-md5: 8985ab9f743b952396f6dc53d6fd56a8
17 Source1: %{name}.tmpfiles
18 Patch0: %{name}-cmake.patch
19 BuildRequires: cmake >= 2.6
20 BuildRequires: libnl1-devel
21 BuildRequires: openssl-devel
22 BuildRequires: pcre-devel
23 BuildRequires: net-snmp-devel >= 5.0
26 The ACCEL-PPP is completly new implementation of PPTP/PPPoE/L2TP
27 which was written from scratch. Userspace daemon has its own PPP
28 implementation, so it does not uses pppd and one process
29 (multi-threaded) manages all connections. ACCEL-PPP uses only
30 kernel-mode implementations of pptp/l2tp/pppoe.
37 - Built-in shaper (tbf)
38 - Command line interface (telnet)
40 - IPv6 (including builtin Neighbor Discovery and DHCPv6)
59 rm -rf $RPM_BUILD_ROOT
60 %{__make} -C build install/fast \
61 DESTDIR=$RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} $RPM_BUILD_ROOT%{systemdtmpfilesdir}
64 install -d $RPM_BUILD_ROOT/var/{log/accel-ppp,run/accel-ppp}
65 install %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
66 echo "0" > $RPM_BUILD_ROOT/var/run/accel-ppp/seq
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %{_sysconfdir}/accel-ppp.conf.dist
76 %attr(755,root,root) %{_sbindir}/accel-pppd
80 %{systemdtmpfilesdir}/%{name}.conf
81 %{_datadir}/accel-ppp/
82 %{_mandir}/man5/accel-ppp.conf.5*