mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
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:
parent
66ea9ba4e7
commit
baf430cd23
@ -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
|
||||
|
@ -10,4 +10,5 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
buildInputs = [zlib openssl];
|
||||
patches = [./openssh-no-host-key.patch];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user