wok-next view sshttp/receipt @ rev 15513

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