SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "shellinabox"

# SliTaz package receipt.

PACKAGE="shellinabox"
VERSION="2.21"
GITHASH="4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361"
CATEGORY="network"
SHORT_DESC="Ajax web based terminal emulator."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/shellinabox/shellinabox"
WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
TAGS="web-application"

DEPENDS="zlib"
BUILD_DEPENDS="zlib-dev openssl-dev autoconf automake libtool"
SUGGESTED="ssh knock"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/commits/master 2>/dev/null | \
    sed '/ version /!d;s|.*version ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    autoreconf -i
    ./configure --prefix=/usr \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
    cp -a $install/usr/bin $fs/usr
    cp $src/shellinabox/*black*.css $fs/usr/share/shellinabox
    cp $stuff/*.css $fs/usr/share/shellinabox
    cp $stuff/shellinabox $fs/etc/init.d/
}

# Pre and post install commands for Tazpkg.
# We stop the server by default in case of upgarde.
pre_install()
{
    [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
}

post_install()
{
    [ "$1" ] || /etc/init.d/$PACKAGE start
}

pre_remove()
{
    [ "$1" ] || /etc/init.d/$PACKAGE stop
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)