wok-next diff mosh/receipt @ rev 20736

netatalk-dev: update depends
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 20:07:48 2018 +0300 (2018-05-29)
parents d43bf7aae921
children d5aab818505e
line diff
     1.1 --- a/mosh/receipt	Wed Mar 21 15:58:17 2018 +0200
     1.2 +++ b/mosh/receipt	Tue May 29 20:07:48 2018 +0300
     1.3 @@ -1,48 +1,47 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="mosh"
     1.8  VERSION="1.3.2"
     1.9  CATEGORY="security"
    1.10 -SHORT_DESC="A Openbsd Secure Shell remplacement."
    1.11 +SHORT_DESC="A Openbsd Secure Shell remplacement"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14 +WEB_SITE="http://mosh.mit.edu/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://mosh.mit.edu/"
    1.18  WGET_URL="${WEB_SITE}$TARBALL"
    1.19 -TAGS="ssh"
    1.20  
    1.21 -DEPENDS="gcc-lib-base perl protobuf openssl zlib ncurses ssh"
    1.22  BUILD_DEPENDS="protobuf-dev openssl-dev zlib-dev \
    1.23  ncurses-dev automake autoconf libtool"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 +compile_rules() {
    1.29  	./autogen.sh
    1.30 -	./configure --prefix=/usr --sysconfdir=/etc \
    1.31 +	./configure \
    1.32  		--enable-compile-warnings=error &&
    1.33  	make &&
    1.34  	make DESTDIR=$DESTDIR install
    1.35  }
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -	mkdir -p $fs/usr
    1.41 -	cp -a $install/usr/bin $fs/usr
    1.42 +genpkg_rules() {
    1.43 +	copy @std
    1.44 +	DEPENDS="gcc-lib-base perl protobuf openssl zlib ncurses ssh"
    1.45 +	TAGS="ssh"
    1.46  }
    1.47  
    1.48 -post_install()
    1.49 -{
    1.50 +post_install() {
    1.51  	if ! grep ^DROPBEAR_OPTIONS "$1/etc/daemons.conf" | grep -q -- -a; then
    1.52  		cat <<EOT
    1.53 -The mosh server needs dropbear to allow connections to forwarded ports
    1.54 -from any host. Nothing to do if you are using OpenSSH or you plan
    1.55 -to use the mosh client only.
    1.56 +
    1.57 +	.----------------------------------------------------.
    1.58 +	| The mosh server needs dropbear to allow connections |
    1.59 +	| to forwarded ports from any host. Nothing to do if  |
    1.60 +	| you are using OpenSSH or you plan to use the mosh   |
    1.61 +	| client only.                                        |
    1.62 +	'-----------------------------------------------------'
    1.63  EOT
    1.64  		echo -n "Add -a for DROPBEAR_OPTIONS in /etc/daemons.conf now ?"
    1.65  		read -t 30 answer
    1.66 -		[ "$answer" == "y" ] && 
    1.67 +		[ "$answer" == "y" ] &&
    1.68  		sed -i 's/^DROPBEAR_OPTIONS="/&-a /' "$1/etc/daemons.conf" &&
    1.69  		[ -z "$1" ] && /etc/init.d/dropbear restart
    1.70  	fi