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