change download url and search string for stable release default tip
authorarnold
Thu, 07 Jun 2012 12:39:39 +0200
changeset 3 17a9b769f563
parent 2 eb75c08db691
change download url and search string for stable release
check_zpush.pl
debian/changelog
debian/control
--- 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
 
--- a/debian/changelog	Tue Jul 05 09:42:12 2011 +0200
+++ b/debian/changelog	Thu Jun 07 12:39:39 2012 +0200
@@ -1,3 +1,9 @@
+nagios-plugin-zpush (0.3) lenny squeeze; urgency=low
+
+  * change download url and search string for stable release
+
+ -- Christian Arnold <arnold@schlittermann.de>  Thu, 07 Jun 2012 12:27:06 +0200
+
 nagios-plugin-zpush (0.2) lenny squeeze; urgency=low
 
   * now check the exact version number
--- a/debian/control	Tue Jul 05 09:42:12 2011 +0200
+++ b/debian/control	Thu Jun 07 12:39:39 2012 +0200
@@ -3,12 +3,12 @@
 Priority: extra
 Maintainer: Christian Arnold <arnold@schlittermann.de>
 Build-Depends: debhelper (>= 7.0.50~)
-Standards-Version: 3.8.4
+Standards-Version: 3.9.1
 Homepage: https://keller.schlittermann.de/hg/ius/nagios/nagios-plugin-zpush/
 
 Package: nagios-plugin-zpush
 Architecture: all
-Depends: perl-base, perl-doc, libwww-perl
+Depends: perl-base (>= 5.10), perl-doc, libwww-perl
 Description: nagios plugin to check installed z-push version
  This nagios plugin search on a specified url for a new version
  of z-push and compare the search result with an installed version.