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