wok annotate shellinabox/receipt @ rev 20716

Up shellinabox (2.20)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 07 11:11:40 2019 +0100 (2019-02-07)
parents 04434444ef20
children 4c206553708a
rev   line source
pascal@8253 1 # SliTaz package receipt.
pascal@8253 2
pascal@8253 3 PACKAGE="shellinabox"
pascal@20716 4 VERSION="2.20"
pascal@8253 5 CATEGORY="network"
pascal@8253 6 SHORT_DESC="Ajax web based terminal emulator."
pascal@8253 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15587 8 LICENSE="GPL2"
pascal@8253 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20716 10 WEB_SITE="http://$PACKAGE.googlecode.com/"
pascal@8253 11 WGET_URL="${WEB_SITE}files/$TARBALL"
pascal@20716 12 WGET_URL="https://github.com/shellinabox/shellinabox/archive/v$VERSION.tar.gz"
pascal@20716 13 TAGS="web-application"
pascal@15587 14
pascal@8253 15 DEPENDS="zlib"
pascal@20716 16 BUILD_DEPENDS="zlib-dev openssl-dev autoconf automake libtool"
pascal@18869 17 SUGGESTED="ssh knock"
pascal@8253 18
pascal@8253 19 # Rules to configure and make the package.
pascal@8253 20 compile_rules()
pascal@8253 21 {
pascal@20716 22 autoreconf -i
pascal@8254 23 ./configure --prefix=/usr \
pascal@18869 24 --mandir=/usr/share/man \
pascal@18869 25 $CONFIGURE_ARGS &&
pascal@8253 26 make &&
pascal@15587 27 make DESTDIR=$DESTDIR install
pascal@8253 28 }
pascal@8253 29
pascal@8253 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@8253 31 genpkg_rules()
pascal@8253 32 {
pascal@18869 33 mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
pascal@15587 34 cp -a $install/usr/bin $fs/usr
pascal@20716 35 cp $src/shellinabox/*black*.css $fs/usr/share/shellinabox
pascal@18869 36 cp $stuff/*.css $fs/usr/share/shellinabox
pascal@18869 37 cp $stuff/shellinabox $fs/etc/init.d/
pascal@8253 38 }
pascal@18869 39
pascal@18869 40 # Pre and post install commands for Tazpkg.
pascal@18869 41 # We stop the server by default in case of upgarde.
pascal@18869 42 pre_install()
pascal@18869 43 {
pascal@18869 44 [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
pascal@18869 45 }
pascal@18869 46
pascal@18869 47 post_install()
pascal@18869 48 {
pascal@18869 49 [ "$1" ] || /etc/init.d/$PACKAGE start
pascal@18869 50 }
pascal@18869 51
pascal@18869 52 pre_remove()
pascal@18869 53 {
pascal@18869 54 [ "$1" ] || /etc/init.d/$PACKAGE stop
pascal@18869 55 }