wok-next view mosh/receipt @ rev 21103

emacs: depends on emacs-common
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 03 11:21:15 2019 +0200 (2019-01-03)
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 }