wok diff nagios-plugins/receipt @ rev 25811
Up rsync (3.4.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 17 16:05:26 2025 +0000 (7 days ago) |
parents | afc372dd794f |
children |
line diff
1.1 --- a/nagios-plugins/receipt Sat Apr 23 14:39:05 2022 +0100 1.2 +++ b/nagios-plugins/receipt Fri Jan 17 16:05:26 2025 +0000 1.3 @@ -16,10 +16,11 @@ 1.4 BUILD_DEPENDS="automake file libmysqlclient mysql-dev openldap-dev openssl-dev 1.5 procps radiusclient-ng radiusclient-ng-dev" 1.6 1.7 +# What is the latest version available today? 1.8 current_version() 1.9 { 1.10 - wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 1.11 - sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.12 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 1.13 + sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q' 1.14 } 1.15 1.16 # Rules to configure and make the package.