wok view shellinabox/receipt @ rev 23621

updated ruby and ruby-dev (2.6.4 -> 2.7.1)
author Hans-G?nter Theisgen
date Tue Apr 14 15:51:31 2020 +0100 (2020-04-14)
parents 7f7bb07cd863
children 848e2021d813
line source
1 # SliTaz package receipt.
3 PACKAGE="shellinabox"
4 VERSION="2.20"
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://github.com/shellinabox/shellinabox"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
12 TAGS="web-application"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="zlib-dev openssl-dev autoconf automake libtool"
16 SUGGESTED="ssh knock"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 autoreconf -i
22 ./configure --prefix=/usr \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
33 cp -a $install/usr/bin $fs/usr
34 cp $src/shellinabox/*black*.css $fs/usr/share/shellinabox
35 cp $stuff/*.css $fs/usr/share/shellinabox
36 cp $stuff/shellinabox $fs/etc/init.d/
37 }
39 # Pre and post install commands for Tazpkg.
40 # We stop the server by default in case of upgarde.
41 pre_install()
42 {
43 [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
44 }
46 post_install()
47 {
48 [ "$1" ] || /etc/init.d/$PACKAGE start
49 }
51 pre_remove()
52 {
53 [ "$1" ] || /etc/init.d/$PACKAGE stop
54 }