wok-current annotate shellinabox/receipt @ rev 19952

Add urbackup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 08 13:18:44 2017 +0200 (2017-05-08)
parents d32cd5bcfcf1
children 8dd8bab3f0ca
rev   line source
pascal@8253 1 # SliTaz package receipt.
pascal@8253 2
pascal@8253 3 PACKAGE="shellinabox"
pascal@18867 4 VERSION="2.14"
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@8253 10 WEB_SITE="http://$PACKAGE.googlecode.com/"
pascal@8253 11 WGET_URL="${WEB_SITE}files/$TARBALL"
pascal@15587 12 TAGS="web application"
pascal@15587 13
pascal@8253 14 DEPENDS="zlib"
pascal@8253 15 BUILD_DEPENDS="zlib-dev"
pascal@18869 16 SUGGESTED="ssh knock"
pascal@8253 17
pascal@8253 18 # Rules to configure and make the package.
pascal@8253 19 compile_rules()
pascal@8253 20 {
pascal@8254 21 ./configure --prefix=/usr \
pascal@18869 22 --mandir=/usr/share/man \
pascal@18869 23 $CONFIGURE_ARGS &&
pascal@8253 24 make &&
pascal@15587 25 make DESTDIR=$DESTDIR install
pascal@8253 26 }
pascal@8253 27
pascal@8253 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@8253 29 genpkg_rules()
pascal@8253 30 {
pascal@18869 31 mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
pascal@15587 32 cp -a $install/usr/bin $fs/usr
pascal@18869 33 cp $install/usr/share/doc/shellinabox/*black*.css $fs/usr/share/shellinabox
pascal@18869 34 cp $stuff/*.css $fs/usr/share/shellinabox
pascal@18869 35 cp $stuff/shellinabox $fs/etc/init.d/
pascal@8253 36 }
pascal@18869 37
pascal@18869 38 # Pre and post install commands for Tazpkg.
pascal@18869 39 # We stop the server by default in case of upgarde.
pascal@18869 40 pre_install()
pascal@18869 41 {
pascal@18869 42 [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
pascal@18869 43 }
pascal@18869 44
pascal@18869 45 post_install()
pascal@18869 46 {
pascal@18869 47 [ "$1" ] || /etc/init.d/$PACKAGE start
pascal@18869 48 }
pascal@18869 49
pascal@18869 50 pre_remove()
pascal@18869 51 {
pascal@18869 52 [ "$1" ] || /etc/init.d/$PACKAGE stop
pascal@18869 53 }