wok-next view mosh/receipt @ rev 20709

cdrdao: add patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 26 17:09:29 2018 +0300 (2018-05-26)
parents d43bf7aae921
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mosh"
4 VERSION="1.3.2"
5 CATEGORY="security"
6 SHORT_DESC="A Openbsd Secure Shell remplacement"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://mosh.mit.edu/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 BUILD_DEPENDS="protobuf-dev openssl-dev zlib-dev \
15 ncurses-dev automake autoconf libtool"
17 compile_rules() {
18 ./autogen.sh
19 ./configure \
20 --enable-compile-warnings=error &&
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 genpkg_rules() {
26 copy @std
27 DEPENDS="gcc-lib-base perl protobuf openssl zlib ncurses ssh"
28 TAGS="ssh"
29 }
31 post_install() {
32 if ! grep ^DROPBEAR_OPTIONS "$1/etc/daemons.conf" | grep -q -- -a; then
33 cat <<EOT
35 .----------------------------------------------------.
36 | The mosh server needs dropbear to allow connections |
37 | to forwarded ports from any host. Nothing to do if |
38 | you are using OpenSSH or you plan to use the mosh |
39 | client only. |
40 '-----------------------------------------------------'
41 EOT
42 echo -n "Add -a for DROPBEAR_OPTIONS in /etc/daemons.conf now ?"
43 read -t 30 answer
44 [ "$answer" == "y" ] &&
45 sed -i 's/^DROPBEAR_OPTIONS="/&-a /' "$1/etc/daemons.conf" &&
46 [ -z "$1" ] && /etc/init.d/dropbear restart
47 fi
48 true
49 }