wok-next view mosh/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | ff4ffcd5e1db |
children | e6615350078d |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mosh.mit.edu/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 TAGS="ssh"
14 DEPENDS="gcc-lib-base perl protobuf libssl libcrypto zlib ncurses ssh"
15 BUILD_DEPENDS="pkg-config protobuf-dev openssl-dev libcrypto-dev zlib-dev \
16 ncurses-dev automake autoconf libtool"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./autogen.sh
22 ./configure --prefix=/usr --sysconfdir=/etc \
23 --enable-compile-warnings=error &&
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $install/usr/bin $fs/usr
33 }
35 post_install()
36 {
37 if ! grep ^DROPBEAR_OPTIONS "$1/etc/daemons.conf" | grep -q -- -a; then
38 cat <<EOT
39 The mosh server needs dropbear to allow connections to forwarded ports
40 from any host. Nothing to do if you are using OpenSSH or you plan
41 to use the mosh client only.
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 }