<commit_before>{ stdenv, fetchurl, zlib, openssl, perl
, pamSupport ? false, pam ? null
, xforwarding ? false, xauth ? null
}:

assert pamSupport -> pam != null;
assert xforwarding -> xauth != null;
 
stdenv.mkDerivation {
  name = "openssh-3.8.1p1";
 
  #builder = ./builder.sh;
  src = fetchurl {
    url = http://nix.cs.uu.nl/dist/tarballs/openssh-3.8.1p1.tar.gz;
    md5 = "1dbfd40ae683f822ae917eebf171ca42";
  };
 
  buildInputs = [zlib openssl perl
    (if pamSupport then pam else null)
    (if xforwarding then xauth else null)
  ];

  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.
}<commit_msg>* OpenSSH 4.5p1 (old version was ancient!).<commit_after>{ stdenv, fetchurl, zlib, openssl, perl
, pamSupport ? false, pam ? null
, xforwarding ? false, xauth ? null
}:

assert pamSupport -> pam != null;
assert xforwarding -> xauth != null;
 
stdenv.mkDerivation {
  name = "openssh-4.5p1";
 
  #builder = ./builder.sh;
  src = fetchurl {
    url = ftp://sunsite.cnlab-switch.ch/pub/OpenBSD/OpenSSH/portable/openssh-4.5p1.tar.gz;
    md5 = "6468c339886f78e8a149b88f695839dd";
  };
 
  buildInputs = [zlib openssl perl
    (if pamSupport then pam else null)
    (if xforwarding then xauth else null)
  ];

  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
  ";

  installTargets = "install-nokeys";
}
{'fraction_non_alphanumeric': 0.15190582959641255, 'fraction_numerical': 0.033632286995515695, 'mean_word_length': 3.3012048192771086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7138032', 'n_tokens_mistral': 702, 'n_tokens_neox': 658, 'n_words': 143}