wok-next view shellinabox/receipt @ rev 20715

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