2006-12-11 03:24:35 +00:00
|
|
|
{ stdenv, fetchurl, zlib, openssl, perl
|
|
|
|
, pamSupport ? false, pam ? null
|
|
|
|
}:
|
2006-01-17 18:48:18 +00:00
|
|
|
|
2006-12-11 03:24:35 +00:00
|
|
|
assert pamSupport -> pam != null;
|
2004-08-02 12:55:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-03-21 00:34:34 +00:00
|
|
|
name = "openssh-4.6p1";
|
2004-08-02 12:55:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-03-21 00:34:34 +00:00
|
|
|
url = ftp://ftp.nluug.nl/pub/security/OpenSSH/openssh-4.6p1.tar.gz;
|
|
|
|
sha256 = "0fpjlr3bfind0y94bk442x2ps060byv1s4cnrgcxij40m9zjggkv";
|
2004-08-02 12:55:31 +01:00
|
|
|
};
|
|
|
|
|
2006-12-11 03:24:35 +00:00
|
|
|
buildInputs = [zlib openssl perl
|
|
|
|
(if pamSupport then pam else null)
|
2006-01-17 18:48:18 +00:00
|
|
|
];
|
2006-12-11 03:24:35 +00:00
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
${if pamSupport then "--with-pam" else ""}
|
|
|
|
";
|
|
|
|
|
|
|
|
preConfigure = "
|
|
|
|
configureFlags=\"$configureFlags --with-privsep-path=$out/empty\"
|
|
|
|
ensureDir $out/empty
|
|
|
|
";
|
|
|
|
|
2007-01-06 16:53:10 +00:00
|
|
|
installTargets = "install-nokeys";
|
2004-08-02 12:55:31 +01:00
|
|
|
}
|