wok-6.x view shellinabox/receipt @ rev 24352
babl-dev: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 10:29:52 2022 +0000 (2022-02-03) |
parents | 05c8d8d9d934 |
children | 241fb98cab1c |
line source
1 # SliTaz package receipt.
3 PACKAGE="shellinabox"
4 VERSION="2.21"
5 GITHASH="4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361"
6 CATEGORY="network"
7 SHORT_DESC="Ajax web based terminal emulator."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/shellinabox/shellinabox"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
13 TAGS="web-application"
15 DEPENDS="zlib"
16 BUILD_DEPENDS="zlib-dev openssl-dev autoconf automake libtool"
17 SUGGESTED="ssh knock"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 autoreconf -i
29 ./configure --prefix=/usr \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
40 cp -a $install/usr/bin $fs/usr
41 cp $src/shellinabox/*black*.css $fs/usr/share/shellinabox
42 cp $stuff/*.css $fs/usr/share/shellinabox
43 cp $stuff/shellinabox $fs/etc/init.d/
44 }
46 # Pre and post install commands for Tazpkg.
47 # We stop the server by default in case of upgarde.
48 pre_install()
49 {
50 [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
51 }
53 post_install()
54 {
55 [ "$1" ] || /etc/init.d/$PACKAGE start
56 }
58 pre_remove()
59 {
60 [ "$1" ] || /etc/init.d/$PACKAGE stop
61 }