- create a special nagios package containing just the symlinks
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/check_postgres?expand=0&rev=2
This commit is contained in:
parent
763126bdaa
commit
29227bb462
@ -3,4 +3,4 @@ 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
|
||||
|
||||
- create a special nagios package containing just the symlinks
|
||||
|
@ -55,6 +55,16 @@ Author:
|
||||
-------
|
||||
Greg Sabino Mullane <greg@endpoint.com>
|
||||
|
||||
|
||||
%package -n nagios-plugins-postgres
|
||||
Summary: Postgres monitoring script using check_postgres.pl
|
||||
Group: System/Monitoring
|
||||
PreReq: %{name} = %{version}
|
||||
|
||||
%description -n nagios-plugins-postgres
|
||||
This package contains the symlinks to execute special checks via the standard
|
||||
Nagios plugins way.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
@ -85,6 +95,17 @@ mv %{buildroot}%perl_vendorlib/check_postgres.pl %{buildroot}%{_bindir}/
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||
%perl_gen_filelist
|
||||
# create symlinks for nagios-plugins-postgres package
|
||||
mkdir -p %{buildroot}%{libexecdir}
|
||||
pushd %{buildroot}%{libexecdir}
|
||||
%{buildroot}%{_bindir}/check_postgres.pl --symlinks
|
||||
# fix symlinks, as they point to the buildroot
|
||||
for link in *; do
|
||||
rm $link
|
||||
ln -s %{_bindir}/check_postgres.pl $link
|
||||
done
|
||||
popd
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %buildroot
|
||||
@ -92,8 +113,14 @@ rm -rf %buildroot
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root)
|
||||
%doc MANIFEST README TODO
|
||||
|
||||
%files -n nagios-plugins-postgres
|
||||
%defattr(-,root,root)
|
||||
# avoid build dependecy of nagios - own the dirs
|
||||
#%dir %_prefix/lib/nagios
|
||||
#%dir %libexecdir
|
||||
%dir %_prefix/lib/nagios
|
||||
%dir %libexecdir
|
||||
%libexecdir/*
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user