[FreeRADIUS] Build RPM files in CentOS 6.X

WTF, I wasted all my morning doing it…..

Environment: CentOS 6.6 x64 minimal server

  1. install wget

  1. create rpmbuild/SOURCES and rpmbuild/SPECS folder under your home directory

  1. get into this folder and download the source file from freeradius.org

  1. extract this compressed file and edit the source what you want, i want to edit the “MAX_SQL_SOCKS” limit. then you can delete the original compressed file

  1. use tar to compress this folder and then bzip2 it

  1. copy the required files

  1. start to build RPM files

  1. then the RPM files will be here

note: the default path in CentOS 5.x is /usr/src/redhat

This entry was posted in Radius. Bookmark the permalink.