wok diff libdaq/receipt @ rev 24937

Up iptraf (3.0.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 14 08:53:05 2022 +0000 (2022-04-14)
parents 83b97236db32
children 22471cbea549
line diff
     1.1 --- a/libdaq/receipt	Sat Feb 12 11:42:56 2022 +0000
     1.2 +++ b/libdaq/receipt	Thu Apr 14 08:53:05 2022 +0000
     1.3 @@ -6,11 +6,12 @@
     1.4  SHORT_DESC="Data Acquisition library for packet I/O."
     1.5  MAINTAINER="slaxemulator@gmail.com"
     1.6  LICENSE="GPL2"
     1.7 -WEB_SITE="https://www.snort.org/"
     1.8 +WEB_SITE="https://github.com/snort3/libdaq"
     1.9  
    1.10  SOURCE="daq"
    1.11  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.12  WGET_URL="${WEB_SITE}downloads/snort/$TARBALL"
    1.13 +#WGET_URL="https://github.com/snort3/libdaq/archive/refs/tags/v$VERSION.tar.gz"
    1.14  
    1.15  DEPENDS="libpcap"
    1.16  BUILD_DEPENDS="automake bison flex libpcap-dev"
    1.17 @@ -18,8 +19,8 @@
    1.18  # What is the latest version available today?
    1.19  current_version()
    1.20  {
    1.21 -	wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
    1.22 -	sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-v\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    1.23 +	wget -O - https://github.com/snort3/libdaq/releases 2>/dev/null | \
    1.24 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    1.25  }
    1.26  
    1.27  # Rules to configure and make the package.