wok diff openssh/receipt @ rev 17257

Up: yad (0.27.0).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 21 16:31:29 2014 +0300 (2014-10-21)
parents 08186c6ff72d
children 3a08bc61e4ee
line diff
     1.1 --- a/openssh/receipt	Mon Jun 16 10:50:45 2014 +0200
     1.2 +++ b/openssh/receipt	Tue Oct 21 16:31:29 2014 +0300
     1.3 @@ -9,6 +9,7 @@
     1.4  TARBALL="$PACKAGE-$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  TAGS="ssh security"
     1.9  HOST_ARCH="i486 arm"
    1.10  
    1.11 @@ -49,6 +50,9 @@
    1.12  
    1.13  post_install()
    1.14  {
    1.15 +	grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
    1.16 +#ssh	stream	tcp	nowait	root	sshd	sshd	-i
    1.17 +EOT
    1.18  	while read dropbear openssh ; do
    1.19  		[ -s $1$dropbear ] || continue
    1.20  		dropbearconvert dropbear openssh $1$dropbear $1$openssh
    1.21 @@ -59,3 +63,8 @@
    1.22  /etc/dropbear/dropbear_dss_host_key	/etc/ssh/ssh_host_dsa_key
    1.23  EOT
    1.24  }
    1.25 +
    1.26 +post_remove()
    1.27 +{
    1.28 +	grep -q sshd $1/etc/inetd.conf && sed -i '/sshd/d' $1/etc/inetd.conf
    1.29 +}