wok-current view shellinabox/receipt @ rev 24238

updated perl-mime-base64 (3.15 -> 3.16)
author Hans-G?nter Theisgen
date Sun Jan 02 07:16:25 2022 +0100 (2022-01-02)
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 }