add missing version subroutine
authorChristian Arnold <arnold@schlittermann.de>
Wed, 02 Feb 2011 09:50:23 +0100
changeset 2 e6a93f3c4bd5
parent 1 5acc6b846267
child 3 6aa194e51250
add missing version subroutine add perl-base version dependency new debian packet (v0.1.1)
check_client_cert.pl
debian/changelog
debian/control
debian/files
--- a/check_client_cert.pl	Tue Feb 01 14:26:14 2011 +0100
+++ b/check_client_cert.pl	Wed Feb 02 09:50:23 2011 +0100
@@ -35,10 +35,11 @@
 );
 
 my $ME      = basename $0;
-my $VERSION = "0.1";
+my $VERSION = "0.1.1";
 
 sub get_status($);
 sub report($);
+sub version($$);
 
 my %opt = (
     file     => "/root/CLIENT-CERTS/status.dat",
@@ -136,6 +137,20 @@
     }
 }
 
+sub version($$) {
+    my $progname = shift;
+    my $version  = shift;
+
+    print <<_VERSION;
+$progname version $version
+Copyright (C) 2011 by Christian Arnold and Schlittermann internet & unix support.
+
+$ME comes with ABSOLUTELY NO WARRANTY. This is free software,
+and you are welcome to redistribute it under certain conditions.
+See the GNU General Public Licence for details.
+_VERSION
+}
+
 __END__
 
 =head1 NAME
@@ -202,7 +217,7 @@
 
 =head1 VERSION
 
-This man page is current for version 0.1 of check_client_cert.
+This man page is current for version 0.1.1 of check_client_cert.
 
 =head1 AUTHOR
 
--- a/debian/changelog	Tue Feb 01 14:26:14 2011 +0100
+++ b/debian/changelog	Wed Feb 02 09:50:23 2011 +0100
@@ -1,3 +1,10 @@
+nagios-plugin-check-client-cert (0.1.1) stable; urgency=low
+
+  * add missing version subroutine
+  * add perl-base version dependency
+
+ -- Christian Arnold <arnold@schlittermann.de>  Wed, 02 Feb 2011 09:40:54 +0100
+
 nagios-plugin-check-client-cert (0.1) stable; urgency=low
 
   * Initial release
--- a/debian/control	Tue Feb 01 14:26:14 2011 +0100
+++ b/debian/control	Wed Feb 02 09:50:23 2011 +0100
@@ -7,7 +7,7 @@
 
 Package: nagios-plugin-check-client-cert
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, perl-base, libdate-manip-perl
+Depends: ${shlibs:Depends}, ${misc:Depends}, perl-base (>= 5.10.0), libdate-manip-perl
 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	Tue Feb 01 14:26:14 2011 +0100
+++ b/debian/files	Wed Feb 02 09:50:23 2011 +0100
@@ -1,1 +1,1 @@
-nagios-plugin-check-client-cert_0.1_all.deb net extra
+nagios-plugin-check-client-cert_0.1.1_all.deb net extra