wok-next annotate sshttp/receipt @ rev 17302
fish: add deps, bdeps (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 31 09:13:15 2014 +0100 (2014-10-31) |
parents | 3b4e4318134e |
children | dfef8de3d270 |
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@15593 | 8 LICENSE="BSD" |
pascal@13031 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@13031 | 10 WEB_SITE="https://github.com/stealth/$PACKAGE" |
pascal@13031 | 11 WGET_URL="$WEB_SITE/tarball/$PACKAGE-$VERSION" |
pascal@17141 | 12 TAGS="ssh" |
pascal@15593 | 13 |
pascal@13032 | 14 BUILD_DEPENDS="wget libcap libcap-dev" |
pascal@13031 | 15 DEPENDS="libcap gcc-lib-base" |
pascal@13031 | 16 |
pascal@13031 | 17 # Rules to configure and make the package. |
pascal@13031 | 18 compile_rules() |
pascal@13031 | 19 { |
pascal@13031 | 20 cd $src |
pascal@13031 | 21 make && cp README $WOK/$PACKAGE/description.txt |
pascal@13031 | 22 } |
pascal@13031 | 23 |
pascal@13031 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13031 | 25 genpkg_rules() |
pascal@13031 | 26 { |
pascal@13031 | 27 mkdir -p $fs/usr/sbin |
pascal@13031 | 28 cp -a $src/sshttpd $fs/usr/sbin |
pascal@13031 | 29 } |
pascal@13031 | 30 |
pascal@13040 | 31 # Pre and post install commands for Tazpkg. |
pascal@13040 | 32 post_install() |
pascal@13040 | 33 { |
pascal@13040 | 34 zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT |
pascal@13040 | 35 |
pascal@13040 | 36 CONFIG_NETFILTER_TPROXY not found in /proc/config.gz |
pascal@13040 | 37 sshttp needs Linux IP_TRANSPARENT feature to work. |
pascal@13040 | 38 You should rebuild your kernel with a new configuration. |
pascal@13040 | 39 |
pascal@13040 | 40 EOT |
pascal@13040 | 41 } |
pascal@13040 | 42 |
pascal@13040 | 43 # http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html |