2012-09-14 02:06:25 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openldap, python, pam, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nss-pam-ldapd-${version}";
|
2013-07-10 10:49:37 +04:00
|
|
|
version = "0.8.13";
|
2012-09-14 02:06:25 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://arthurdejong.org/nss-pam-ldapd/${name}.tar.gz";
|
2013-07-10 10:49:37 +04:00
|
|
|
sha256 = "08jxxskzv983grc28zksk9fd8q5qad64rma9vcjsq0l4r6cax4mp";
|
2012-09-14 02:06:25 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper pkgconfig python openldap pam ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile.in --replace "install-data-local: " "# install-data-local: "
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-bindpw-file=/run/nslcd/bindpw"
|
|
|
|
"--with-nslcd-socket=/run/nslcd/socket"
|
|
|
|
"--with-nslcd-pidfile=/run/nslcd/nslcd.pid"
|
|
|
|
"--with-pam-seclib-dir=$(out)/lib/security"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/sbin/nslcd --prefix LD_LIBRARY_PATH ":" $out/lib
|
|
|
|
'';
|
|
|
|
|
2015-05-27 22:56:04 +03:00
|
|
|
meta = with stdenv.lib; {
|
2012-09-14 02:06:25 +04:00
|
|
|
description = "LDAP identity and authentication for NSS/PAM";
|
|
|
|
homepage = http://arthurdejong.org/nss-pam-ldapd/;
|
2015-05-28 20:20:29 +03:00
|
|
|
license = licenses.lgpl21;
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = platforms.linux;
|
2012-09-14 02:06:25 +04:00
|
|
|
};
|
|
|
|
}
|