wok-6.x view shellinabox/receipt @ rev 25042

Up lzsa (1.3.12), zstd (1.5.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 01 08:14:05 2022 +0000 (2022-06-01)
parents ab750d4cb0a2
children
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*}/commits/master 2>/dev/null | \
22 sed '/ version /!d;s|.*version ||;s|<.*||;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 }