wok-next view mosh/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | d5aab818505e |
children |
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="https://mosh.org/"
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 &&
22 make &&
23 make DESTDIR=$install install
24 }
26 genpkg_rules() {
27 copy @std
28 DEPENDS="gcc-lib-base perl protobuf openssl zlib ncurses ssh"
29 TAGS="ssh"
30 }
32 post_install() {
33 if ! grep ^DROPBEAR_OPTIONS "$1/etc/daemons.conf" | grep -q -- -a; then
34 cat <<EOT
36 .----------------------------------------------------.
37 | The mosh server needs dropbear to allow connections |
38 | to forwarded ports from any host. Nothing to do if |
39 | you are using OpenSSH or you plan to use the mosh |
40 | client only. |
41 '-----------------------------------------------------'
42 EOT
43 echo -n "Add -a for DROPBEAR_OPTIONS in /etc/daemons.conf now ?"
44 read -t 30 answer
45 [ "$answer" == "y" ] &&
46 sed -i 's/^DROPBEAR_OPTIONS="/&-a /' "$1/etc/daemons.conf" &&
47 [ -z "$1" ] && /etc/init.d/dropbear restart
48 fi
49 true
50 }