2006-12-11 04:24:35 +01:00
|
|
|
{ stdenv, fetchurl, zlib, openssl, perl
|
|
|
|
, pamSupport ? false, pam ? null
|
|
|
|
}:
|
2006-01-17 19:48:18 +01:00
|
|
|
|
2006-12-11 04:24:35 +01:00
|
|
|
assert pamSupport -> pam != null;
|
2004-08-02 13:55:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-01-06 17:53:10 +01:00
|
|
|
name = "openssh-4.5p1";
|
2004-08-02 13:55:31 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-01-06 17:53:10 +01:00
|
|
|
url = ftp://sunsite.cnlab-switch.ch/pub/OpenBSD/OpenSSH/portable/openssh-4.5p1.tar.gz;
|
|
|
|
md5 = "6468c339886f78e8a149b88f695839dd";
|
2004-08-02 13:55:31 +02:00
|
|
|
};
|
|
|
|
|
2006-12-11 04:24:35 +01:00
|
|
|
buildInputs = [zlib openssl perl
|
|
|
|
(if pamSupport then pam else null)
|
2006-01-17 19:48:18 +01:00
|
|
|
];
|
2006-12-11 04:24:35 +01:00
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
${if pamSupport then "--with-pam" else ""}
|
|
|
|
";
|
|
|
|
|
|
|
|
preConfigure = "
|
|
|
|
configureFlags=\"$configureFlags --with-privsep-path=$out/empty\"
|
|
|
|
ensureDir $out/empty
|
|
|
|
";
|
|
|
|
|
2007-01-06 17:53:10 +01:00
|
|
|
installTargets = "install-nokeys";
|
2004-08-02 13:55:31 +02:00
|
|
|
}
|