From: aBainbridge11 <113794078+aBainbridge11@users.noreply.github.com> Date: Tue, 16 Jul 2024 19:22:37 +0000 (-0400) Subject: Create RPMs with Oracle support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3eb89bcdcd48bd96b92621e128f5f79cffe8f4e;p=thirdparty%2Ffreeradius-server.git Create RPMs with Oracle support --- diff --git a/doc/antora/modules/installation/oracle.adoc b/doc/antora/modules/installation/oracle.adoc new file mode 100644 index 00000000000..5cd9f0cfb66 --- /dev/null +++ b/doc/antora/modules/installation/oracle.adoc @@ -0,0 +1,20 @@ + +If you wish to use Oracle you will need to recompile FreeRADIUS on a machine +that has Oracle development libraries installed. FreeRADIUS is known to work both with a full Oracle installation as well as with the [Oracle Instant Client SDK](http://www.oracle.com/technology/tech/oci/instantclient/index.html). Once built the resulting RPM package can be deployed with just the [Oracle Instant Client](http://www.oracle.com/technology/tech/oci/instantclient/index.html) (No need for the SDK on production machines) + +Most rpm packages available do not included oraclesql.conf due to the fact that they also don't contain the Oracle driver module (due to copyright restrictions). + +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 +```