SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "sshttp"

# SliTaz package receipt.

PACKAGE="sshttp"
VERSION="0.35s2"
CATEGORY="network"
TAGS="ssh"
SHORT_DESC="Hiding a SSH server behind a HTTP server."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://github.com/stealth/$PACKAGE"

TARBALL="$PACKAGE-${VERSION/./-}.tar.gz"
WGET_URL="$WEB_SITE/archive/$TARBALL"

DEPENDS="gcc83-lib-base libcap"
BUILD_DEPENDS="gcc83 libcap-dev libidn"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/sshttp-splice-\(.*\).tar.*|\1|;s|-|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|CXX=c++|CXX=gcc-83|' Makefile

    make    LIBS="-lstdc++ -lcap"
#    cp README* $WOK/$PACKAGE/description.txt
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/sbin
    cp -a $src/sshttpd    $fs/usr/sbin
}

# Pre and post install commands for Tazpkg.
post_install()
{
    [ "$1" ] ||
    zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT

CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
sshttp needs Linux IP_TRANSPARENT feature to work.
You should rebuild your kernel with a new configuration.

EOT
}

# http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)