wok diff openssh-pam/receipt @ 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 08186c6ff72d
children 3a08bc61e4ee
line diff
     1.1 --- a/openssh-pam/receipt	Mon Jun 16 10:50:45 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 +}