From f866d0c0bd3f7773b5334d2d4d9a830e058e3cef Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 11 Jan 2007 21:55:29 +0000 Subject: [PATCH] * Added openldap and pam_ldap. svn path=/nixpkgs/trunk/; revision=7641 --- pkgs/development/libraries/openldap/default.nix | 12 ++++++++++++ pkgs/os-specific/linux/pam_ldap/default.nix | 16 ++++++++++++++++ pkgs/top-level/all-packages.nix | 8 ++++++++ 3 files changed, 36 insertions(+) create mode 100644 pkgs/development/libraries/openldap/default.nix create mode 100644 pkgs/os-specific/linux/pam_ldap/default.nix diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix new file mode 100644 index 000000000000..eb076f461d56 --- /dev/null +++ b/pkgs/development/libraries/openldap/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, openssl}: + +stdenv.mkDerivation { + name = "openldap-2.3.32"; + src = fetchurl { + url = ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/openldap-2.3.32.tgz; + md5 = "154d674cf95a8f8acc496cc6cb0671e1"; + }; + buildInputs = [openssl]; + configureFlags = "--disable-slapd --disable-static"; + dontPatchELF = 1; # !!! +} diff --git a/pkgs/os-specific/linux/pam_ldap/default.nix b/pkgs/os-specific/linux/pam_ldap/default.nix new file mode 100644 index 000000000000..cb37e4a18158 --- /dev/null +++ b/pkgs/os-specific/linux/pam_ldap/default.nix @@ -0,0 +1,16 @@ +{stdenv, fetchurl, pam, openldap}: + +stdenv.mkDerivation { + name = "pam_ldap-183"; + + src = fetchurl { + url = http://www.padl.com/download/pam_ldap-183.tar.gz; + md5 = "c0ad81e9d9712ddc6599a6e7a1688778"; + }; + + preInstall = " + substituteInPlace Makefile --replace '-o root -g root' '' + "; + + buildInputs = [pam openldap]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 064985b32eee..c3881bebd7ce 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1588,6 +1588,10 @@ rec { inherit fetchurl stdenv alsaLib autoconf automake libtool; }; + openldap = import ../development/libraries/openldap { + inherit fetchurl stdenv openssl; + }; + openssl = import ../development/libraries/openssl { inherit fetchurl stdenv perl; }; @@ -2286,6 +2290,10 @@ rec { inherit stdenv fetchurl cracklib flex; }; + pam_ldap = import ../os-specific/linux/pam_ldap { + inherit stdenv fetchurl pam openldap; + }; + pam_login = import ../os-specific/linux/pam_login { inherit stdenv fetchurl pam; };