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 {
|
2011-10-02 16:02:06 +02:00
|
|
|
url = "http://pkg-shadow.alioth.debian.org/releases/${name}.tar.bz2";
|
2010-06-02 18:45:14 +02:00
|
|
|
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
|
|
|
}
|