wok-next annotate shellinabox/receipt @ rev 20604

More fix libtool.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 13:15:41 2018 +0300 (2018-04-19)
parents c75265fb6c4b
children d5aab818505e
rev   line source
al@20604 1 # SliTaz package receipt v2.
pascal@8253 2
pascal@8253 3 PACKAGE="shellinabox"
pascal@18867 4 VERSION="2.14"
pascal@8253 5 CATEGORY="network"
al@20604 6 SHORT_DESC="Web based AJAX terminal emulator"
pascal@8253 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15587 8 LICENSE="GPL2"
al@20604 9 WEB_SITE="https://code.google.com/archive/p/shellinabox/"
al@20604 10
pascal@8253 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20604 12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shellinabox/$TARBALL"
pascal@15587 13
pascal@8253 14 BUILD_DEPENDS="zlib-dev"
pascal@8253 15
al@20604 16 compile_rules() {
al@20604 17 ./configure $CONFIGURE_ARGS &&
al@20604 18 fix libtool &&
pascal@8253 19 make &&
al@20604 20 make DESTDIR=$DESTDIR install || return 1
al@20604 21
al@20604 22 mkdir -p \
al@20604 23 $install/usr/share/shellinabox/ \
al@20604 24 $install/etc/init.d/
al@20604 25 cp $install/usr/share/doc/shellinabox/*black*.css $install/usr/share/shellinabox/
al@20604 26 cp $stuff/*.css $install/usr/share/shellinabox/
al@20604 27 cp $stuff/shellinabox $install/etc/init.d/
pascal@8253 28 }
pascal@8253 29
al@20604 30 genpkg_rules() {
al@20604 31 copy @std
al@20604 32 DEPENDS="zlib"
al@20604 33 SUGGESTED="ssh knock"
al@20604 34 TAGS="web application"
pascal@8253 35 }
pascal@18869 36
pascal@18869 37 # We stop the server by default in case of upgarde.
al@20604 38 pre_install() {
al@20604 39 [ -z "$1" ] && [ -f /etc/init.d/shellinabox ] && /etc/init.d/shellinabox stop
pascal@18869 40 }
pascal@18869 41
al@20604 42 post_install() {
al@20604 43 [ "$1" ] || /etc/init.d/shellinabox start
pascal@18869 44 }
pascal@18869 45
al@20604 46 pre_remove() {
al@20604 47 [ "$1" ] || /etc/init.d/shellinabox stop
pascal@18869 48 }