no more required perl 5.10 for older debian releases
authorChristian Arnold <arnold@schlittermann.de>
Mon, 21 Feb 2011 15:14:42 +0100
changeset 4 14408207746e
parent 3 6aa194e51250
child 5 9041108a535b
no more required perl 5.10 for older debian releases
check_client_cert.pl
debian/changelog
debian/control
debian/files
--- a/check_client_cert.pl	Wed Feb 02 12:39:29 2011 +0100
+++ b/check_client_cert.pl	Mon Feb 21 15:14:42 2011 +0100
@@ -17,7 +17,6 @@
 #
 #    Christian Arnold <arnold@schlittermann.de>
 
-use 5.010;
 use warnings;
 use strict;
 use if $ENV{DEBUG} => "Smart::Comments";
@@ -35,7 +34,7 @@
 );
 
 my $ME      = basename $0;
-my $VERSION = "0.1.1";
+my $VERSION = "0.1.2";
 
 sub get_status($);
 sub report($);
@@ -72,7 +71,7 @@
 
     open( FILE, $file )
       or do {
-        say "CERT CRITICAL: $file $!";
+        print "CERT CRITICAL: $file $!\n";
         exit $ERRORS{CRITICAL};
       };
 
@@ -124,15 +123,15 @@
     ### @ok
 
     if (@critical) {
-        say "CERT CRITICAL: " . join( " ", @critical );
+        print "CERT CRITICAL: " . join( " ", @critical );
         exit $ERRORS{"CRITICAL"};
     }
     elsif (@warning) {
-        say "CERT WARNING: " . join( " ", @warning );
+        print "CERT WARNING: " . join( " ", @warning );
         exit $ERRORS{"WARNING"};
     }
     else {
-        say "CERT OK: " . join( " ", @ok );
+        print "CERT OK: " . join( " ", @ok );
         exit $ERRORS{"OK"};
     }
 }
@@ -217,7 +216,7 @@
 
 =head1 VERSION
 
-This man page is current for version 0.1.1 of check_client_cert.
+This man page is current for version 0.1.2 of check_client_cert.
 
 =head1 AUTHOR
 
--- a/debian/changelog	Wed Feb 02 12:39:29 2011 +0100
+++ b/debian/changelog	Mon Feb 21 15:14:42 2011 +0100
@@ -1,3 +1,9 @@
+nagios-plugin-check-client-cert (0.1.2) stable; urgency=low
+
+  * 
+
+ -- Christian Arnold <arnold@schlittermann.de>  Mon, 21 Feb 2011 15:09:15 +0100
+
 nagios-plugin-check-client-cert (0.1.1-1) stable; urgency=low
 
   * add perl-doc as dependency package for displaying manual page
--- a/debian/control	Wed Feb 02 12:39:29 2011 +0100
+++ b/debian/control	Mon Feb 21 15:14:42 2011 +0100
@@ -7,7 +7,7 @@
 
 Package: nagios-plugin-check-client-cert
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, perl-base (>= 5.10.0), libdate-manip-perl, perl-doc
+Depends: ${shlibs:Depends}, ${misc:Depends}, perl-base, libdate-manip-perl, perl-doc
 Description: nagios plugin to check ssl client certificate expire date
  This plugin read certificate status informations from file
  and report epire date for certificates.
--- a/debian/files	Wed Feb 02 12:39:29 2011 +0100
+++ b/debian/files	Mon Feb 21 15:14:42 2011 +0100
@@ -1,1 +1,1 @@
-nagios-plugin-check-client-cert_0.1.1-1_all.deb net extra
+nagios-plugin-check-client-cert_0.1.2_all.deb net extra