wok diff mosh/receipt @ rev 18359

Up mosh (1.2.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 16 12:34:55 2015 +0200 (2015-09-16)
parents 7dd80db4b5f9
children f8d63e811309
line diff
     1.1 --- a/mosh/receipt	Sat Jul 04 11:23:16 2015 +0200
     1.2 +++ b/mosh/receipt	Wed Sep 16 12:34:55 2015 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="mosh"
     1.7 -VERSION="1.2.4"
     1.8 +VERSION="1.2.5"
     1.9  CATEGORY="security"
    1.10  SHORT_DESC="A Openbsd Secure Shell remplacement."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -17,13 +17,6 @@
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 -	sed -i '/.*quoted_self = shell_quote.*/r/dev/stdin' scripts/mosh <<EOT
    1.17 -  if (\`\$ssh -V 2>&1\` =~ m{Dropbear}) {
    1.18 -    my \$host = \$userhost; \$host = \$1 if (\$userhost =~ m{@(.*)});
    1.19 -    my \$port = 22; \$port = \$1 if (\$ssh =~ m{-p *(\d+)});
    1.20 -    exec "\$ssh " . shell_quote( '-J', "\$quoted_self --fake-proxy -- \$host \$port", '-t', \$userhost, "\$server " . shell_quote( @server ) );
    1.21 -  }
    1.22 -EOT
    1.23  	./configure --prefix=/usr --sysconfdir=/etc \
    1.24  		--enable-compile-warnings=error &&
    1.25  	make &&
    1.26 @@ -35,6 +28,13 @@
    1.27  {
    1.28  	mkdir -p $fs/usr
    1.29  	cp -a $install/usr/bin $fs/usr
    1.30 +	sed -i '/.*quoted_self = shell_quote.*/r/dev/stdin' $fs/usr/bin/mosh <<EOT
    1.31 +  if (\`\$ssh -V 2>&1\` =~ m{Dropbear}) {
    1.32 +    my \$host = \$userhost; \$host = \$1 if (\$userhost =~ m{@(.*)});
    1.33 +    my \$port = 22; \$port = \$1 if (\$ssh =~ m{-p *(\d+)});
    1.34 +    exec "\$ssh " . shell_quote( '-J', "\$quoted_self --fake-proxy -- \$host \$port", '-t', \$userhost, "\$server " . shell_quote( @server ) );
    1.35 +  }
    1.36 +EOT
    1.37  }
    1.38  
    1.39  post_install()