wok-current view sshttp/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 019a3082af67
children 737f4f020b9e
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*}/releases 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 &&
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" ] || zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
45 CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
46 sshttp needs Linux IP_TRANSPARENT feature to work.
47 You should rebuild your kernel with a new configuration.
49 EOT
50 }
52 # http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html