]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
For CentOS, use LTB's openldap packages intead of the distribution version to avoid... 2030/head
authorPhilippe Wooding <philippe.wooding@networkradius.com>
Mon, 31 Jul 2017 12:35:17 +0000 (14:35 +0200)
committerPhilippe Wooding <philippe.wooding@networkradius.com>
Mon, 31 Jul 2017 12:35:21 +0000 (14:35 +0200)
redhat/freeradius.spec
scripts/docker/build-centos6/Dockerfile
scripts/docker/build-centos7/Dockerfile
scripts/docker/centos7/Dockerfile

index 924c1083736351b5b7eb5c3cb8dd519fa602898e..8b2d3943fb049c0ac36c31f92bf67e1ce449c05f 100644 (file)
@@ -185,8 +185,8 @@ This plugin provides Kerberos 5 support for the FreeRADIUS server project.
 Summary: LDAP support for FreeRADIUS
 Group: System Environment/Daemons
 Requires: %{name} = %{version}-%{release}
-Requires: openldap
-BuildRequires: openldap-devel
+Requires: openldap-ltb
+BuildRequires: openldap-ltb
 
 %description ldap
 This plugin provides LDAP support for the FreeRADIUS server project.
@@ -403,6 +403,8 @@ export LDFLAGS="-Wl,--build-id"
         --with-threads \
         --with-thread-pool \
         --with-docdir=%{docdir} \
+       --with-rlm-ldap-include-dir=/usr/local/openldap/include \
+       --with-rlm-ldap-lib-dir=/usr/local/openldap/lib64 \
         --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \
         --with-rlm-sql-postgresql-lib-dir=%{_libdir} \
         --with-rlm-sql_mysql-include-dir=/usr/include/mysql \
index c4625b6382b3a3ff82d254c70da4c2111b429e11..8ebe9f5289ca77a15d9813b98c1406e03ea73dbc 100644 (file)
@@ -51,6 +51,18 @@ RUN cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR
     cpack -G RPM
 RUN yum localinstall -y ./*.rpm
 
+#
+#  Use LTB's openldap packages intead of the distribution version to avoid linking against NSS
+#
+RUN echo $'[ltb-project]\n\
+name=LTB project packages\n\
+baseurl=https://ltb-project.org/rpm/$releasever/$basearch\n\
+enabled=1\n\
+gpgcheck=1\n\
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project'\
+> /etc/yum.repos.d/ltb-project.repo
+RUN rpm --import https://ltb-project.org/lib/RPM-GPG-KEY-LTB-project
+
 
 WORKDIR /usr/local/src/repositories
 RUN git clone --depth=1 https://github.com/mattrose/hiredis.git
index ee8d0204f027466f5d90982bf940d7f04e572ac4..a240fe18c8d72fc515fa21ac3c1a3b84c29b442d 100644 (file)
@@ -50,6 +50,18 @@ RUN cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR
     cpack -G RPM
 RUN yum localinstall -y ./*.rpm
 
+#
+#  Use LTB's openldap packages intead of the distribution version to avoid linking against NSS
+#
+RUN echo $'[ltb-project]\n\
+name=LTB project packages\n\
+baseurl=https://ltb-project.org/rpm/$releasever/$basearch\n\
+enabled=1\n\
+gpgcheck=1\n\
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project'\
+> /etc/yum.repos.d/ltb-project.repo
+RUN rpm --import https://ltb-project.org/lib/RPM-GPG-KEY-LTB-project
+
 #
 #  Shallow clone the FreeRADIUS source
 #
index 450c072153a9f47d4f09ff8ed95add1bc4540165..d2c23fa1513bb509534aeb744e1ee5b88c242dfd 100644 (file)
@@ -43,6 +43,19 @@ WORKDIR /usr/local/src/repositories
 RUN git clone --depth=1 --no-single-branch https://github.com/arr2036/libkqueue.git
 WORKDIR libkqueue
 
+#
+#  Use LTB's openldap packages intead of the distribution version to avoid linking against NSS
+#
+RUN echo $'[ltb-project]\n\
+name=LTB project packages\n\
+baseurl=https://ltb-project.org/rpm/$releasever/$basearch\n\
+enabled=1\n\
+gpgcheck=1\n\
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project'\
+> /etc/yum.repos.d/ltb-project.repo
+RUN rpm --import https://ltb-project.org/lib/RPM-GPG-KEY-LTB-project
+
+
 # Fixme: Change to the main repo when they merge this branch
 RUN git checkout patch-3
 RUN cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ./ && \