How To Create A FreeRADIUS 2.1.1-6 RPM Package On CentOS 5.2

This is just a short tutorial showing how to create an RPM version of FreeRADIUS 2.1.1-6 on CentOS 5.2. This version of FreeRADIUS is not yet included in the CentOS 5 repositories.

 

Getting FreeRADIUS 2.1.1-6 SRPM from Koji

Download the SRPM version from here:

http://koji.fedoraproject.org/packages/freeradius/2.1.1/6.fc10/src/freeradius-2.1.1-6.fc10.src.rpm

Now install the srpm software:

rpm -Uvh freeradius-2.1.1-6.fc10.src.rpm
cd /usr/src/redhat/RPMS/SPECS
rpmbuild -bb freeradius.spec

Make Sure You Have the following dependencies installed:

beecrypt-devel, sqlite-devel, unixODBC, unixODBC-devel, python-devel, pam-devel, elfutils-libelf-devel, elfutils-libelf-devel-static, rpm-devel, elfutils-devel, elfutils-devel-static, net-snmp-devel, mysql, cyrus-sasl-devel, mysql-devel, openldap-devel, gdbm-devel, libtool-ltdl-devel, postgresql, postgresql-devel

Go to the i386 directory:

cd /usr/src/redhat/RPMS/i386

 

Installing the binary packages

rpm -Uvh freeradius-libs-2.1.1-6.i386.rpm
rpm -Uvh freeradius-2.1.1-6.i386.rpm
rpm -Uvh freeradius-utils-2.1.1-6.i386.rpm
rpm -Uvh freeradius-mysql-2.1.1-6.i386.rpm

Enjoy your FreeRADIUS 2.1.1-6 installation.

Share this page:

5 Comment(s)