2017-08-01 00:14:17 +00:00
|
|
|
{ stdenv, fetchurl, pam, openldap, perl }:
|
|
|
|
|
2010-08-13 23:09:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-01 00:14:17 +00:00
|
|
|
name = "pam_ldap-186";
|
|
|
|
|
2007-01-11 21:55:29 +00:00
|
|
|
src = fetchurl {
|
2019-11-16 00:41:23 +00:00
|
|
|
url = "https://www.padl.com/download/${name}.tar.gz";
|
2017-08-01 00:14:17 +00:00
|
|
|
sha256 = "0lv4f7hc02jrd2l3gqxd247qq62z11sp3fafn8lgb8ymb7aj5zn8";
|
2007-01-11 21:55:29 +00:00
|
|
|
};
|
|
|
|
|
2017-08-01 00:14:17 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./vers_string
|
2018-08-24 20:43:52 +00:00
|
|
|
substituteInPlace vers_string --replace "cvslib.pl" "./cvslib.pl"
|
2017-08-01 00:14:17 +00:00
|
|
|
'';
|
|
|
|
|
2007-01-11 21:55:29 +00:00
|
|
|
preInstall = "
|
|
|
|
substituteInPlace Makefile --replace '-o root -g root' ''
|
|
|
|
";
|
|
|
|
|
2017-08-01 00:14:17 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
buildInputs = [ pam openldap ];
|
2010-08-13 23:09:53 +00:00
|
|
|
|
|
|
|
meta = {
|
2019-11-16 00:41:23 +00:00
|
|
|
homepage = https://www.padl.com/OSS/pam_ldap.html;
|
2010-08-13 23:09:53 +00:00
|
|
|
description = "LDAP backend for PAM";
|
|
|
|
longDescription = ''
|
|
|
|
The pam_ldap module provides the means for Solaris and Linux servers and
|
|
|
|
workstations to authenticate against LDAP directories, and to change their
|
|
|
|
passwords in the directory.'';
|
|
|
|
license = "LGPL";
|
|
|
|
inherit (pam.meta) platforms;
|
|
|
|
};
|
2007-01-11 21:55:29 +00:00
|
|
|
}
|