wok-next view shellinabox/receipt @ rev 21527
updated bootchart (0.9 -> 1.20)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 19 15:06:45 2020 +0100 (2020-06-19) |
parents | 71c5213b8b1d |
children |
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 }