Merge pull request #19288 from DerTim1/openldap-enable-modules

openldap: enable module support
This commit is contained in:
Jörg Thalheim 2016-10-29 14:06:37 +02:00 committed by GitHub
commit 5596aa9ce4

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl, cyrus_sasl, db, groff }:
{ stdenv, fetchurl, openssl, cyrus_sasl, db, groff, libtool }:
stdenv.mkDerivation rec {
name = "openldap-2.4.44";
@ -13,11 +13,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
buildInputs = [ openssl cyrus_sasl db groff ];
buildInputs = [ openssl cyrus_sasl db groff libtool ];
configureFlags =
[ "--enable-overlays"
"--disable-dependency-tracking" # speeds up one-time build
"--enable-modules"
] ++ stdenv.lib.optional (openssl == null) "--without-tls"
++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
@ -36,6 +37,10 @@ stdenv.mkDerivation rec {
rm -r libraries/*/.libs
'';
postInstall = ''
chmod +x $out/lib/*.so
'';
meta = with stdenv.lib; {
homepage = http://www.openldap.org/;
description = "An open source implementation of the Lightweight Directory Access Protocol";