Search
j0ke.net Open Build Service
>
Projects
>
server:backup
>
bacula5
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Changed
bacula.spec
@@ -40,7 +40,7 @@ Group: Productivity/Archiving/Backup AutoReqProv: on Version: 5.0.1 -Release: 2 +Release: 3 Summary: Bacula--The Network Backup Solution: Client Part Url: http://www.bacula.org Source0: %{name}-%{version}.tar.bz2 @@ -163,6 +163,12 @@ %description -n libbacsql-%{_libver} +%package -n nagios-plugins-bacula +Summary: Bacula nagios plugins +Group: Productivity/Archiving/Backup + +%description -n nagios-plugins-bacula +Nagios/Icinga plugins to check bacula. %prep %setup -q @@ -210,6 +216,12 @@ mv $RPM_BUILD_ROOT%{_sbindir}/bcopy $RPM_BUILD_ROOT%{_sbindir}/bcopy.postgresql mv $RPM_BUILD_ROOT%{_sbindir}/bscan $RPM_BUILD_ROOT%{_sbindir}/bscan.postgresql +# build nagios plugin +PREDIR=`pwd` +cd examples/nagios/check_bacula +%__make +cd $PREDIR + mkdir -p $RPM_BUILD_ROOT/etc/init.d install -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/init.d/bacula-dir install -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/init.d/bacula-fd @@ -226,6 +238,10 @@ rm $RPM_BUILD_ROOT/etc/bacula/*.new rm $RPM_BUILD_ROOT/etc/bacula/*.old +# install nagios plugins +install -D -m755 examples/nagios/check_bacula/check_bacula %{buildroot}/usr/lib/nagios/plugins/check_bacula +install -m755 examples/nagios/check_bacula_pools.sh %{buildroot}/usr/lib/nagios/plugins/check_bacula_pools + #install fw definitions mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}/ install -m 644 %SOURCE20 $RPM_BUILD_ROOT/%{_fwdefdir}/bacula-dir @@ -401,7 +417,12 @@ %{_libdir}/libbac.so %{_libdir}/libbac*.la - +%files -n nagios-plugins-bacula +%defattr(-,root,root) +%dir /usr/lib/nagios +%dir /usr/lib/nagios/plugins +/usr/lib/nagios/plugins/check_bacula +/usr/lib/nagios/plugins/check_bacula_pools %post -n libbaccfg-%{_libver} -p /sbin/ldconfig @@ -427,6 +448,9 @@ %changelog +* Thu Mar 25 2010 Carsten Schoene <cs@linux-administrator.com> - 5.0.1-3 +- build nagios plugin package + * Sat Mar 20 2010 Carsten Schoene <cs@linux-administrator.com> - 5.0.1-2 - added bacula-5.0.1-opensslv1 patch