wok-next view shellinabox/receipt @ rev 19980
Up libva (1.8.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 18 03:39:08 2017 +0300 (2017-10-18) |
parents | d32cd5bcfcf1 |
children | 10df65db91ad |
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 }