wok-6.x view sslh/receipt @ rev 24134
Up lzsa (1.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 28 18:03:20 2021 +0000 (2021-10-28) |
parents | 54b0f9995acb |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sslh"
4 VERSION="1.20"
5 CATEGORY="network"
6 SHORT_DESC="Accept HTTPS SSH OpenVPN Tinc & XMPP connections on the same port"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-v$VERSION.tar.gz"
10 WEB_SITE="http://www.rutschle.net/tech/sslh/README.html"
11 WGET_URL="https://github.com/yrutschle/sslh/archive/v$VERSION.tar.gz"
12 CONFIG_FILES="/etc/sslh.cfg"
13 TAGS="ssh vpn tunnel"
15 DEPENDS="libwrap libconfig libcap"
16 BUILD_DEPENDS="libwrap-dev libwrap libconfig-dev libcap-dev"
17 SUGGESTED="iptables"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tags.*tar/!d;s|.*tags/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|"ssl"|"tls"|' *.cfg
29 make USELIBCAP=1
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/sbin $fs/etc $fs/var/empty
36 mkdir -p $install/usr/share/man $install/usr/share/doc
37 cp -a $src/sslh-fork $fs/usr/sbin
38 cp -a $src/sslh-select $fs/usr/sbin
39 cp $src/basic.cfg $fs/etc/sslh.cfg
40 cp $src/sslh.8.gz $install/usr/share/man
41 cp $src/*.cfg $install/usr/share/doc
42 cp $src/README.md $install/usr/share/doc
43 }