1 Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
5 License: GPLv2+ or BSD-like
6 Group: Networking/Daemons/Radius
7 Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz
8 # Source0-md5: a352ae4efeeed0528cee8efa21f460b6
10 Source2: %{name}.logrotate
11 Patch0: %{name}-logformat.patch
12 URL: http://software.uninett.no/radsecproxy/
13 BuildRequires: openssl-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 radsecproxy is a generic RADIUS proxy that in addition to to usual
18 RADIUS UDP transport, also supports TLS (RadSec). The aim is for the
19 proxy to have sufficient features to be flexible, while at the same
20 time to be small, efficient and easy to configure. Currently the
21 executable on Linux is only about 48 Kb, and it uses about 64 Kb
22 (depending on the number of peers) while running.
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
35 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
38 DESTDIR=$RPM_BUILD_ROOT
40 mv $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf-example \
41 $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf
43 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
44 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
47 rm -rf $RPM_BUILD_ROOT
50 /sbin/chkconfig --add %{name}
51 %service %{name} restart "RADIUS secure proxy"
54 if [ "$1" = "0" ]; then
56 /sbin/chkconfig --del %{name}
60 %defattr(644,root,root,755)
61 %doc AUTHORS ChangeLog README
62 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf
63 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/radsecproxy.conf
64 %attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d
65 %attr(755,root,root) %{_sbindir}/radsecproxy
66 %attr(754,root,root) /etc/rc.d/init.d/%{name}