diff options
Diffstat (limited to 'pkgs/servers/ldap/389/default.nix')
-rw-r--r-- | pkgs/servers/ldap/389/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/servers/ldap/389/default.nix b/pkgs/servers/ldap/389/default.nix new file mode 100644 index 00000000000..f2ed57b4eb7 --- /dev/null +++ b/pkgs/servers/ldap/389/default.nix @@ -0,0 +1,56 @@ +{ stdenv, fetchurl, pkgconfig, perl, pam, nspr, nss, openldap, db, cyrus_sasl +, svrcore, icu, net_snmp, kerberos, pcre, perlPackages +}: +let + version = "1.3.3.5"; +in +stdenv.mkDerivation rec { + name = "389-ds-base-${version}"; + + src = fetchurl { + url = "http://directory.fedoraproject.org/binaries/${name}.tar.bz2"; + sha256 = "09w81salyr56njsvq9p96ijrrs0vwsczd43jf6384ylzj1jrxxl5"; + }; + + buildInputs = [ + pkgconfig perl pam nspr nss openldap db cyrus_sasl svrcore icu + net_snmp kerberos pcre + ] ++ (with perlPackages; [ MozillaLdap NetAddrIP DBFile ]); + + # TODO: Fix bin/ds-logpipe.py, bin/logconv, bin/cl-dump + + patches = [ ./no-etc.patch ./perl-path.patch ]; + + preConfigure = '' + # Create perl paths for library imports in perl scripts + PERLPATH="" + for P in $(echo $PERL5LIB | sed 's/:/ /g'); do + PERLPATH="$PERLPATH $(echo $P/*/*)" + done + export PERLPATH + ''; + + configureFlags = [ + "--sysconfdir=/etc" + "--localstatedir=/var" + "--with-openldap=${openldap}" + "--with-db=${db}" + "--with-sasl=${cyrus_sasl}" + "--with-netsnmp=${net_snmp}" + ]; + + preInstall = '' + # The makefile doesn't create this directory for whatever reason + mkdir -p $out/lib/dirsrv + ''; + + passthru.version = version; + + meta = with stdenv.lib; { + homepage = https://directory.fedoraproject.org/; + description = "enterprise-class Open Source LDAP server for Linux"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ wkennington ]; + }; +} |