diff --git a/check_postgres-2.20.1.tar.gz b/check_postgres-2.20.1.tar.gz deleted file mode 100644 index 0ae8fe4..0000000 --- a/check_postgres-2.20.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65869d8be157d0ae7b770be169d46e33db4863741304530a3c209f2d441349b2 -size 177545 diff --git a/check_postgres-2.21.0.tar.bz2 b/check_postgres-2.21.0.tar.bz2 new file mode 100644 index 0000000..bf28185 --- /dev/null +++ b/check_postgres-2.21.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0d9f595cb5c3101599e71a2197483cc03089a6f07c7d73ac106385bb2911903 +size 132308 diff --git a/check_postgres.changes b/check_postgres.changes index 78306b5..bcc6a39 100644 --- a/check_postgres.changes +++ b/check_postgres.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Oct 29 11:12:46 UTC 2013 - lars@linux-schulserver.de + +- update to 2.21.0 +- remove perl-macros dependency +- add check_postgres.pl man page (and script to generate it + from source) + ------------------------------------------------------------------- Fri Aug 9 19:54:52 UTC 2013 - darin@darins.net diff --git a/check_postgres.spec b/check_postgres.spec index c633ebc..d4734ce 100644 --- a/check_postgres.spec +++ b/check_postgres.spec @@ -12,15 +12,15 @@ Name: check_postgres Summary: Postgres monitoring script -Version: 2.20.1 +Version: 2.21.0 Release: 1 Url: http://bucardo.org/wiki/Check_postgres License: GPL-2.0+ Group: System/Monitoring -Source0: %{name}-%{version}.tar.gz +Source0: %{name}-%{version}.tar.bz2 Source1: nagios-commands-postgres.cfg +Source2: create_manpage.pl Requires: postgresql -#BuildRequires: perl-macros BuildRequires: perl(DBD::Pg) BuildRequires: perl(DBI) BuildRequires: perl(Data::Dumper) @@ -31,7 +31,7 @@ BuildRequires: perl(Getopt::Long) BuildRequires: perl(Time::HiRes) BuildRequires: perl(Digest::MD5) BuildRequires: perl(Date::Parse) -#BuildRequires: postgresql-server +BuildRequires: perl(Pod::Man) Requires: perl = %{perl_version} Requires: perl(Data::Dumper) Requires: perl(File::Basename) @@ -93,14 +93,17 @@ for link in *; do ln -s %{_bindir}/check_postgres.pl $link done popd - +# create man page +mkdir -p %{buildroot}/%{_mandir}/man1 +perl %{SOURCE2} "%{version}" "1" check_postgres.pl > %{buildroot}/%{_mandir}/man1/check_postgres.pl.1 %clean rm -rf %buildroot %files -f %{name}.files %defattr(-,root,root) -%doc MANIFEST README TODO nagios-commands-postgres.cfg +%doc MANIFEST README TODO nagios-commands-postgres.cfg check_postgres.pl.html +%{_mandir}/man1/check_postgres.pl.1* %files -n nagios-plugins-postgres %defattr(-,root,root) diff --git a/create_manpage.pl b/create_manpage.pl new file mode 100644 index 0000000..a51a03e --- /dev/null +++ b/create_manpage.pl @@ -0,0 +1,4 @@ +#!/usr/bin/perl +use Pod::Man; +my $parser = Pod::Man->new (release => $ARGV[0], section => $ARGV[1]); +$parser->parse_from_file ($ARGV[2], $ARGV[3]);