wok annotate stunnel/receipt @ rev 24492
updated dnstop (20121017 -> 20210329)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 19 07:41:52 2022 +0100 (2022-02-19) |
parents | 98eeff491f3e |
children | 1805f71c5d9f |
rev | line source |
---|---|
pascal@20711 | 1 # SliTaz package receipt. |
pascal@20711 | 2 |
pascal@20711 | 3 PACKAGE="stunnel" |
Hans-G?nter@23676 | 4 VERSION="5.56" |
pascal@20711 | 5 CATEGORY="network" |
Hans-G?nter@21979 | 6 SHORT_DESC="A proxy designed to add TLS encryption functionality to existing clients and servers." |
pascal@20711 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20711 | 8 LICENSE="GPL2" |
Hans-G?nter@21979 | 9 WEB_SITE="https://www.stunnel.org/" |
Hans-G?nter@21979 | 10 |
pascal@20711 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20711 | 12 WGET_URL="${WEB_SITE}downloads/$TARBALL" |
pascal@20711 | 13 |
pascal@20711 | 14 DEPENDS="libssl" |
Hans-G?nter@21979 | 15 BUILD_DEPENDS="libwrap-dev openssl-dev" |
Hans-G?nter@21979 | 16 |
Hans-G?nter@21979 | 17 CONFIG_FILES="/etc/stunnel/stunnel.conf" |
pascal@20711 | 18 |
pascal@24427 | 19 # What is the latest version available today? |
pascal@24427 | 20 current_version() |
pascal@24427 | 21 { |
pascal@24427 | 22 wget -O - ${WGET_URL%/*}.html 2>/dev/null | \ |
pascal@24427 | 23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 24 } |
pascal@24427 | 25 |
pascal@20711 | 26 # Rules to configure and make the package. |
pascal@20711 | 27 compile_rules() |
pascal@20711 | 28 { |
Hans-G?nter@21979 | 29 ./configure \ |
Hans-G?nter@21979 | 30 --prefix=/usr \ |
Hans-G?nter@21979 | 31 --sysconfdir=/etc \ |
Hans-G?nter@21979 | 32 --localstatedir=/var \ |
Hans-G?nter@21979 | 33 --mandir=/usr/share/man \ |
pascal@20711 | 34 $CONFIGURE_ARGS && |
pascal@20711 | 35 make && |
pascal@20711 | 36 make DESTDIR=$DESTDIR install |
pascal@20711 | 37 } |
pascal@20711 | 38 |
pascal@20711 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20711 | 40 genpkg_rules() |
pascal@20711 | 41 { |
Hans-G?nter@21979 | 42 mkdir -p $fs/usr |
Hans-G?nter@21979 | 43 mkdir -p $fs/etc/stunnel |
Hans-G?nter@21979 | 44 |
Hans-G?nter@21979 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21979 | 46 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21979 | 47 cp -a $install/var $fs |
Hans-G?nter@21979 | 48 cp -a $install/etc/stunnel/stunnel.conf-sample $fs/etc/stunnel/stunnel.conf |
pascal@20711 | 49 } |