wok-next diff sshttp/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 580f079006a8 |
children | d5aab818505e |
line diff
1.1 --- a/sshttp/receipt Sun Oct 22 18:48:45 2017 +0200 1.2 +++ b/sshttp/receipt Sat May 12 05:17:48 2018 +0300 1.3 @@ -1,40 +1,40 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="sshttp" 1.8 VERSION="0-35s2" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="hiding a SSH server behind a HTTP server." 1.11 +SHORT_DESC="Hiding a SSH server behind a HTTP server" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="BSD" 1.14 +WEB_SITE="https://github.com/stealth/$PACKAGE" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="https://github.com/stealth/$PACKAGE" 1.18 WGET_URL="$WEB_SITE/archive/$TARBALL" 1.19 -TAGS="ssh" 1.20 1.21 -BUILD_DEPENDS="wget libcap libcap-dev" 1.22 -DEPENDS="libcap gcc-lib-base" 1.23 +BUILD_DEPENDS="libcap-dev" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 - make && cp README* $WOK/$PACKAGE/description.txt 1.29 +compile_rules() { 1.30 + make && 1.31 + install -Dm 755 $src/sshttpd $install/usr/sbin/sshttpd 1.32 } 1.33 1.34 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.35 -genpkg_rules() 1.36 -{ 1.37 - mkdir -p $fs/usr/sbin 1.38 - cp -a $src/sshttpd $fs/usr/sbin 1.39 +genpkg_rules() { 1.40 + copy @std 1.41 + DEPENDS="libcap gcc-lib-base" 1.42 + TAGS="ssh" 1.43 } 1.44 1.45 -# Pre and post install commands for Tazpkg. 1.46 -post_install() 1.47 -{ 1.48 - [ "$1" ] || zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT 1.49 +post_install() { 1.50 + [ -n "$1" ] || 1.51 + zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || 1.52 + cat <<EOT 1.53 1.54 -CONFIG_NETFILTER_TPROXY not found in /proc/config.gz 1.55 -sshttp needs Linux IP_TRANSPARENT feature to work. 1.56 -You should rebuild your kernel with a new configuration. 1.57 + .----------------------------------------------------------. 1.58 + | CONFIG_NETFILTER_TPROXY not found in /proc/config.gz | 1.59 + |----------------------------------------------------------| 1.60 + | sshttp needs Linux IP_TRANSPARENT feature to work. | 1.61 + | You should rebuild your kernel with a new configuration. | 1.62 + '----------------------------------------------------------' 1.63 1.64 EOT 1.65 }