- 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:
parent
ca165bc9ec
commit
4c89d9bd00
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:65869d8be157d0ae7b770be169d46e33db4863741304530a3c209f2d441349b2
|
||||
size 177545
|
3
check_postgres-2.21.0.tar.bz2
Normal file
3
check_postgres-2.21.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b0d9f595cb5c3101599e71a2197483cc03089a6f07c7d73ac106385bb2911903
|
||||
size 132308
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
4
create_manpage.pl
Normal file
4
create_manpage.pl
Normal 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]);
|
Loading…
Reference in New Issue
Block a user