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