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