mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
Merge pull request #29523 from aneeshusa/audit-remove-openldap-dependency
audit: Remove openldap dependency
This commit is contained in:
commit
b89c3afb5f
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchurl, openldap
|
||||
, enablePython ? false, python ? null
|
||||
{
|
||||
stdenv, fetchurl,
|
||||
enablePython ? false, python ? null,
|
||||
}:
|
||||
|
||||
assert enablePython -> python != null;
|
||||
@ -12,25 +13,19 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1vvqw5xgirap0jdmajw7l3pq563aycvy3hlqvj3k2cac8i4jbqlq";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "dev" "out" "man" "plugins" ];
|
||||
outputs = [ "bin" "dev" "out" "man" ];
|
||||
|
||||
buildInputs = [ openldap ]
|
||||
++ stdenv.lib.optional enablePython python;
|
||||
buildInputs = stdenv.lib.optional enablePython python;
|
||||
|
||||
configureFlags = ''
|
||||
${if enablePython then "--with-python" else "--without-python"}
|
||||
'';
|
||||
configureFlags = [
|
||||
# z/OS plugin is not useful on Linux,
|
||||
# and pulls in an extra openldap dependency otherwise
|
||||
"--disable-zos-remote"
|
||||
(if enablePython then "--with-python" else "--without-python")
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall =
|
||||
''
|
||||
# Move the z/OS plugin to a separate output to prevent an
|
||||
# openldap runtime dependency in audit.bin.
|
||||
mkdir -p $plugins/bin
|
||||
mv $bin/sbin/audispd-zos-remote $plugins/bin/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Audit Library";
|
||||
homepage = http://people.redhat.com/sgrubb/audit/;
|
||||
|
Loading…
Reference in New Issue
Block a user