wok-next view shellinabox/receipt @ rev 21448

updated shellinabox (2.14 -> 2.20)
author Hans-G?nter Theisgen
date Thu May 07 07:24:29 2020 +0100 (2020-05-07)
parents d5aab818505e
children a4ccc11f5097
line source
1 # SliTaz package receipt v2.
3 PACKAGE="shellinabox"
4 VERSION="2.20"
5 CATEGORY="network"
6 TAGS="web application"
7 SHORT_DESC="Web based AJAX terminal emulator"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/shellinabox/shellinabox"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shellinabox/$TARBALL"
14 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz
16 BUILD_DEPENDS="zlib-dev"
18 compile_rules()
19 {
20 ./configure $CONFIGURE_ARGS &&
21 fix libtool &&
22 make &&
23 make DESTDIR=$install install || return 1
25 mkdir -p $install/usr/share/shellinabox
26 mkdir -p $install/etc/init.d
28 cp $install/usr/share/doc/shellinabox/*black*.css $install/usr/share/shellinabox
29 cp $stuff/*.css $install/usr/share/shellinabox
30 cp $stuff/shellinabox $install/etc/init.d
31 }
33 genpkg_rules()
34 {
35 copy @std
36 DEPENDS="zlib"
37 SUGGESTED="ssh knock"
38 }
40 # We stop the server by default in case of upgrade.
41 pre_install()
42 {
43 [ -z "$1" ] && [ -f /etc/init.d/shellinabox ] &&
44 /etc/init.d/shellinabox stop
45 }
47 post_install()
48 {
49 [ "$1" ] || /etc/init.d/shellinabox start
50 }
52 pre_remove()
53 {
54 [ "$1" ] || /etc/init.d/shellinabox stop
55 }