wok-current view sshttp/receipt @ rev 24345
azpainter: added build dependency tiff-dev
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 02 09:55:35 2022 +0100 (2022-02-02) |
parents | 737f4f020b9e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="sshttp"
4 VERSION="0.35s2"
5 CATEGORY="network"
6 TAGS="ssh"
7 SHORT_DESC="Hiding a SSH server behind a HTTP server."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://github.com/stealth/$PACKAGE"
12 TARBALL="$PACKAGE-${VERSION/./-}.tar.gz"
13 WGET_URL="$WEB_SITE/archive/$TARBALL"
15 DEPENDS="gcc83-lib-base libcap"
16 BUILD_DEPENDS="gcc83 libcap-dev libidn"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/sshttp-splice-\(.*\).tar.*|\1|;s|-|.|g;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|CXX=c++|CXX=gcc-83|' Makefile
29 make LIBS="-lstdc++ -lcap"
30 # cp README* $WOK/$PACKAGE/description.txt
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/sbin
37 cp -a $src/sshttpd $fs/usr/sbin
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 [ "$1" ] ||
44 zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
46 CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
47 sshttp needs Linux IP_TRANSPARENT feature to work.
48 You should rebuild your kernel with a new configuration.
50 EOT
51 }
53 # http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html