wok diff nagios/receipt @ rev 24889

grub2: sed command corrected
author Hans-G?nter Theisgen
date Sat Apr 02 17:34:21 2022 +0100 (2022-04-02)
parents eb5518b1b094
children c145e26c3fc5
line diff
     1.1 --- a/nagios/receipt	Tue Jun 16 20:15:47 2020 +0000
     1.2 +++ b/nagios/receipt	Sat Apr 02 17:34:21 2022 +0100
     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  {