wok annotate httping/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (2022-09-28)
parents af8d823a3077
children 73f36875e5a7
rev   line source
paul@17688 1 # SliTaz package receipt.
paul@17688 2
paul@17688 3 PACKAGE="httping"
paul@19471 4 VERSION="2.5"
paul@17688 5 CATEGORY="network"
paul@17688 6 SHORT_DESC="Httping is like 'ping' but for http-requests."
paul@17688 7 MAINTAINER="paul@slitaz.org"
paul@17688 8 LICENSE="GPL2"
paul@17688 9 WEB_SITE="http://www.vanheusden.com/httping/"
paul@17688 10 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@24978 11 WGET_URL="https://critical.ch/distfiles/$TARBALL"
paul@17688 12
paul@17688 13 DEPENDS="ncurses fftw openssl"
paul@17688 14 BUILD_DEPENDS="ncurses-dev fftw-dev gettext openssl-dev"
paul@17688 15
pascal@24445 16 # What is the latest version available today?
pascal@24445 17 current_version()
pascal@24445 18 {
pascal@24445 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24445 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
pascal@24445 21 }
pascal@24445 22
paul@17688 23 # Rules to configure and make the package.
paul@17688 24 compile_rules()
paul@17688 25 {
paul@17688 26 #--with-tfo force enable tcp fast open
pascal@17690 27 ./configure \
pascal@17689 28 --with-ncurses \
pascal@17689 29 --with-openssl \
pascal@17690 30 --with-fftw3 &&
pascal@17689 31 make &&
paul@17688 32 make DESTDIR=$DESTDIR install
paul@17688 33 }
paul@17688 34
paul@17688 35 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@17688 36 genpkg_rules()
paul@17688 37 {
paul@17688 38 mkdir -p $fs/usr
paul@17688 39 cp -a $install/usr/bin $fs/usr
paul@17688 40 cp -a $install/usr/share/ $fs/usr
paul@17688 41 rm -r $fs/usr/share/man
paul@17688 42 }