don't let openssh generate a new hostkey when installing, let this be done afterwards by the sysadmin

svn path=/nixpkgs/branches/nixos-pkgs/; revision=1947
This commit is contained in:
Armijn Hemel 2004-12-24 14:10:19 +00:00
parent 66ea9ba4e7
commit baf430cd23
2 changed files with 9 additions and 4 deletions

View file

@ -1,9 +1,13 @@
. $stdenv/setup
configureFlags="--with-privsep-path=$out/empty"
postInstall() {
rm $out/etc/ssh_host_dsa_key $out/etc/ssh_host_dsa_key.pub $out/etc/ssh_host_key $out/etc/ssh_host_key.pub $out/etc/ssh_host_rsa_key $out/etc/ssh_host_rsa_key.pub
chmod +r $out/libexec/ssh-keysign
}
#postInstall=postInstall
genericBuild
rm $out/etc/ssh_host_dsa_key $out/etc/ssh_host_dsa_key.pub $out/etc/ssh_host_key $out/etc/ssh_host_key.pub $out/etc/ssh_host_rsa_key $out/etc/ssh_host_rsa_key.pub
chmod +r $out/libexec/ssh-keysign

View file

@ -10,4 +10,5 @@ stdenv.mkDerivation {
};
buildInputs = [zlib openssl];
patches = [./openssh-no-host-key.patch];
}