wok view shellinabox/receipt @ rev 23973

Up openconnect (8.10), openexr (2.5.3), openldap (2.4.55), openssh (8.4p1), openvswitch (2.14.0), phpmyadmin (5.0.4), rust (1.47.0), shellinabox (2.21)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 28 12:04:50 2020 +0000 (2020-10-28)
parents 4c206553708a
children 05c8d8d9d934
line source
1 # SliTaz package receipt.
3 PACKAGE="shellinabox"
4 VERSION="2.21"
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 }