diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2004-12-24 14:10:19 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2004-12-24 14:10:19 +0000 |
commit | baf430cd2378500253e175372e1f079d8235c04a (patch) | |
tree | 645d1cc0293dcb9370be15244d16e2bb64696c37 | |
parent | 66ea9ba4e7717e84714cb1c89d62b10e7d042fd9 (diff) |
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
-rw-r--r-- | pkgs/tools/networking/openssh/builder.sh | 10 | ||||
-rw-r--r-- | pkgs/tools/networking/openssh/default.nix | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/tools/networking/openssh/builder.sh b/pkgs/tools/networking/openssh/builder.sh index f9fc634dce9b6..0573f1c6d672d 100644 --- a/pkgs/tools/networking/openssh/builder.sh +++ b/pkgs/tools/networking/openssh/builder.sh @@ -1,9 +1,13 @@ . $stdenv/setup + configureFlags="--with-privsep-path=$out/empty" -genericBuild +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 -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 -chmod +r $out/libexec/ssh-keysign +genericBuild diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix index f5ca543f70b0f..d8194ccb63be9 100644 --- a/pkgs/tools/networking/openssh/default.nix +++ b/pkgs/tools/networking/openssh/default.nix @@ -10,4 +10,5 @@ stdenv.mkDerivation { }; buildInputs = [zlib openssl]; + patches = [./openssh-no-host-key.patch]; } |