wok-current diff dropbear/receipt @ rev 17247
Add gringotts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 19 11:40:30 2014 +0200 (2014-10-19) |
parents | 1ba367a7ebbb |
children | a8ed437fce5b |
line diff
1.1 --- a/dropbear/receipt Thu Aug 14 09:57:53 2014 +0200 1.2 +++ b/dropbear/receipt Sun Oct 19 11:40:30 2014 +0200 1.3 @@ -9,7 +9,7 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.5 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" 1.6 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" 1.7 -CONFIG_FILES="/etc/dropbear" 1.8 +CONFIG_FILES="/etc/dropbear /etc/inetd.conf" 1.9 SUGGESTED="sftp-server" 1.10 PROVIDE="ssh" 1.11 TAGS="ssh" 1.12 @@ -92,7 +92,15 @@ 1.13 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 1.14 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 1.15 EOT 1.16 + grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT 1.17 +#ssh stream tcp nowait root dropbear dropbear -i -b /etc/dropbear/banner 1.18 +EOT 1.19 echo -e "\nTo starts $PACKAGE server you can run :\n" 1.20 echo "/etc/init.d/$PACKAGE start" 1.21 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" 1.22 } 1.23 + 1.24 +post_remove() 1.25 +{ 1.26 + grep -q dropbear $1/etc/inetd.conf && sed -i '/dropbear/d' $1/etc/inetd.conf 1.27 +}