]> git.pld-linux.org Git - packages/accel-ppp.git/blame - accel-ppp.spec
- initscript: one kill is really enough, different versions came from template; add...
[packages/accel-ppp.git] / accel-ppp.spec
CommitLineData
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#
7Summary: High performance PPTP/L2TP/PPPoE server
8Name: accel-ppp
9Version: 1.6.1
10Release: 0.1
11License: GPL v2+
12Group: Networking
13URL: http://sourceforge.net/projects/accel-ppp/
14Source0: http://downloads.sourceforge.net/accel-ppp/%{name}-%{version}.tar.bz2
15# Source0-md5: 8985ab9f743b952396f6dc53d6fd56a8
16Source1: %{name}.tmpfiles
2e2d22a4 17Source2: %{name}.init
dbc59aa0 18Source3: %{name}.logrotate
cf932b45 19Patch0: %{name}-cmake.patch
dbc59aa0 20Patch1: %{name}-cmake-lib64.patch
cf932b45
SP
21BuildRequires: cmake >= 2.6
22BuildRequires: libnl1-devel
d2546e0a 23BuildRequires: net-snmp-devel >= 5.0
cf932b45
SP
24BuildRequires: openssl-devel
25BuildRequires: pcre-devel
57624d7f
ER
26BuildRequires: rpmbuild(macros) >= 1.600
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
cf932b45
SP
28
29%description
d2546e0a
SP
30The ACCEL-PPP is completly new implementation of PPTP/PPPoE/L2TP which
31was written from scratch. Userspace daemon has its own PPP
cf932b45
SP
32implementation, so it does not uses pppd and one process
33(multi-threaded) manages all connections. ACCEL-PPP uses only
34kernel-mode implementations of pptp/l2tp/pppoe.
35
36Features:
37- PPTP server
38- PPPoE server
39- L2TPv2 server
40- Radius CoA/DM(PoD)
41- Built-in shaper (tbf)
42- Command line interface (telnet)
43- SNMP
44- IPv6 (including builtin Neighbor Discovery and DHCPv6)
45
cf932b45
SP
46%prep
47%setup -q
48%patch0 -p1
dbc59aa0
SP
49%ifarch %{x8664}
50%patch1 -p1
51%endif
cf932b45
SP
52
53%build
54install -d build
55cd build
57624d7f
ER
56%cmake \
57 -DSHAPER=TRUE \
58 -DRADIUS=TRUE \
59 -DNETSNMP=TRUE \
60 -DBUILD_INSTALL_PREFIX=$RPM_BUILD_ROOT \
61 -DLOG_PGSQL=FALSE \
62 ..
cf932b45
SP
63%{__make}
64
65%install
66rm -rf $RPM_BUILD_ROOT
67%{__make} -C build install/fast \
68 DESTDIR=$RPM_BUILD_ROOT
69
21689e2b 70install -d $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d} $RPM_BUILD_ROOT%{systemdtmpfilesdir}
57624d7f
ER
71cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
72install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/accel-pppd
73cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
cf932b45
SP
74echo "0" > $RPM_BUILD_ROOT/var/run/accel-ppp/seq
75
cf932b45
SP
76%clean
77rm -rf $RPM_BUILD_ROOT
78
79%files
80%defattr(644,root,root,755)
57624d7f 81%doc README
2e2d22a4
SP
82%dir %{_sysconfdir}
83%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/accel-ppp.conf.dist
21689e2b 84%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
cf932b45 85%attr(755,root,root) %{_sbindir}/accel-pppd
dbc59aa0 86%attr(755,root,root) %{_libdir}/accel-ppp
e31bacda 87%attr(754,root,root) /etc/rc.d/init.d/accel-pppd
cf932b45 88%dir /var/run/%{name}
57624d7f 89# XXX do you really want to overwrite this?
cf932b45
SP
90/var/run/%{name}/seq
91%{systemdtmpfilesdir}/%{name}.conf
57624d7f 92%{_datadir}/%{name}
cf932b45 93%{_mandir}/man5/accel-ppp.conf.5*
d2546e0a 94%dir /var/log/accel-ppp
This page took 0.081677 seconds and 4 git commands to generate.