1 Summary: High-performance and highly configurable RADIUS server
2 URL: http://www.freeradius.org/
7 Group: Networking/Daemons
8 Packager: FreeRADIUS.org
9 Source0: %{name}-%{version}.tar.gz
10 # FIXME: won't be good to include these contrib examples?
11 # Source1: http://www.ping.de/~fdc/radius/radacct-replay
12 # Source2: http://www.ping.de/~fdc/radius/radlast-0.03
13 # Source3: ftp://ftp.freeradius.org/pub/radius/contrib/radwho.cgi
14 Prereq: /sbin/chkconfig
16 # FIXME: snmpwalk, snmpget and rusers POSSIBLY needed by checkrad
17 Conflicts: cistron-radius
18 BuildRoot: %{_tmppath}/%{name}-root
21 The FreeRADIUS Server Project is a high-performance and highly
22 configurable GPL'd RADIUS server. It is somewhat similar to the
23 Livingston 2.0 RADIUS server, but has many more features, and is much
30 CFLAGS="$RPM_OPT_FLAGS" \
31 %configure --prefix=%{_prefix} \
32 --localstatedir=%{_localstatedir} \
33 --sysconfdir=%{_sysconfdir} \
38 --disable-ltdl-install
42 rm -rf $RPM_BUILD_ROOT
44 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,rc.d/init.d}
46 make install R=$RPM_BUILD_ROOT
48 # remove unneeded stuff
49 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/builddbm.8
50 rm -f $RPM_BUILD_ROOT%{_prefix}/sbin/rc.radiusd
53 install -m 755 rc.radiusd-redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd
54 install -m 644 radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
55 install -m 644 radiusd-pam $RPM_BUILD_ROOT/etc/pam.d/radius
59 if [ "$1" = "0" ]; then
60 /sbin/chkconfig --del radiusd
64 if [ "$1" = "0" ]; then
65 /sbin/chkconfig --add radiusd
68 # Done here to avoid messing up existing installations
69 for i in radius/radutmp radius/radwtmp # radius/radius.log radius/radwatch.log radius/checkrad.log
72 chown root:root /var/log/$i
77 rm -rf $RPM_BUILD_ROOT
81 %doc doc/ChangeLog doc/README* todo/ COPYRIGHT INSTALL
82 %config /etc/pam.d/radius
83 %config /etc/logrotate.d/radiusd
84 %config /etc/rc.d/init.d/radiusd
90 %attr(0700,root,root) %dir /var/log/radius
91 %attr(0700,root,root) %dir /var/log/radius/radacct
92 %attr(0700,root,root) %dir /var/run/radiusd
95 * Sun May 26 2002 Frank Cusack <frank@google.com>
96 - move /var dirs from %%post to %%files
98 * Thu Feb 14 2002 Marko Myllynen
99 - use dir name macros in all configure options
100 - libtool is required only when building the package
103 * Wed Feb 13 2002 Marko Myllynen
104 - use %{_mandir} instead of /usr/man
105 - rename %postin as %post
106 - clean up name/version
108 * Fri Jan 18 2002 Frank Cusack <frank@google.com>
109 - remove (noreplace) for /etc/raddb/* (due to rpm bugs)
111 * Fri Sep 07 2001 Ivan F. Martinez <ivanfm@ecodigit.com.br>
112 - changes to make compatible with default config file shipped
113 - adjusts log files are on /var/log/radius instead of /var/log
114 - /etc/raddb changed to config(noreplace) to don't override
117 * Fri Sep 22 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
118 - spec file clear accordling to the libltdl fix and minor updates
120 * Wed Sep 12 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
121 - Updated to snapshot-12-Sep-00
123 * Fri Jun 16 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>