wok-next annotate sshttp/receipt @ rev 20846
mingw32-gcc: fix CFLAGS, CXXFLAGS as it is not recent GCC and it don't understand something
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 23 13:59:48 2018 +0300 (2018-06-23) |
parents | 580f079006a8 |
children | d5aab818505e |
rev | line source |
---|---|
al@20491 | 1 # SliTaz package receipt v2. |
pascal@13031 | 2 |
pascal@13031 | 3 PACKAGE="sshttp" |
pascal@20037 | 4 VERSION="0-35s2" |
pascal@13031 | 5 CATEGORY="network" |
al@20491 | 6 SHORT_DESC="Hiding a SSH server behind a HTTP server" |
pascal@13031 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15593 | 8 LICENSE="BSD" |
al@20491 | 9 WEB_SITE="https://github.com/stealth/$PACKAGE" |
al@20491 | 10 |
pascal@13031 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20037 | 12 WGET_URL="$WEB_SITE/archive/$TARBALL" |
pascal@15593 | 13 |
al@20491 | 14 BUILD_DEPENDS="libcap-dev" |
pascal@13031 | 15 |
al@20491 | 16 compile_rules() { |
al@20491 | 17 make && |
al@20491 | 18 install -Dm 755 $src/sshttpd $install/usr/sbin/sshttpd |
pascal@13031 | 19 } |
pascal@13031 | 20 |
al@20491 | 21 genpkg_rules() { |
al@20491 | 22 copy @std |
al@20491 | 23 DEPENDS="libcap gcc-lib-base" |
al@20491 | 24 TAGS="ssh" |
pascal@13031 | 25 } |
pascal@13031 | 26 |
al@20491 | 27 post_install() { |
al@20491 | 28 [ -n "$1" ] || |
al@20491 | 29 zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || |
al@20491 | 30 cat <<EOT |
pascal@13040 | 31 |
al@20491 | 32 .----------------------------------------------------------. |
al@20491 | 33 | CONFIG_NETFILTER_TPROXY not found in /proc/config.gz | |
al@20491 | 34 |----------------------------------------------------------| |
al@20491 | 35 | sshttp needs Linux IP_TRANSPARENT feature to work. | |
al@20491 | 36 | You should rebuild your kernel with a new configuration. | |
al@20491 | 37 '----------------------------------------------------------' |
pascal@13040 | 38 |
pascal@13040 | 39 EOT |
pascal@13040 | 40 } |
pascal@13040 | 41 |
pascal@13040 | 42 # http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html |