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