wok rev 7308
merge
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Nov 17 13:50:26 2010 +0000 (2010-11-17) |
parents | 7b40fd39573f 0938c8dab9a2 |
children | 0b1b66fb99df |
files |
line diff
1.1 --- a/dropbear-pam/receipt Wed Nov 17 13:49:51 2010 +0000 1.2 +++ b/dropbear-pam/receipt Wed Nov 17 13:50:26 2010 +0000 1.3 @@ -62,6 +62,14 @@ 1.4 # Post message when installing. 1.5 post_install() 1.6 { 1.7 + while read dropbear openssh ; do 1.8 + [ -s $openssh ] || continue 1.9 + dropbearconvert openssh dropbear $1$openssh $1$dropbear 1.10 + dropbearkey -y -f $1$dropbear | grep Fingerprint 1.11 + done <<EOT 1.12 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 1.13 +/etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 1.14 +EOT 1.15 echo -e "\nTo starts $SOURCE server you can run :\n" 1.16 echo "/etc/init.d/$SOURCE start" 1.17 echo -e "Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf\n"
2.1 --- a/dropbear/receipt Wed Nov 17 13:49:51 2010 +0000 2.2 +++ b/dropbear/receipt Wed Nov 17 13:50:26 2010 +0000 2.3 @@ -59,6 +59,14 @@ 2.4 # Post message when installing. 2.5 post_install() 2.6 { 2.7 + while read dropbear openssh ; do 2.8 + [ -s $openssh ] || continue 2.9 + dropbearconvert openssh dropbear $1$openssh $1$dropbear 2.10 + dropbearkey -y -f $1$dropbear | grep Fingerprint 2.11 + done <<EOT 2.12 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 2.13 +/etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 2.14 +EOT 2.15 echo -e "\nTo starts $PACKAGE server you can run :\n" 2.16 echo "/etc/init.d/$PACKAGE start" 2.17 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
3.1 --- a/openssh-pam/receipt Wed Nov 17 13:49:51 2010 +0000 3.2 +++ b/openssh-pam/receipt Wed Nov 17 13:50:26 2010 +0000 3.3 @@ -36,3 +36,16 @@ 3.4 sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/sshd/sshd_config 3.5 } 3.6 3.7 +# Pre and post install commands for Tazpkg. 3.8 +post_install() 3.9 +{ 3.10 + while read dropbear openssh ; do 3.11 + [ -s $dropbear ] || continue 3.12 + dropbearconvert dropbear openssh $1$dropbear $1$openssh 3.13 + dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub 3.14 + dropbearkey -y -f $1$dropbear | grep Fingerprint 3.15 + done <<EOT 3.16 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 3.17 +/etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 3.18 +EOT 3.19 +}
4.1 --- a/openssh/receipt Wed Nov 17 13:49:51 2010 +0000 4.2 +++ b/openssh/receipt Wed Nov 17 13:50:26 2010 +0000 4.3 @@ -37,3 +37,16 @@ 4.4 $fs/etc/ssh/sshd_config 4.5 } 4.6 4.7 +# Pre and post install commands for Tazpkg. 4.8 +post_install() 4.9 +{ 4.10 + while read dropbear openssh ; do 4.11 + [ -s $dropbear ] || continue 4.12 + dropbearconvert dropbear openssh $1$dropbear $1$openssh 4.13 + dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub 4.14 + dropbearkey -y -f $1$dropbear | grep Fingerprint 4.15 + done <<EOT 4.16 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 4.17 +/etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 4.18 +EOT 4.19 +}