- update to 2.21.0

- remove perl-macros dependency
- add check_postgres.pl man page (and script to generate it 
  from source)

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/check_postgres?expand=0&rev=7
This commit is contained in:
Lars Vogdt 2013-10-29 11:44:34 +00:00 committed by Git OBS Bridge
parent ca165bc9ec
commit 4c89d9bd00
5 changed files with 24 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65869d8be157d0ae7b770be169d46e33db4863741304530a3c209f2d441349b2
size 177545

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b0d9f595cb5c3101599e71a2197483cc03089a6f07c7d73ac106385bb2911903
size 132308

View File

@ -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 Fri Aug 9 19:54:52 UTC 2013 - darin@darins.net

View File

@ -12,15 +12,15 @@
Name: check_postgres Name: check_postgres
Summary: Postgres monitoring script Summary: Postgres monitoring script
Version: 2.20.1 Version: 2.21.0
Release: 1 Release: 1
Url: http://bucardo.org/wiki/Check_postgres Url: http://bucardo.org/wiki/Check_postgres
License: GPL-2.0+ License: GPL-2.0+
Group: System/Monitoring Group: System/Monitoring
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.bz2
Source1: nagios-commands-postgres.cfg Source1: nagios-commands-postgres.cfg
Source2: create_manpage.pl
Requires: postgresql Requires: postgresql
#BuildRequires: perl-macros
BuildRequires: perl(DBD::Pg) BuildRequires: perl(DBD::Pg)
BuildRequires: perl(DBI) BuildRequires: perl(DBI)
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
@ -31,7 +31,7 @@ BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Time::HiRes) BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Digest::MD5) BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Date::Parse) BuildRequires: perl(Date::Parse)
#BuildRequires: postgresql-server BuildRequires: perl(Pod::Man)
Requires: perl = %{perl_version} Requires: perl = %{perl_version}
Requires: perl(Data::Dumper) Requires: perl(Data::Dumper)
Requires: perl(File::Basename) Requires: perl(File::Basename)
@ -93,14 +93,17 @@ for link in *; do
ln -s %{_bindir}/check_postgres.pl $link ln -s %{_bindir}/check_postgres.pl $link
done done
popd popd
# create man page
mkdir -p %{buildroot}/%{_mandir}/man1
perl %{SOURCE2} "%{version}" "1" check_postgres.pl > %{buildroot}/%{_mandir}/man1/check_postgres.pl.1
%clean %clean
rm -rf %buildroot rm -rf %buildroot
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root) %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 %files -n nagios-plugins-postgres
%defattr(-,root,root) %defattr(-,root,root)

4
create_manpage.pl Normal file
View File

@ -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]);