wok view shellinabox/receipt @ rev 20672

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 24 14:51:04 2019 +0100 (2019-01-24)
parents c75265fb6c4b
children 04434444ef20
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="https://code.google.com/archive/p/shellinabox/"
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 }