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