wok diff perdition/receipt @ rev 24436
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 13:09:42 2022 +0000 (2022-02-13) |
parents | 113d38a1e4e9 |
children |
line diff
1.1 --- a/perdition/receipt Sat Jun 01 16:43:31 2019 +0100 1.2 +++ b/perdition/receipt Sun Feb 13 13:09:42 2022 +0000 1.3 @@ -6,7 +6,7 @@ 1.4 SHORT_DESC="Fully featured POP3 and IMAP4 proxy server." 1.5 MAINTAINER="pascal.bellard@slitaz.org" 1.6 LICENSE="GPL2" 1.7 -WEB_SITE="http://www.vergenet.net/linux/$PACKAGE" 1.8 +WEB_SITE="https://projects.horms.net/projects/perdition" 1.9 1.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.11 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" 1.12 @@ -18,6 +18,13 @@ 1.13 CONFIG_FILES="/etc/perdition" 1.14 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?" 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 '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q 1.21 +} 1.22 + 1.23 # Rules to configure and make the package. 1.24 compile_rules() 1.25 {