[packages/nagios-plugin-check_postgres] CLEANUP template leftovers
glen
glen at pld-linux.org
Sat Nov 7 13:36:32 CET 2015
commit 61f99ec42c157f0409523637aa3b8336446c85e2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Nov 7 14:34:15 2015 +0200
CLEANUP template leftovers
nagios-plugin-check_postgres.spec | 19 -------------------
1 file changed, 19 deletions(-)
---
diff --git a/nagios-plugin-check_postgres.spec b/nagios-plugin-check_postgres.spec
index 995c83f..7c4c323 100644
--- a/nagios-plugin-check_postgres.spec
+++ b/nagios-plugin-check_postgres.spec
@@ -2,7 +2,6 @@
# Add docs
# Fix service file
%define plugin check_postgres
-# enable here and BR deps, and noautoreq for Perl based plugins
%include /usr/lib/rpm/macros.perl
Summary: Nagios plugin to check postgresql
Summary(pl.UTF-8): Wtyczka Nagiosa sprawdzająca Postgresql
@@ -13,24 +12,15 @@ License: BSD
Group: Networking
Source0: http://bucardo.org/downloads/check_postgres-%{version}.tar.gz
# Source0-md5: 0ac4a8bae7b633fbfacdf58be5a1975f
-# Source1: %{plugin}.cfg
-#Patch0: %{name}-defaultpass.patch
URL: https://bucardo.org/wiki/Check_postgres
-# enable for Perl based plugins
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.654
-# Requires: nagios-plugins-libs for utils.{sh,pm,php}, for Perl set noautoreq for perl(utils)
Requires: nagios-common
-#Requires: nagios-plugins-libs
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# for perl plugins:
-%define _noautoreq_perl utils
-
%define _sysconfdir /etc/nagios/plugins
-%define nrpeddir /etc/nagios/nrpe.d
%define plugindir %{_prefix}/lib/nagios/plugins
%description
@@ -41,10 +31,7 @@ Wtyczka Nagiosa sprawdzająca Postgresql
%prep
%setup -q -n %{plugin}-%{version}
-# %setup -qcT
-# cp -p %{SOURCE0} %{plugin}
cp %{plugin}.pl %{plugin}
-#%patch0 -p1
%{__sed} -i -e 's,/usr/local/nagios/perl/lib,%{plugindir},' %{plugin}
%{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' %{plugin}
@@ -75,19 +62,13 @@ EOF
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{nrpeddir},%{plugindir}}
install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
-# install -p %{SOURCE0} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
cp -p %{plugin}.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
-# sed -e 's, at plugindir@,%{plugindir},' %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
-# cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-## %doc README TODO check_postgres.pl.html
-%defattr(644,root,root,755)
%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
%attr(755,root,root) %{plugindir}/%{plugin}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_postgres.git/commitdiff/af2b320cb6c89e76c4964356944c380e808205c6
More information about the pld-cvs-commit
mailing list