mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 02:03:21 +00:00
Merge pull request #195096 from ners/389ds
This commit is contained in:
commit
e668212783
@ -1,144 +1,121 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, autoreconfHook
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, lib
|
, autoconf
|
||||||
|
, automake
|
||||||
, bzip2
|
, libtool
|
||||||
, cmocka
|
, pkg-config
|
||||||
, cracklib
|
, cracklib
|
||||||
, cyrus_sasl
|
, lmdb
|
||||||
, db
|
, json_c
|
||||||
, doxygen
|
, linux-pam
|
||||||
, icu
|
|
||||||
, libevent
|
, libevent
|
||||||
, libkrb5
|
|
||||||
, lm_sensors
|
|
||||||
, net-snmp
|
|
||||||
, nspr
|
, nspr
|
||||||
, nss
|
, nss
|
||||||
, openldap
|
, openldap
|
||||||
, openssl
|
, withOpenldap ? true
|
||||||
, pcre
|
, db
|
||||||
, perl
|
, withBdb ? true
|
||||||
, perlPackages
|
, cyrus_sasl
|
||||||
, pkg-config
|
, icu
|
||||||
|
, net-snmp
|
||||||
|
, withNetSnmp ? true
|
||||||
|
, krb5
|
||||||
|
, pcre2
|
||||||
, python3
|
, python3
|
||||||
, svrcore
|
, rustPlatform
|
||||||
|
, openssl
|
||||||
|
, systemd
|
||||||
|
, withSystemd ? stdenv.isLinux
|
||||||
, zlib
|
, zlib
|
||||||
|
|
||||||
, enablePamPassthru ? true
|
|
||||||
, pam
|
|
||||||
|
|
||||||
, enableCockpit ? true
|
|
||||||
, rsync
|
, rsync
|
||||||
|
, withCockpit ? true
|
||||||
, enableDna ? true
|
, withAsan ? false
|
||||||
, enableLdapi ? true
|
|
||||||
, enableAutobind ? false
|
|
||||||
, enableAutoDnSuffix ? false
|
|
||||||
, enableBitwise ? true
|
|
||||||
, enableAcctPolicy ? true
|
|
||||||
, enablePosixWinsync ? true
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "389-ds-base";
|
pname = "389-ds-base";
|
||||||
version = "2.0.7";
|
version = "2.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "389ds";
|
owner = "389ds";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "${pname}-${version}";
|
rev = "${pname}-${version}";
|
||||||
sha256 = "sha256-aM1qo+yHrCFespPWHv2f25ooqQVCIZGaZS43dY6kiC4=";
|
sha256 = "sha256-GnntF0UaufDrgcM6FFFdwxwVoU9Hu2NXTW1A2lTb6T4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config doxygen ];
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
inherit src;
|
||||||
|
sourceRoot = "source/src";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
hash = "sha256-OJXvNL7STNwvt6EiV2r8zv2ZoUGgNUj7UssAQNLN4KI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoconf
|
||||||
|
automake
|
||||||
|
libtool
|
||||||
|
pkg-config
|
||||||
|
python3
|
||||||
|
rustPlatform.rust.cargo
|
||||||
|
rustPlatform.rust.rustc
|
||||||
|
]
|
||||||
|
++ lib.optional withCockpit rsync;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
bzip2
|
|
||||||
cracklib
|
cracklib
|
||||||
cyrus_sasl
|
lmdb
|
||||||
db
|
json_c
|
||||||
icu
|
linux-pam
|
||||||
libevent
|
libevent
|
||||||
libkrb5
|
|
||||||
lm_sensors
|
|
||||||
net-snmp
|
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
openldap
|
cyrus_sasl
|
||||||
|
icu
|
||||||
|
krb5
|
||||||
|
pcre2
|
||||||
openssl
|
openssl
|
||||||
pcre
|
|
||||||
perl
|
|
||||||
python3
|
|
||||||
svrcore
|
|
||||||
zlib
|
zlib
|
||||||
|
|
||||||
# tests
|
|
||||||
cmocka
|
|
||||||
libevent
|
|
||||||
|
|
||||||
# lib389
|
|
||||||
(python3.withPackages (ps: with ps; [
|
|
||||||
setuptools
|
|
||||||
python-ldap
|
|
||||||
six
|
|
||||||
pyasn1
|
|
||||||
pyasn1-modules
|
|
||||||
python-dateutil
|
|
||||||
argcomplete
|
|
||||||
libselinux
|
|
||||||
]))
|
|
||||||
|
|
||||||
# logconv.pl
|
|
||||||
perlPackages.DBFile
|
|
||||||
perlPackages.ArchiveTar
|
|
||||||
]
|
]
|
||||||
++ lib.optional enableCockpit rsync
|
++ lib.optional withSystemd systemd
|
||||||
++ lib.optional enablePamPassthru pam;
|
++ lib.optional withOpenldap openldap
|
||||||
|
++ lib.optional withBdb db
|
||||||
|
++ lib.optional withNetSnmp net-snmp;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile.am \
|
|
||||||
--replace 's,@perlpath\@,$(perldir),g' 's,@perlpath\@,$(perldir) $(PERLPATH),g'
|
|
||||||
|
|
||||||
patchShebangs ./buildnum.py ./ldap/servers/slapd/mkDBErrStrs.py
|
patchShebangs ./buildnum.py ./ldap/servers/slapd/mkDBErrStrs.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# Create perl paths for library imports in perl scripts
|
./autogen.sh --prefix="$out"
|
||||||
PERLPATH=""
|
|
||||||
for P in $(echo $PERL5LIB | sed 's/:/ /g'); do
|
|
||||||
PERLPATH="$PERLPATH $(echo $P/*/*)"
|
|
||||||
done
|
|
||||||
export PERLPATH
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags =
|
preBuild = ''
|
||||||
let
|
mkdir -p ./vendor
|
||||||
mkEnable = cond: name: if cond then "--enable-${name}" else "--disable-${name}";
|
tar -xzf ${cargoDeps} -C ./vendor --strip-components=1
|
||||||
in
|
'';
|
||||||
[
|
|
||||||
"--enable-cmocka"
|
|
||||||
"--localstatedir=/var"
|
|
||||||
"--sysconfdir=/etc"
|
|
||||||
"--with-db-inc=${db.dev}/include"
|
|
||||||
"--with-db-lib=${db.out}/lib"
|
|
||||||
"--with-db=yes"
|
|
||||||
"--with-netsnmp-inc=${lib.getDev net-snmp}/include"
|
|
||||||
"--with-netsnmp-lib=${lib.getLib net-snmp}/lib"
|
|
||||||
"--with-netsnmp=yes"
|
|
||||||
"--with-openldap"
|
|
||||||
|
|
||||||
"${mkEnable enableCockpit "cockpit"}"
|
configureFlags = [
|
||||||
"${mkEnable enablePamPassthru "pam-passthru"}"
|
"--enable-rust-offline"
|
||||||
"${mkEnable enableDna "dna"}"
|
"--enable-autobind"
|
||||||
"${mkEnable enableLdapi "ldapi"}"
|
]
|
||||||
"${mkEnable enableAutobind "autobind"}"
|
++ lib.optionals withSystemd [
|
||||||
"${mkEnable enableAutoDnSuffix "auto-dn-suffix"}"
|
"--with-systemd"
|
||||||
"${mkEnable enableBitwise "bitwise"}"
|
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
"${mkEnable enableAcctPolicy "acctpolicy"}"
|
] ++ lib.optionals withOpenldap [
|
||||||
"${mkEnable enablePosixWinsync "posix-winsync"}"
|
"--with-openldap"
|
||||||
];
|
] ++ lib.optionals withBdb [
|
||||||
|
"--with-db-inc=${lib.getDev db}/include"
|
||||||
|
"--with-db-lib=${lib.getLib db}/lib"
|
||||||
|
] ++ lib.optionals withNetSnmp [
|
||||||
|
"--with-netsnmp-inc=${lib.getDev net-snmp}/include"
|
||||||
|
"--with-netsnmp-lib=${lib.getLib net-snmp}/lib"
|
||||||
|
] ++ lib.optionals (!withCockpit) [
|
||||||
|
"--disable-cockpit"
|
||||||
|
] ++ lib.optionals withAsan [
|
||||||
|
"--enable-asan"
|
||||||
|
"--enable-debug"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
@ -156,5 +133,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Enterprise-class Open Source LDAP server for Linux";
|
description = "Enterprise-class Open Source LDAP server for Linux";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
maintainers = [ maintainers.ners ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -23069,6 +23069,8 @@ with pkgs;
|
|||||||
|
|
||||||
alps = callPackage ../servers/alps { };
|
alps = callPackage ../servers/alps { };
|
||||||
|
|
||||||
|
apache-directory-server = callPackage ../servers/ldap/apache-directory-server {};
|
||||||
|
|
||||||
apacheHttpd_2_4 = callPackage ../servers/http/apache-httpd/2.4.nix { };
|
apacheHttpd_2_4 = callPackage ../servers/http/apache-httpd/2.4.nix { };
|
||||||
apacheHttpd = apacheHttpd_2_4;
|
apacheHttpd = apacheHttpd_2_4;
|
||||||
|
|
||||||
@ -26974,8 +26976,6 @@ with pkgs;
|
|||||||
|
|
||||||
ao = libfive;
|
ao = libfive;
|
||||||
|
|
||||||
apache-directory-server = callPackage ../servers/apache-directory-server {};
|
|
||||||
|
|
||||||
apache-directory-studio = callPackage ../applications/networking/apache-directory-studio {};
|
apache-directory-studio = callPackage ../applications/networking/apache-directory-studio {};
|
||||||
|
|
||||||
apkeep = callPackage ../tools/misc/apkeep {
|
apkeep = callPackage ../tools/misc/apkeep {
|
||||||
|
Loading…
Reference in New Issue
Block a user