wok-next view mosh/receipt @ rev 20523
libnsgif: add missing stuff
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 23 15:16:45 2018 +0200 (2018-03-23) |
parents | e6615350078d |
children | 757d032c55c7 |
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 openssl zlib ncurses ssh"
15 BUILD_DEPENDS="protobuf-dev openssl-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 }