openldap: Use a global localstatedir

This commit is contained in:
Shea Levy 2017-09-21 08:18:45 -06:00
parent e0ef28c12d
commit c3b41a77e6

View File

@ -28,12 +28,13 @@ stdenv.mkDerivation rec {
"--disable-dependency-tracking" # speeds up one-time build
"--enable-modules"
"--sysconfdir=/etc"
"--localstatedir=/var"
"--enable-crypt"
] ++ stdenv.lib.optional (openssl == null) "--without-tls"
++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
installFlags = [ "sysconfdir=$(out)/etc" ];
installFlags = [ "sysconfdir=$(out)/etc" "localstatedir=$(out)/var" ];
# 1. Fixup broken libtool
# 2. Libraries left in the build location confuse `patchelf --shrink-rpath`