From: Freeradius-Users <freeradius-users-bounces+linus.hicks=highstreetit.com@lists.freeradius.org On Behalf Of Alan DeKok $ tar -zxf freeradius-server-3.2.3.tar.gz $ cd freeradius-server-3.2.3 $ make rpm
What else is there to do? This is documented on the Wiki, among other places.
This is also the process we use to build the RPMs we make available on http://packages.networkradius.com
I had not looked at networkradius.com as I am not looking for commercial support. I have been reading the documentation and found the Wiki here: https://wiki.freeradius.org/Home Saw the link for Pre-built packages that sent me here: https://wiki.freeradius.org/building/Pre-built-Packages Did not see one that looked suitable for RHEL (which seemed strange) in the list of Official packages. Saw the link for Building from source code that sent me here: https://wiki.freeradius.org/building/Home Saw the section on Building Packages. Saw the link for RHEL and Centos platform specific that sent me here: https://wiki.freeradius.org/building/RHEL%20and%20Centos#building-packages Read the section on Building Packages, but it didn't actually tell how to build the package. It just talks about building with Oracle support, Upgrading GCC, and libkqueue. I don't care to include Oracle database support in the freeradius I install; the GCC I'm using is above the minimum stated; and I'm not building a v4 freeradius so none of those sections applies to me. I see nothing on that web page showing what command(s) to run to build an RPM package for freeradius, so for lack of any other directions, plus what I read in the section on Oracle support, I assumed it was a standard rpmbuild. In the section where it talks about building a package with Oracle support, I read the following (although the spec file doesn't actually have that define statement) which suggests using rpmbuild but doesn't explicitly say: " If you have the Oracle header files in a sane location it should be a simple matter of taking the latest FreeRADIUS release tarball and dropping it in /usr/src/packages/SOURCES along with the other files from the suse/ or redhat/ directory inside the tarball with the exception of freeradius.spec which goes in /usr/src/packages/SPECS Then edit /usr/src/packages/SPECS/freeradius.spec and change: %define _oracle_support 0 to: %define _oracle_support 1 " And "make rpm" doesn't work (assuming there's no difference between the gz and bz2 files besides the compression method); [lhicks@radius build]$ tar -xjf freeradius-server-3.2.3.tar.bz2 [lhicks@radius build]$ cd freeradius-server-3.2.3/ [lhicks@radius freeradius-server-3.2.3]$ ls -l total 732 -rw-r--r--. 1 lhicks lhicks 49448 May 26 09:56 config.guess -rw-r--r--. 1 lhicks lhicks 34286 May 26 09:56 config.sub -rwxr-xr-x. 1 lhicks lhicks 426915 May 26 09:56 configure -rw-r--r--. 1 lhicks lhicks 67997 May 26 09:56 configure.ac -rw-r--r--. 1 lhicks lhicks 4985 May 26 09:56 CONTRIBUTING -rw-r--r--. 1 lhicks lhicks 2855 May 26 09:56 COPYRIGHT -rw-r--r--. 1 lhicks lhicks 66 May 26 09:56 CREDITS drwxr-xr-x. 5 lhicks lhicks 4096 May 26 09:56 debian drwxr-xr-x. 12 lhicks lhicks 4096 May 26 09:56 doc -rw-r--r--. 1 lhicks lhicks 7257 May 26 09:56 INSTALL.rst -rwxr-xr-x. 1 lhicks lhicks 5628 May 26 09:56 install-sh -rw-r--r--. 1 lhicks lhicks 18011 May 26 09:56 LICENSE drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 m4 -rw-r--r--. 1 lhicks lhicks 66 May 26 09:56 main.mk -rw-r--r--. 1 lhicks lhicks 12937 May 26 09:56 Makefile -rw-r--r--. 1 lhicks lhicks 4594 May 26 09:56 Make.inc.in drwxr-xr-x. 5 lhicks lhicks 4096 May 26 09:56 man drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 mibs -rwxr-xr-x. 1 lhicks lhicks 6872 May 26 09:56 missing drwxr-xr-x. 8 lhicks lhicks 4096 May 26 09:56 raddb -rw-r--r--. 1 lhicks lhicks 7261 May 26 09:56 README.rst drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 redhat drwxr-xr-x. 19 lhicks lhicks 4096 May 26 09:56 scripts drwxr-xr-x. 2 lhicks lhicks 12288 May 26 09:56 share -rw-r--r--. 1 lhicks lhicks 365 May 26 09:56 site.yml drwxr-xr-x. 7 lhicks lhicks 4096 May 26 09:56 src drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 suse -rw-r--r--. 1 lhicks lhicks 6 May 26 09:56 VERSION [lhicks@radius freeradius-server-3.2.3]$ make rpm make: *** No rule to make target '.git/HEAD', needed by 'freeradius-server-3.2.3.tar.bz2'. Stop. Maybe the web pages need to be updated or something is wrong with the linked pages because I don't see the package build documentation you shared. Please advise. Linus Please access the attached hyperlink for Highstreet’s electronic communications disclaimer: http://www.highstreetit.com/Email_Disclaimer.htm