wok rev 7303

openssh: convert dropbear host keys
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 17 17:10:28 2010 +0100 (2010-11-17)
parents 53e1828da719
children d1de0ef9ae8b
files openssh-pam/receipt openssh/receipt
line diff
     1.1 --- a/openssh-pam/receipt	Wed Nov 17 03:47:52 2010 +0000
     1.2 +++ b/openssh-pam/receipt	Wed Nov 17 17:10:28 2010 +0100
     1.3 @@ -36,3 +36,16 @@
     1.4  	sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/sshd/sshd_config
     1.5  }
     1.6  
     1.7 +# Pre and post install commands for Tazpkg.
     1.8 +post_install()
     1.9 +{
    1.10 +	while read dropbear openssh ; do
    1.11 +		[ -s $dropbear ] || continue
    1.12 +		dropbearconvert dropbear openssh $1$dropbear $1$openssh
    1.13 +		dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
    1.14 +		dropbearkey -y -f $1$dropbear | grep Fingerprint
    1.15 +	done <<EOT
    1.16 +/etc/dropbear/dropbear_rsa_host_key	/etc/ssh/ssh_host_rsa_key
    1.17 +/etc/dropbear/dropbear_dsa_host_key	/etc/ssh/ssh_host_dss_key
    1.18 +EOT
    1.19 +}
     2.1 --- a/openssh/receipt	Wed Nov 17 03:47:52 2010 +0000
     2.2 +++ b/openssh/receipt	Wed Nov 17 17:10:28 2010 +0100
     2.3 @@ -37,3 +37,16 @@
     2.4  		$fs/etc/ssh/sshd_config
     2.5  }
     2.6  
     2.7 +# Pre and post install commands for Tazpkg.
     2.8 +post_install()
     2.9 +{
    2.10 +	while read dropbear openssh ; do
    2.11 +		[ -s $dropbear ] || continue
    2.12 +		dropbearconvert dropbear openssh $1$dropbear $1$openssh
    2.13 +		dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
    2.14 +		dropbearkey -y -f $1$dropbear | grep Fingerprint
    2.15 +	done <<EOT
    2.16 +/etc/dropbear/dropbear_rsa_host_key	/etc/ssh/ssh_host_rsa_key
    2.17 +/etc/dropbear/dropbear_dsa_host_key	/etc/ssh/ssh_host_dss_key
    2.18 +EOT
    2.19 +}