wok-next annotate mosh/receipt @ rev 20142
vlc: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 11:06:02 2017 +0100 (2017-11-01) |
parents | ff4ffcd5e1db |
children | e6615350078d |
rev | line source |
---|---|
pascal@15179 | 1 # SliTaz package receipt. |
pascal@15179 | 2 |
pascal@15179 | 3 PACKAGE="mosh" |
pascal@19962 | 4 VERSION="1.3.2" |
pascal@15179 | 5 CATEGORY="security" |
pascal@15179 | 6 SHORT_DESC="A Openbsd Secure Shell remplacement." |
pascal@15179 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15179 | 8 LICENSE="GPL3" |
pascal@15179 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15179 | 10 WEB_SITE="http://mosh.mit.edu/" |
pascal@15179 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15179 | 12 TAGS="ssh" |
pascal@15179 | 13 |
pascal@19952 | 14 DEPENDS="gcc-lib-base perl protobuf libssl libcrypto zlib ncurses ssh" |
pascal@19962 | 15 BUILD_DEPENDS="pkg-config protobuf-dev openssl-dev libcrypto-dev zlib-dev \ |
pascal@19962 | 16 ncurses-dev automake autoconf libtool" |
pascal@15179 | 17 |
pascal@15179 | 18 # Rules to configure and make the package. |
pascal@15179 | 19 compile_rules() |
pascal@15179 | 20 { |
pascal@19962 | 21 ./autogen.sh |
pascal@15179 | 22 ./configure --prefix=/usr --sysconfdir=/etc \ |
pascal@15179 | 23 --enable-compile-warnings=error && |
pascal@15179 | 24 make && |
pascal@15179 | 25 make DESTDIR=$DESTDIR install |
pascal@15179 | 26 } |
pascal@15179 | 27 |
pascal@15179 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15179 | 29 genpkg_rules() |
pascal@15179 | 30 { |
pascal@15179 | 31 mkdir -p $fs/usr |
pascal@15179 | 32 cp -a $install/usr/bin $fs/usr |
pascal@15179 | 33 } |
pascal@18178 | 34 |
pascal@18178 | 35 post_install() |
pascal@18178 | 36 { |
pascal@18730 | 37 if ! grep ^DROPBEAR_OPTIONS "$1/etc/daemons.conf" | grep -q -- -a; then |
pascal@18178 | 38 cat <<EOT |
pascal@18178 | 39 The mosh server needs dropbear to allow connections to forwarded ports |
pascal@18178 | 40 from any host. Nothing to do if you are using OpenSSH or you plan |
pascal@18178 | 41 to use the mosh client only. |
pascal@18178 | 42 EOT |
pascal@18178 | 43 echo -n "Add -a for DROPBEAR_OPTIONS in /etc/daemons.conf now ?" |
pascal@18178 | 44 read -t 30 answer |
pascal@18178 | 45 [ "$answer" == "y" ] && |
pascal@18730 | 46 sed -i 's/^DROPBEAR_OPTIONS="/&-a /' "$1/etc/daemons.conf" && |
pascal@18178 | 47 [ -z "$1" ] && /etc/init.d/dropbear restart |
pascal@18178 | 48 fi |
pascal@18469 | 49 true |
pascal@18178 | 50 } |