# 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 <