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 Prereq: /sbin/chkconfig
12 # FIXME: snmpwalk, snmpget and rusers POSSIBLY needed by checkrad
14 Conflicts: cistron-radius
15 BuildRoot: %{_tmppath}/%{name}-root
18 The FreeRADIUS Server Project is a high-performance and highly
19 configurable GPL'd RADIUS server. It is somewhat similar to the
20 Livingston 2.0 RADIUS server, but has many more features, and is much
27 CFLAGS="$RPM_OPT_FLAGS" \
28 %configure --prefix=%{_prefix} \
29 --localstatedir=%{_localstatedir} \
30 --sysconfdir=%{_sysconfdir} \
32 --disable-ltdl-install \
33 --with-docdir=/usr/share/doc/freeradius-%{version} \
34 --with-ltdl-lib=/usr/lib \
35 --with-ltdl-include=/usr/include \
36 --with-large-files --with-udpfromto --with-edir \
37 --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \
38 --with-rlm-krb5-include-dir=/usr/kerberos/include \
39 --with-rlm-krb5-lib-dir=/usr/kerberos/lib
43 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
45 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,rc.d/init.d}
47 make install R=$RPM_BUILD_ROOT
49 RADDB=$RPM_BUILD_ROOT/etc/raddb
50 # set radiusd as default user/group
51 perl -i -pe 's/^#user =.*$/user = radiusd/' $RADDB/radiusd.conf
52 perl -i -pe 's/^#group =.*$/group = radiusd/' $RADDB/radiusd.conf
53 # shadow password file MUST be defined on Linux
54 perl -i -pe 's/# shadow =/shadow =/' $RADDB/radiusd.conf
56 # remove unneeded stuff
57 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/builddbm.8
58 rm -f $RPM_BUILD_ROOT%{_prefix}/sbin/rc.radiusd
61 install -m 755 rc.radiusd-redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd
62 install -m 644 radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
63 install -m 644 radiusd-pam $RPM_BUILD_ROOT/etc/pam.d/radius
67 /usr/sbin/useradd -c "radiusd user" -r -s /bin/false -u 95 -d / radiusd 2>/dev/null || :
70 if [ "$1" = "0" ]; then
71 /sbin/service radiusd stop > /dev/null 2>&1
72 /sbin/chkconfig --del radiusd
77 /sbin/chkconfig --add radiusd
79 # Done here to avoid messing up existing installations
80 for i in radius/radutmp radius/radwtmp radius/radius.log # radius/radwatch.log radius/checkrad.log
83 chown radiusd:radiusd /var/log/$i
88 if [ "$1" -ge "1" ]; then
89 /sbin/service radiusd condrestart >/dev/null 2>&1
92 /usr/sbin/userdel radiusd > /dev/null 2>&1 || :
97 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
100 %defattr(-,root,root)
101 %doc suse/README.SuSE
102 %doc doc/* LICENSE COPYRIGHT CREDITS README
104 %doc scripts/create-users.pl scripts/CA.* scripts/certs.sh
105 %doc scripts/users2mysql.pl scripts/xpextensions
106 %doc scripts/cryptpasswd scripts/exec-program-wait scripts/radiusd2ldif.pl
107 %config /etc/pam.d/radius
108 %config /etc/logrotate.d/radiusd
109 %config /etc/rc.d/init.d/radiusd
110 %config (noreplace) /etc/raddb/*
116 %attr(0700,radiusd,radiusd) %dir /var/log/radius
117 %attr(0700,radiusd,radiusd) %dir /var/log/radius/radacct
118 %attr(0700,radiusd,radiusd) %dir /var/run/radiusd
121 * Thu Dec 15 2004 Alan DeKok
124 * Mon May 31 2004 Paul Hampson
125 - update for 1.0.0 release
127 * Fri May 23 2003 Marko Myllynen
130 * Wed Sep 4 2002 Marko Myllynen
131 - fix libtool issues for good
133 * Thu Aug 22 2002 Marko Myllynen
136 * Tue Jun 18 2002 Marko Myllynen
137 - run as radiusd user instead of root
138 - added some options for configure
140 * Thu Jun 6 2002 Marko Myllynen
141 - set noreplace for non-dictionary files in /etc/raddb
143 * Sun May 26 2002 Frank Cusack <frank@google.com>
144 - move /var dirs from %%post to %%files
146 * Thu Feb 14 2002 Marko Myllynen
147 - use dir name macros in all configure options
148 - libtool is required only when building the package
151 * Wed Feb 13 2002 Marko Myllynen
152 - use %%{_mandir} instead of /usr/man
153 - rename %%postin as %%post
154 - clean up name/version
156 * Fri Jan 18 2002 Frank Cusack <frank@google.com>
157 - remove (noreplace) for /etc/raddb/* (due to rpm bugs)
159 * Fri Sep 07 2001 Ivan F. Martinez <ivanfm@ecodigit.com.br>
160 - changes to make compatible with default config file shipped
161 - adjusts log files are on /var/log/radius instead of /var/log
162 - /etc/raddb changed to config(noreplace) to don't override
165 * Fri Sep 22 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
166 - spec file clear accordling to the libltdl fix and minor updates
168 * Wed Sep 12 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
169 - Updated to snapshot-12-Sep-00
171 * Fri Jun 16 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>