# HG changeset patch # User Pascal Bellard # Date 1219060589 0 # Node ID f4c5b982b05efdd61b8c48e1b1d9add310b2da45 # Parent e53076a6ce3f4f14e9ba9e2d876cfb6f881363f7 dropbear: declare config files diff -r e53076a6ce3f -r f4c5b982b05e dropbear/receipt --- a/dropbear/receipt Mon Aug 18 11:52:51 2008 +0000 +++ b/dropbear/receipt Mon Aug 18 11:56:29 2008 +0000 @@ -8,6 +8,7 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" +CONFIG_FILES="/etc/dropbear" # Rules to configure and make the package. compile_rules() @@ -41,6 +42,8 @@ mkdir -p $fs/etc cp -a stuff/dropbear $fs/etc cp -a stuff/init.d $fs/etc + touch $fs/etc/dropbear/dropbear_dss_host_key \ + $fs/etc/dropbear/dropbear_rsa_host_key # Fix dropbear initscript perms chown -R root.root $fs diff -r e53076a6ce3f -r f4c5b982b05e dropbear/stuff/init.d/dropbear --- a/dropbear/stuff/init.d/dropbear Mon Aug 18 11:52:51 2008 +0000 +++ b/dropbear/stuff/init.d/dropbear Mon Aug 18 11:56:29 2008 +0000 @@ -17,11 +17,11 @@ case "$1" in start) # We need rsa and dss host key file to start dropbear. - if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then + if [ ! -s /etc/dropbear/dropbear_rsa_host_key ] ; then echo "Generating $NAME rsa key... " dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key fi - if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then + if [ ! -s /etc/dropbear/dropbear_dss_host_key ] ; then echo "Generating $NAME dss key... " dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key fi