wok-current rev 17048
openssh: update inetd.conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 20 12:40:53 2014 +0200 (2014-08-20) |
parents | eb612c761921 |
children | 213b944add2c |
files | openssh-pam/receipt openssh/receipt |
line diff
1.1 --- a/openssh-pam/receipt Wed Aug 20 12:19:17 2014 +0200 1.2 +++ b/openssh-pam/receipt Wed Aug 20 12:40:53 2014 +0200 1.3 @@ -10,8 +10,10 @@ 1.4 TARBALL="$SOURCE-$VERSION.tar.gz" 1.5 WEB_SITE="http://www.openssh.org/" 1.6 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL" 1.7 +CONFIG_FILES="/etc/ssh /etc/inetd.conf" 1.8 TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options::OPENSSH_OPTIONS|web::$WEB_SITE" 1.9 PROVIDE="openssh:pam ssh:pam" 1.10 +TAGS="ssh" 1.11 1.12 DEPENDS="sftp-server libcrypto zlib pam" 1.13 BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev pam pam-dev" 1.14 @@ -42,6 +44,9 @@ 1.15 1.16 post_install() 1.17 { 1.18 + grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT 1.19 +#ssh stream tcp nowait root sshd sshd -i 1.20 +EOT 1.21 while read dropbear openssh ; do 1.22 [ -s $1$dropbear ] || continue 1.23 dropbearconvert dropbear openssh $1$dropbear $1$openssh 1.24 @@ -52,3 +57,8 @@ 1.25 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 1.26 EOT 1.27 } 1.28 + 1.29 +post_remove() 1.30 +{ 1.31 + grep -q sshd $1/etc/inetd.conf && sed -i '/sshd/d' $1/etc/inetd.conf 1.32 +}
2.1 --- a/openssh/receipt Wed Aug 20 12:19:17 2014 +0200 2.2 +++ b/openssh/receipt Wed Aug 20 12:40:53 2014 +0200 2.3 @@ -9,6 +9,7 @@ 2.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 2.5 WEB_SITE="http://www.openssh.org/" 2.6 WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL" 2.7 +CONFIG_FILES="/etc/ssh /etc/inetd.conf" 2.8 TAGS="ssh security" 2.9 HOST_ARCH="i486 arm" 2.10 2.11 @@ -49,6 +50,9 @@ 2.12 2.13 post_install() 2.14 { 2.15 + grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT 2.16 +#ssh stream tcp nowait root sshd sshd -i 2.17 +EOT 2.18 while read dropbear openssh ; do 2.19 [ -s $1$dropbear ] || continue 2.20 dropbearconvert dropbear openssh $1$dropbear $1$openssh 2.21 @@ -59,3 +63,8 @@ 2.22 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 2.23 EOT 2.24 } 2.25 + 2.26 +post_remove() 2.27 +{ 2.28 + grep -q sshd $1/etc/inetd.conf && sed -i '/sshd/d' $1/etc/inetd.conf 2.29 +}