wok diff nagios/receipt @ rev 24940

f2c: add libf2c (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 16:39:27 2022 +0000 (2022-04-15)
parents eb5518b1b094
children c145e26c3fc5
line diff
     1.1 --- a/nagios/receipt	Tue Jun 16 20:15:47 2020 +0000
     1.2 +++ b/nagios/receipt	Fri Apr 15 16:39:27 2022 +0000
     1.3 @@ -16,6 +16,15 @@
     1.4  BUILD_DEPENDS="jpeg-dev libgd-dev libpng-dev libtool procps unzip"
     1.5  # busybox ps and unzip do not supply the required options
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://sourceforge.net/projects/nagios/files/ 2>/dev/null | \
    1.11 +	sed '/scope="row/!d;/nagios-/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    1.12 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    1.13 +	sed '/scope="row/!d;s|.*/nagios-||;s|.tar.*||;q'
    1.14 +}
    1.15 +
    1.16  # Rules to configure and make the package.
    1.17  compile_rules()
    1.18  {