2010-07-14 12:10:26 +00:00
|
|
|
{ stdenv, fetchurl, pam, glibc }:
|
2004-08-30 11:44:51 +00:00
|
|
|
|
2010-06-02 16:45:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "shadow-4.1.4.2";
|
2004-08-30 11:44:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-06-02 16:45:14 +00:00
|
|
|
url = "ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/${name}.tar.bz2";
|
|
|
|
sha256 = "1449ny7pdnwkavg92wvibapnkgdq5pas38nvl1m5xa37g5m7z64p";
|
2004-08-30 11:44:51 +00:00
|
|
|
};
|
2006-11-28 15:45:41 +00:00
|
|
|
|
2010-06-02 16:45:14 +00:00
|
|
|
buildInputs = [ pam ];
|
2010-06-04 11:32:42 +00:00
|
|
|
|
|
|
|
patches = [ ./no-sanitize-env.patch ./su-name.patch ./keep-path.patch ];
|
2010-07-14 12:10:26 +00:00
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
substituteInPlace lib/nscd.c --replace /usr/sbin/nscd ${glibc}/sbin/nscd
|
|
|
|
'';
|
2010-06-02 16:45:14 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://pkg-shadow.alioth.debian.org/;
|
|
|
|
description = "Suite containing authentication-related tools such as passwd and su";
|
|
|
|
};
|
2004-08-30 11:44:51 +00:00
|
|
|
}
|