diff -r eb75c08db691 -r 17a9b769f563 check_zpush.pl --- a/check_zpush.pl Tue Jul 05 09:42:12 2011 +0200 +++ b/check_zpush.pl Thu Jun 07 12:39:39 2012 +0200 @@ -43,10 +43,10 @@ my $ME = basename $0; my $NAME = "Z-PUSH"; -my $VERSION = "0.2"; +my $VERSION = "0.3"; my %opt = ( - url => "http://developer.berlios.de/project/showfiles.php?group_id=8963", + url => "http://z-push.sourceforge.net/soswp/index.php?pages_id=39&t=Download", file => "/var/www/z-push/version.php" ); @@ -109,11 +109,7 @@ push @webside, split( "\n", $side ); my $zpb = undef; foreach (@webside) { - if ( $zpb || m|

Z-Push Backend

| ) { - $zpb = 1; - m|

Z-Push Backend/older releases

| and last; - m|>z-push-(?[\d.-]+).tar.gz<| and return $+{version}; - } + /z-push-(?[\d.-]+).tar.gz"/ and return $+{version}; } say "$NAME CRITICAL: Can't find last version." and exit $ERRORS{CRITICAL}; @@ -156,7 +152,7 @@ =item B<-u>|B<--url> -Download I with z-push release information. (default: http://developer.berlios.de/project/showfiles.php?group_id=8963) +Download I with z-push release information. (default: http://z-push.sourceforge.net/soswp/index.php?pages_id=39&t=Download) =item B<-f>|B<--file> @@ -182,7 +178,7 @@ =head1 VERSION -This man page is current for version 0.2 of B. +This man page is current for version 0.3 of B. =head1 AUTHOR