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

Do you like HowtoForge? Please consider to support us by becoming a subscriber.
Submitted by muffycompo (Contact Author) (Forums) on Thu, 2008-12-11 11:22. :: CentOS

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.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Mon, 2009-05-04 06:21.

We followed the instructions on a CentOS 5.3 box but after running

"rpm -Uvh freeradius-2.1.1-6.fc10.src.rpm"

we had to

"cd /usr/src/redhat/SPECS"

to get to the freeradius.spec file.

When we ran

"rpm build -bb freeradius.spec"

it created 12 rpms instead of the 4 that are listed in the howto. It does not explain if we are supposed to do anything with the other rpms.

The information is not useable.

Submitted by Anonymous (not registered) on Fri, 2009-06-26 22:52.

Dear, Mr Incomplete.

You, sir, are in for a big suprize if you are new to the linux world, and you expect things to go EXACTLY as planned. So there was a typo in the posting, BFD, that does ABSOLUTELY NOTHING to the value of the post. If you would have simply ran "updatedb" then "locate freeradius.spec" you would have found it.  And it created 12 RPMS instead of 4! Oh no! You ungreatful jackass, all that means is you can choose to install the other packages _IF_ you need those options. The aricle and information is extremely useful, even if they didnt hold your freaking hand the whole time. Use your own head a little, and you would have been fine.