1 # FIXME: find a way of getting rid of "-" on versions ... rpm will be happy
2 Summary: High-performance and highly configurable RADIUS server
3 Summary(pl): Szybki i wysoce konfigurowalny serwer RADIUS.
7 URL: http://www.freeradius.org/
9 Group: Networking/Daemons
10 Group(pl): Sieciowe/Demony
11 Prereq: /sbin/chkconfig
12 # FIXME: snmpwalk, snmpget and rusers POSSIBLY needed by checkrad
14 BuildRequires: libltdl-devel
15 BuildRequires: openldap-devel
16 #someone's help needed:split&test into %{name}-{mysql,pgsql,common,devel,static,ldap,pam?} hunter.
17 BuildRequires: mysql-devel
18 BuildRequires: postgresql-devel
19 BuildRequires: pam-devel
20 Obsoletes: cistron-radius
21 Source0: freeradius-0.1.tar.gz
23 %define _localstatedir /var/radius
27 # FIXME: won't be good to include these contrib examples?
28 # Source1: http://www.ping.de/~fdc/radius/radacct-replay
29 # Source2: http://www.ping.de/~fdc/radius/radlast-0.03
30 # Source3: ftp://ftp.freeradius.org/pub/radius/contrib/radwho.cgi
32 BuildRoot: /tmp/%{name}-%{version}-root
35 The FreeRADIUS Server Project is an attempt to create a high-performance
36 and highly configurable GPL'd RADIUS server. It is generally similar to
37 the Livingston 2.0 RADIUS server, but has a lot more features, and is
38 much more configurable.
41 Projekt FreeRadius ma na celu stworzenie szybkiego i wysoce konfigurowalnego
42 serwera RADIUS na licencji GPL. Ten jest podobny do Livingston 2.0 RADIUS server
43 ale ma o wiele wiêcej ficzersów i jest bardziej podatny na konfiguracjê.
48 # FIXME: some folks prefer -dist files ... rename them or not?
50 #chmod 640 clients naspasswd radiusd.conf.in
54 CFLAGS="$RPM_OPT_FLAGS"
55 #libtoolize --copy --force
60 %configure --prefix=/usr --localstatedir=%{_localstatedir} --sysconfdir=/etc \
65 --disable-ltdl-install
68 libtool --finish /usr/lib
71 # prepare $RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
73 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,rc.d/init.d}
76 make install R=$RPM_BUILD_ROOT
77 # done here & put noreplace in %files to avoid messing up existing installations
78 for i in radutmp radwtmp radius.log radwatch.log checkrad.log
80 touch $RPM_BUILD_ROOT%{_localstatedir}/log/$i
81 echo $RPM_BUILD_ROOT%{_localstatedir}/log/$i
82 #who the hell should own logfiles/ and what sgid should have radiusd ?
83 # do we need /etc/shadow do be +r for wheel ? or better use PAM ?
88 # remove unneeded stuff
89 rm -f $RPM_BUILD_ROOT/usr/{man/man8/builddbm.8,sbin/rc.radiusd}
92 install -m 555 rc.radiusd-redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd
93 install -m 644 radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
94 install -m 644 radiusd-pam $RPM_BUILD_ROOT/etc/pam.d/radius
98 if [ "$1" = "0" ]; then
99 /sbin/chkconfig --del radiusd.init
103 if [ "$1" = "0" ]; then
104 /sbin/chkconfig --add radiusd.init
108 rm -rf $RPM_BUILD_ROOT
111 %defattr(-,root,root)
112 %doc doc/ChangeLog doc/README* todo/ COPYRIGHT INSTALL
113 %config /etc/pam.d/radius
114 %config /etc/logrotate.d/radiusd
115 %config /etc/rc.d/init.d/radiusd
121 %dir %{_localstatedir}/log/radacct/
122 %config(missingok noreplace) %{_localstatedir}/log/checkrad.log
123 %config(missingok noreplace) %{_localstatedir}/log/radwatch.log
124 %config(missingok noreplace) %{_localstatedir}/log/radius.log
125 %config(missingok noreplace) %{_localstatedir}/log/radwtmp
126 %config(missingok noreplace) %{_localstatedir}/log/radutmp
129 * Fri Sep 22 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
130 - spec file clear accordling to the libltdl fix and minor updates
132 * Wed Sep 12 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
133 - Updated to snapshot-12-Sep-00
135 * Fri Jun 16 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>