3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/pam_ldap/default.nix

33 lines
847 B
Nix
Raw Normal View History

2017-08-01 01:14:17 +01:00
{ stdenv, fetchurl, pam, openldap, perl }:
stdenv.mkDerivation rec {
2017-08-01 01:14:17 +01:00
name = "pam_ldap-186";
src = fetchurl {
url = "http://www.padl.com/download/${name}.tar.gz";
2017-08-01 01:14:17 +01:00
sha256 = "0lv4f7hc02jrd2l3gqxd247qq62z11sp3fafn8lgb8ymb7aj5zn8";
};
2017-08-01 01:14:17 +01:00
postPatch = ''
patchShebangs ./vers_string
'';
preInstall = "
substituteInPlace Makefile --replace '-o root -g root' ''
";
2017-08-01 01:14:17 +01:00
nativeBuildInputs = [ perl ];
buildInputs = [ pam openldap ];
meta = {
homepage = http://www.padl.com/OSS/pam_ldap.html;
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;
};
}