wok-6.x view shellinabox/receipt @ rev 23992
linld: skip xmm_alloc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 12 10:41:29 2020 +0000 (2020-12-12) |
parents | 848e2021d813 |
children | ab750d4cb0a2 |
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 autoreconf -i
23 ./configure --prefix=/usr \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
34 cp -a $install/usr/bin $fs/usr
35 cp $src/shellinabox/*black*.css $fs/usr/share/shellinabox
36 cp $stuff/*.css $fs/usr/share/shellinabox
37 cp $stuff/shellinabox $fs/etc/init.d/
38 }
40 # Pre and post install commands for Tazpkg.
41 # We stop the server by default in case of upgarde.
42 pre_install()
43 {
44 [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
45 }
47 post_install()
48 {
49 [ "$1" ] || /etc/init.d/$PACKAGE start
50 }
52 pre_remove()
53 {
54 [ "$1" ] || /etc/init.d/$PACKAGE stop
55 }