diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/ldap/389/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/ldap/389/default.nix | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/nixpkgs/pkgs/servers/ldap/389/default.nix b/nixpkgs/pkgs/servers/ldap/389/default.nix index 3afbfbbd224b..e7bff373c3a8 100644 --- a/nixpkgs/pkgs/servers/ldap/389/default.nix +++ b/nixpkgs/pkgs/servers/ldap/389/default.nix @@ -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; }; } |