check_zpush.pl
changeset 3 17a9b769f563
parent 2 eb75c08db691
--- 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|<h3>Z-Push Backend</h3>| ) {
-            $zpb = 1;
-            m|<h3>Z-Push Backend/older releases</h3>| and last;
-			m|>z-push-(?<version>[\d.-]+).tar.gz<| and return $+{version};
-        }
+		/z-push-(?<version>[\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<url> with z-push release information. (default: http://developer.berlios.de/project/showfiles.php?group_id=8963)
+Download I<url> 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<check_zpush>.
+This man page is current for version 0.3 of B<check_zpush>.
 
 =head1 AUTHOR