]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rpm: Add support back for symas flavoured openldap
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 5 Feb 2023 01:19:19 +0000 (19:19 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 5 Feb 2023 01:40:14 +0000 (19:40 -0600)
redhat/freeradius.spec

index ec0fd6ff91056c9c8fa4b7488e5c2b7ef8575c38..aba770138659f2b9bb32771322404019096abeb1 100644 (file)
@@ -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} \