%include /usr/lib/rpm/macros.perl
# FIXME: won't be good to include these contrib examples?
# Source1: http://www.ping.de/~fdc/radius/radacct-replay
-# Source2: http://www.ping.de/~fdc/radius/radlast-0.03
# Source3: ftp://ftp.freeradius.org/pub/radius/contrib/radwho.cgi
Summary: High-performance and highly configurable RADIUS server
Summary(pl): Szybki i wysoce konfigurowalny serwer RADIUS
Name: freeradius
Version: 1.0.1
-Release: 0.2
+Release: 2
License: GPL
Group: Networking/Daemons
Source0: ftp://ftp.freeradius.org/pub/radius/%{name}-%{version}.tar.gz
PreReq: rc-scripts
Requires(post,preun): /sbin/chkconfig
Requires: libtool
+Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: cistron-radius
%dir %{_sysconfdir}/raddb
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/raddb/*
-%dir %{_var}/log/%{name}
-%dir %{_var}/log/%{name}/radacct
+%attr(771,root,radius) %dir %{_var}/log/%{name}
+%attr(771,root,radius) %dir %{_var}/log/%{name}/radacct
+%attr(775,root,radius) %dir /var/run/%{name}
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/*