wok-current view shellinabox/receipt @ rev 19277
get-vivaldi: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 05 17:03:57 2016 +0200 (2016-07-05) |
parents | d32cd5bcfcf1 |
children | 8dd8bab3f0ca |
line source
1 # SliTaz package receipt.
3 PACKAGE="shellinabox"
4 VERSION="2.14"
5 CATEGORY="network"
6 SHORT_DESC="Ajax web based terminal emulator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.googlecode.com/"
11 WGET_URL="${WEB_SITE}files/$TARBALL"
12 TAGS="web application"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="zlib-dev"
16 SUGGESTED="ssh knock"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure --prefix=/usr \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
32 cp -a $install/usr/bin $fs/usr
33 cp $install/usr/share/doc/shellinabox/*black*.css $fs/usr/share/shellinabox
34 cp $stuff/*.css $fs/usr/share/shellinabox
35 cp $stuff/shellinabox $fs/etc/init.d/
36 }
38 # Pre and post install commands for Tazpkg.
39 # We stop the server by default in case of upgarde.
40 pre_install()
41 {
42 [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
43 }
45 post_install()
46 {
47 [ "$1" ] || /etc/init.d/$PACKAGE start
48 }
50 pre_remove()
51 {
52 [ "$1" ] || /etc/init.d/$PACKAGE stop
53 }