389-ds-base: 1.3.5.19 -> 1.3.9.1 (#61675)
http://www.port389.org/docs/389ds/releases/release-notes.html + fix build failure with <nss.h> + enable parallel building (faster)
This commit is contained in:
@@ -1,27 +1,33 @@
|
||||
{ stdenv, fetchurl, pkgconfig, perl, pam, nspr, nss, openldap
|
||||
, db, cyrus_sasl, svrcore, icu, net_snmp, kerberos, pcre, perlPackages
|
||||
{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, doxygen, perl, pam, nspr, nss, openldap
|
||||
, db, cyrus_sasl, svrcore, icu, net_snmp, kerberos, pcre, perlPackages, libevent, openssl, python
|
||||
}:
|
||||
let
|
||||
version = "1.3.5.19";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "389-ds-base-${version}";
|
||||
pname = "389-ds-base";
|
||||
version = "1.3.9.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://directory.fedoraproject.org/binaries/${name}.tar.bz2";
|
||||
sha256 = "1r1n44xfvy51r4r1180dfmjziyj3pqxwmnv6rjvvvjjm87fslmdd";
|
||||
url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.bz2";
|
||||
sha256 = "141iv1phgk1lw74sfjj3v7wy6qs0q56lvclwv2p0hqn1wg8ic4q6";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig doxygen ];
|
||||
buildInputs = [
|
||||
perl pam nspr nss openldap db cyrus_sasl svrcore icu
|
||||
net_snmp kerberos pcre
|
||||
net_snmp kerberos pcre libevent openssl python
|
||||
] ++ (with perlPackages; [ MozillaLdap NetAddrIP DBFile ]);
|
||||
|
||||
# TODO: Fix bin/ds-logpipe.py, bin/logconv, bin/cl-dump
|
||||
|
||||
patches = [ ./perl-path.patch
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "389-ds-nss.patch";
|
||||
url = "https://aur.archlinux.org/cgit/aur.git/plain/nss.patch?h=389-ds-base&id=b80ed52cc65ff9b1d72f8ebc54dbd462b12f6be9";
|
||||
sha256 = "07z7jl9z4gzhk3k6qyfn558xl76js8041llyr5n99h20ckkbwagk";
|
||||
})
|
||||
];
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile.am \
|
||||
--replace 's,@perlpath\@,$(perldir),g' 's,@perlpath\@,$(perldir) $(PERLPATH),g'
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
# Create perl paths for library imports in perl scripts
|
||||
@@ -43,22 +49,19 @@ stdenv.mkDerivation rec {
|
||||
"--with-netsnmp=${net_snmp}"
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
# The makefile doesn't create this directory for whatever reason
|
||||
mkdir -p $out/lib/dirsrv
|
||||
'';
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installFlags = [
|
||||
"sysconfdir=\${out}/etc"
|
||||
"localstatedir=\${TMPDIR}"
|
||||
"sysconfdir=${placeholder "out"}/etc"
|
||||
"localstatedir=${placeholder "TMPDIR"}"
|
||||
];
|
||||
|
||||
passthru.version = version;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.port389.org/;
|
||||
homepage = "https://www.port389.org/";
|
||||
description = "Enterprise-class Open Source LDAP server for Linux";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user