(RADIATOR) Radiator 2.18.2 released

Gustav Foseid gustavf-radiator at initio.no
Fri Jun 8 02:40:41 CDT 2001


Mike McCauley:
> Added rpm build spec in Radiator.spec.
> 
> Provide RPM packages

Some suggested changes to the RPM-files:

 - I don't think RPM should place files under /usr/local, which is normally
   used for non-RPM files, especially not in combination with files under
   /usr/bin

 - The goodies directory should be placed in the documentation directory
   (IMHO)

I have attached the spec-file I use for building Radiator RPMs (for RedHat
6.2).

-- 
Gustav Foseid, Initio IT-løsninger AS
gustavf at initio.no
-------------- next part --------------
#
Summary: Radiator is a highly configurable and flexible Radius server.
Name: radiator
Version: 2.18.1
Release: 2
Copyright: Proprietary/Commercial
Source: http://www.open.com.au/radiator/downloads/Radiator-2.18.1.tgz
Source2: radiator.init
URL: http://www.open.com.au
Vendor: Open System Consultants Pty Ltd
Group: Applications/Internet
Packager: Gustav Foseid <gustavf at initio.no>
AutoReqProv: no
Requires: perl = 5.00503, /usr/bin/perl, perl-ldap > 0.21

%description 
A highly configurable and flexible Radius server that supports
authentication by Flat files, DBM files, Unix password files, SQL
databases, remote Radius servers, external programs, LDAP, PAM, iPASS,
GRIC, NIS+, Tacacs+, Emerald, Platypus, Rodopi, Interbiller98,
Freeside and your legacy user database plus many features not found in
other Radius servers such as double-login prevention, username
rewriting, full vendor-specific attributes, time-of-day blocking and a
GUI for running user tests. Includes CGI scripts for configuration,
reporting, and database management utilities and much, much
more. Works with most NASs. Full source code. Runs on all Unix, Linux,
Windows 95, 98, NT4, 2000, Mac OS-9 and Mac OS-X.

%prep
%setup -n Radiator-$RPM_PACKAGE_VERSION
chmod 444 dictionary.ascend
mkdir rpm-doc
cp -av goodies rpm-doc
mkdir rpm-doc/rfc
cp -v doc/rfc* rpm-doc/rfc
mkdir rpm-doc/html
cp -v doc/*.html rpm-doc/html
cp -v doc/*.gif rpm-doc/html
cp -v doc/ref.* rpm-doc/html
mv rpm-doc/html/ref.ps rpm-doc
mv rpm-doc/html/ref.pdf rpm-doc
gzip rpm-doc/ref.ps

%build
perl Makefile.PL
make

%install
make install

install -m755 $RPM_SOURCE_DIR/radiator.init $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd
cd $RPM_BUILD_ROOT/etc/rc.d
ln -sf ../init.d/radiusd rc0.d/K20radiusd
ln -sf ../init.d/radiusd rc1.d/K20radiusd
ln -sf ../init.d/radiusd rc2.d/S80radiusd
ln -sf ../init.d/radiusd rc3.d/S80radiusd
ln -sf ../init.d/radiusd rc4.d/S80radiusd
ln -sf ../init.d/radiusd rc5.d/S80radiusd
ln -sf ../init.d/radiusd rc6.d/K20radiusd

mkdir -p $RPM_BUILD_ROOT/etc/radiator/
install -m755 $RPM_BUILD_DIR/Radiator-$RPM_PACKAGE_VERSION/dictionary* $RPM_BUILD_ROOT/etc/radiator/

mkdir -p $RPM_BUILD_ROOT/var/log/radius
mkdir -p $RPM_BUILD_ROOT/var/spool/radius

%files
/usr/lib/perl5/site_perl/5.005/Radius
/usr/bin/buildsql
/usr/bin/radpwtst
/usr/bin/builddbm
/usr/bin/radiusd
/usr/lib/perl5/site_perl/5.005/%{_arch}-linux/auto/Radius/.packlist
%dir /var/log/radius
%dir /var/spool/radius
%config(missingok) /etc/rc.d/rc0.d/K20radiusd
%config(missingok) /etc/rc.d/rc1.d/K20radiusd
%config(missingok) /etc/rc.d/rc2.d/S80radiusd
%config(missingok) /etc/rc.d/rc3.d/S80radiusd
%config(missingok) /etc/rc.d/rc4.d/S80radiusd
%config(missingok) /etc/rc.d/rc5.d/S80radiusd
%config(missingok) /etc/rc.d/rc6.d/K20radiusd
%config /etc/rc.d/init.d/radiusd
%config /etc/radiator/dictionary*
%doc users portlist group passwd passwd.md5 MANIFEST README test.pl
%doc rpm-doc/html rpm-doc/goodies rpm-doc/rfc rpm-doc/ref.*

%post
/usr/bin/perl -e '$\="\n\n";' \
-e 'print "=head2 ", scalar(localtime), ": C<", shift, ">", " L<", shift, ">";' \
-e 'print "=over 4";' \
-e 'while (defined($key = shift) and defined($val = shift)){print "=item *";print "C<$key: $val>";}' \
-e 'print "=back";' \
                "Module" "Radius" \
                "installed into" "/usr/lib/perl5/site_perl/5.005" \
                LINKTYPE "dynamic" \
                VERSION "2.18.1" \
                EXE_FILES "radiusd radpwtst builddbm buildsql" \
                >> /usr/lib/perl5/5.00503/%{_arch}-linux/perllocal.pod

%preun
if [ $1 = 0 ]; then
    /sbin/chkconfig --del radiusd
fi

%changelog
* Fri Jun  2 2001 Gustav Foseid <gustavf at initio.no>
  - Upgraded to 2.18.1

* Mon Oct  9 2000 Gustav Foseid <gustavf at initio.no>
  - Moved dictionaries and config file into a /etc/radiator/

* Fri Oct  6 2000 Gustav Foseid <gustavf at initio.no>
  - Compressing ref.ps and removing ref.ps and ref.pdf from html/

* Thu Oct  5 2000 Gustav Foseid <gustavf at initio.no>
- added init-scripts.


More information about the radiator mailing list