wok-current annotate sshttp/receipt @ rev 13240

Move from undigest: qemacs-dev
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 14 13:39:18 2012 +0200 (2012-08-14)
parents f2870c4a7a92
children 3b4e4318134e
rev   line source
pascal@13031 1 # SliTaz package receipt.
pascal@13031 2
pascal@13031 3 PACKAGE="sshttp"
pascal@13031 4 VERSION="0-27"
pascal@13031 5 CATEGORY="network"
pascal@13031 6 SHORT_DESC="hiding a SSH server behind a HTTP server."
pascal@13031 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@13031 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13031 9 WEB_SITE="https://github.com/stealth/$PACKAGE"
pascal@13031 10 WGET_URL="$WEB_SITE/tarball/$PACKAGE-$VERSION"
pascal@13032 11 BUILD_DEPENDS="wget libcap libcap-dev"
pascal@13031 12 DEPENDS="libcap gcc-lib-base"
pascal@13031 13
pascal@13031 14 # Rules to configure and make the package.
pascal@13031 15 compile_rules()
pascal@13031 16 {
pascal@13031 17 cd $src
pascal@13031 18 make && cp README $WOK/$PACKAGE/description.txt
pascal@13031 19 }
pascal@13031 20
pascal@13031 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13031 22 genpkg_rules()
pascal@13031 23 {
pascal@13031 24 mkdir -p $fs/usr/sbin
pascal@13031 25 cp -a $src/sshttpd $fs/usr/sbin
pascal@13031 26 }
pascal@13031 27
pascal@13040 28 # Pre and post install commands for Tazpkg.
pascal@13040 29 post_install()
pascal@13040 30 {
pascal@13040 31 zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
pascal@13040 32
pascal@13040 33 CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
pascal@13040 34 sshttp needs Linux IP_TRANSPARENT feature to work.
pascal@13040 35 You should rebuild your kernel with a new configuration.
pascal@13040 36
pascal@13040 37 EOT
pascal@13040 38 }
pascal@13040 39
pascal@13040 40 # http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html