wok diff squidguard/receipt @ rev 24985

Add python-future
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:58 2022 +0000 (2022-05-10)
parents be2ab6ab8f7e
children 8e505f99deb3
line diff
     1.1 --- a/squidguard/receipt	Mon Mar 11 12:28:08 2019 +0100
     1.2 +++ b/squidguard/receipt	Tue May 10 07:46:58 2022 +0000
     1.3 @@ -8,11 +8,18 @@
     1.4  LICENSE="GPL"
     1.5  SOURCE="squidGuard"
     1.6  TARBALL="$SOURCE-$VERSION.tar.gz"
     1.7 -WEB_SITE="https://web.archive.org/web/20190123164915/http://www.squidguard.org/"
     1.8 +WEB_SITE="http://www.squidguard.org/"
     1.9  WGET_URL="${WEB_SITE}Downloads/$TARBALL"
    1.10  DEPENDS="squid libdb"
    1.11  BUILD_DEPENDS="db-dev"
    1.12  
    1.13 +# What is the latest version available today?
    1.14 +current_version()
    1.15 +{
    1.16 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    1.17 +	sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    1.18 +}
    1.19 +
    1.20  # Rules to configure and make the package.
    1.21  compile_rules()
    1.22  {