2006-12-11 03:24:35 +00:00
|
|
|
{ stdenv, fetchurl, zlib, openssl, perl
|
|
|
|
, pamSupport ? false, pam ? null
|
|
|
|
, xforwarding ? false, xauth ? null
|
|
|
|
}:
|
2006-01-17 18:48:18 +00:00
|
|
|
|
2006-12-11 03:24:35 +00:00
|
|
|
assert pamSupport -> pam != null;
|
2006-01-17 18:48:18 +00:00
|
|
|
assert xforwarding -> xauth != null;
|
2004-08-02 12:55:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "openssh-3.8.1p1";
|
|
|
|
|
2006-12-11 03:24:35 +00:00
|
|
|
#builder = ./builder.sh;
|
2004-08-02 12:55:31 +01:00
|
|
|
src = fetchurl {
|
2005-08-22 09:39:27 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/openssh-3.8.1p1.tar.gz;
|
2004-08-02 12:55:31 +01:00
|
|
|
md5 = "1dbfd40ae683f822ae917eebf171ca42";
|
|
|
|
};
|
|
|
|
|
2006-12-11 03:24:35 +00:00
|
|
|
buildInputs = [zlib openssl perl
|
|
|
|
(if pamSupport then pam else null)
|
|
|
|
(if xforwarding then xauth else null)
|
2006-01-17 18:48:18 +00:00
|
|
|
];
|
2006-12-11 03:24:35 +00:00
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
${if xforwarding then "--with-xauth=${xauth}/bin/xauth" else ""}
|
|
|
|
${if pamSupport then "--with-pam" else ""}
|
|
|
|
";
|
|
|
|
|
|
|
|
preConfigure = "
|
|
|
|
configureFlags=\"$configureFlags --with-privsep-path=$out/empty\"
|
|
|
|
ensureDir $out/empty
|
|
|
|
";
|
|
|
|
|
|
|
|
installPhase = "make install-nokeys"; # !!! patchelf etc.
|
2004-08-02 12:55:31 +01:00
|
|
|
}
|