- initial version 2.16.0
- disabled make test as this breaks the build currently OBS-URL: https://build.opensuse.org/package/show/server:monitoring/check_postgres?expand=0&rev=1
This commit is contained in:
commit
763126bdaa
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
check_postgres-2.16.0.tar.bz2
Normal file
3
check_postgres-2.16.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e172b6b0268ed85f8cff6485b36b8c00b1172ec2eebd55a63ed58eb44150f2c8
|
||||||
|
size 112058
|
6
check_postgres.changes
Normal file
6
check_postgres.changes
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 21 08:21:03 UTC 2011 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
- initial version 2.16.0
|
||||||
|
- disabled make test as this breaks the build currently
|
||||||
|
|
99
check_postgres.spec
Normal file
99
check_postgres.spec
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# needsrootforbuild
|
||||||
|
|
||||||
|
Name: check_postgres
|
||||||
|
Summary: Postgres monitoring script
|
||||||
|
Version: 2.16.0
|
||||||
|
Release: 1
|
||||||
|
Url: http://bucardo.org/wiki/Check_postgres
|
||||||
|
License: GPLv2+
|
||||||
|
Group: System/Monitoring
|
||||||
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
|
Requires: postgresql
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(DBD::Pg)
|
||||||
|
BuildRequires: perl(DBI)
|
||||||
|
BuildRequires: perl(Data::Dumper)
|
||||||
|
BuildRequires: perl(File::Basename)
|
||||||
|
BuildRequires: perl(File::Temp)
|
||||||
|
BuildRequires: perl(Cwd)
|
||||||
|
BuildRequires: perl(Getopt::Long)
|
||||||
|
BuildRequires: perl(Time::HiRes)
|
||||||
|
BuildRequires: perl(Digest::MD5)
|
||||||
|
BuildRequires: perl(Date::Parse)
|
||||||
|
#BuildRequires: postgresql-server
|
||||||
|
Requires: perl = %{perl_version}
|
||||||
|
Requires: perl(Data::Dumper)
|
||||||
|
Requires: perl(File::Basename)
|
||||||
|
Requires: perl(File::Temp)
|
||||||
|
Requires: perl(Cwd)
|
||||||
|
Requires: perl(Getopt::Long)
|
||||||
|
Requires: perl(Time::HiRes)
|
||||||
|
Recommends: perl(Digest::MD5)
|
||||||
|
Recommends: perl(Date::Parse)
|
||||||
|
Recommends: coreutils
|
||||||
|
Recommends: util-linux
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%define libexecdir %_prefix/lib/nagios/plugins
|
||||||
|
|
||||||
|
%description
|
||||||
|
check_postgres.pl is a Perl script that runs many different tests against one
|
||||||
|
or more Postgres databases. It uses the psql program to gather the information,
|
||||||
|
and outputs the results in one of three formats: Nagios, MRTG, or simple.
|
||||||
|
|
||||||
|
Author:
|
||||||
|
-------
|
||||||
|
Greg Sabino Mullane <greg@endpoint.com>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL
|
||||||
|
make %{?jobs:-j%jobs}
|
||||||
|
|
||||||
|
##%check
|
||||||
|
#. DATADIR
|
||||||
|
#echo $DATADIR
|
||||||
|
#export PGBINDIR=%{_bindir}
|
||||||
|
#make test
|
||||||
|
|
||||||
|
%install
|
||||||
|
## setup a postgresql instance
|
||||||
|
#export DATADIR=$(mktemp -d %{buildroot}/pgsql-XXXXXX)
|
||||||
|
#mkdir -p "$DATADIR"
|
||||||
|
#/usr/bin/initdb --locale="en_US.UTF-8" --auth="ident sameuser" "$DATADIR"
|
||||||
|
#/usr/bin/pg_ctl -D $DATADIR -l "$DATADIR/logfile" start
|
||||||
|
#echo "export DATADIR=$DATADIR" > DATADIR
|
||||||
|
# install the module
|
||||||
|
%perl_make_install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
mv %{buildroot}%perl_vendorlib/check_postgres.pl %{buildroot}%{_bindir}/
|
||||||
|
# do not perl_process_packlist (noarch)
|
||||||
|
# remove .packlist file
|
||||||
|
%{__rm} -rf %{buildroot}%perl_vendorarch
|
||||||
|
# remove perllocal.pod file
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %buildroot
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc MANIFEST README TODO
|
||||||
|
# avoid build dependecy of nagios - own the dirs
|
||||||
|
#%dir %_prefix/lib/nagios
|
||||||
|
#%dir %libexecdir
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user