2 # - check accel-ppp.tmpfiles
3 # - logrotate archivedir
5 # - initscript: remove duplicate force-reload, remove one depending whether it supports reload or not
7 Summary: High performance PPTP/L2TP/PPPoE server
13 URL: http://sourceforge.net/projects/accel-ppp/
14 Source0: http://downloads.sourceforge.net/accel-ppp/%{name}-%{version}.tar.bz2
15 # Source0-md5: 8985ab9f743b952396f6dc53d6fd56a8
16 Source1: %{name}.tmpfiles
18 Source3: %{name}.logrotate
19 Patch0: %{name}-cmake.patch
20 Patch1: %{name}-cmake-lib64.patch
21 BuildRequires: cmake >= 2.6
22 BuildRequires: libnl1-devel
23 BuildRequires: net-snmp-devel >= 5.0
24 BuildRequires: openssl-devel
25 BuildRequires: pcre-devel
26 BuildRequires: rpmbuild(macros) >= 1.600
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The ACCEL-PPP is completly new implementation of PPTP/PPPoE/L2TP which
31 was written from scratch. Userspace daemon has its own PPP
32 implementation, so it does not uses pppd and one process
33 (multi-threaded) manages all connections. ACCEL-PPP uses only
34 kernel-mode implementations of pptp/l2tp/pppoe.
41 - Built-in shaper (tbf)
42 - Command line interface (telnet)
44 - IPv6 (including builtin Neighbor Discovery and DHCPv6)
60 -DBUILD_INSTALL_PREFIX=$RPM_BUILD_ROOT \
66 rm -rf $RPM_BUILD_ROOT
67 %{__make} -C build install/fast \
68 DESTDIR=$RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d} $RPM_BUILD_ROOT%{systemdtmpfilesdir}
71 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
72 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/accel-pppd
73 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
74 echo "0" > $RPM_BUILD_ROOT/var/run/accel-ppp/seq
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
83 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/accel-ppp.conf.dist
84 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
85 %attr(755,root,root) %{_sbindir}/accel-pppd
86 %attr(755,root,root) %{_libdir}/accel-ppp
87 %attr(754,root,root) /etc/rc.d/init.d/accel-pppd
89 # XXX do you really want to overwrite this?
91 %{systemdtmpfilesdir}/%{name}.conf
93 %{_mandir}/man5/accel-ppp.conf.5*
94 %dir /var/log/accel-ppp