wok view sshttp/receipt @ rev 23072

apr: no atomic builtins for apache
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 10 11:15:48 2020 +0100 (2020-03-10)
parents 91c00c379caa
children 5ea0ce1cecc0
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's|CXX=c++|CXX=gcc-83|' Makefile
23 make &&
24 cp README* $WOK/$PACKAGE/description.txt
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/sbin
31 cp -a $src/sshttpd $fs/usr/sbin
32 }
34 # Pre and post install commands for Tazpkg.
35 post_install()
36 {
37 [ "$1" ] || zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
39 CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
40 sshttp needs Linux IP_TRANSPARENT feature to work.
41 You should rebuild your kernel with a new configuration.
43 EOT
44 }
46 # http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html