From: Arran Cudbard-Bell Date: Sun, 5 Feb 2023 01:19:19 +0000 (-0600) Subject: rpm: Add support back for symas flavoured openldap X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b16e070132da845b2fa384300d15f0e9726b720;p=thirdparty%2Ffreeradius-server.git rpm: Add support back for symas flavoured openldap --- diff --git a/redhat/freeradius.spec b/redhat/freeradius.spec index ec0fd6ff910..aba77013865 100644 --- a/redhat/freeradius.spec +++ b/redhat/freeradius.spec @@ -2,6 +2,7 @@ %bcond_with experimental_modules %bcond_with rlm_sigtran %bcond_with wbclient +%bcond_with symas_openldap %bcond_without ldap %global _version 4.0 @@ -318,6 +319,10 @@ Group: System Environment/Daemons Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cyrus-sasl BuildRequires: cyrus-sasl-devel +%if %{with symas_openldap} +Requires: symas-openldap-clients +BuildRequires: symas-openldap-devel +%else %if 0%{?rhel}%{?fedora} < 9 Requires: openldap-ltb BuildRequires: openldap-ltb @@ -325,6 +330,7 @@ BuildRequires: openldap-ltb Requires: openldap BuildRequires: openldap-devel %endif +%endif %description ldap This plugin provides LDAP support for the FreeRADIUS server project. @@ -565,9 +571,14 @@ export RADIUSD_VERSION_RELEASE="%{release}" --with-threads \ --with-thread-pool \ --with-docdir=%{docdir} \ +%if %{with symas_openldap} + --with-libfreeradius-ldap-include-dir=/opt/symas/include \ + --with-libfreeradius-ldap-lib-dir=/opt/symas/lib \ +%else %if %{with ldap} --with-libfreeradius-ldap-include-dir=/usr/local/openldap/include \ --with-libfreeradius-ldap-lib-dir=/usr/local/openldap/lib64 \ +%endif %endif --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \ --with-rlm-sql-postgresql-lib-dir=%{_libdir} \