wok diff nginx-extras/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | 2e9639a37ee1 |
children | b410cca81eae |
line diff
1.1 --- a/nginx-extras/receipt Wed Mar 25 08:38:30 2020 +0100 1.2 +++ b/nginx-extras/receipt Sat Feb 12 11:42:56 2022 +0000 1.3 @@ -9,7 +9,7 @@ 1.4 WEB_SITE="http://nginx.org/" 1.5 1.6 TARBALL="nginx-$VERSION.tar.gz" 1.7 -WGET_URL="${WEB_SITE}download//$TARBALL" 1.8 +WGET_URL="${WEB_SITE}download/$TARBALL" 1.9 1.10 PROVIDE="lighttpd" 1.11 CONFLICT="nginx" 1.12 @@ -20,6 +20,13 @@ 1.13 1.14 CONFIG_FILES="/etc/nginx" 1.15 1.16 +# What is the latest version available today? 1.17 +current_version() 1.18 +{ 1.19 + wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.20 + sed "/latest/d;/nginx-/!d;/tar/!d;s|.*nginx-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.21 +} 1.22 + 1.23 # Rules to configure and make the package. 1.24 compile_rules() 1.25 {