packages: nagios-ndoutils/nagios-ndoutils.spec - initscript deps
glen
glen at pld-linux.org
Sat Jan 14 23:51:28 CET 2012
Author: glen Date: Sat Jan 14 22:51:28 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- initscript deps
---- Files affected:
packages/nagios-ndoutils:
nagios-ndoutils.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: packages/nagios-ndoutils/nagios-ndoutils.spec
diff -u packages/nagios-ndoutils/nagios-ndoutils.spec:1.5 packages/nagios-ndoutils/nagios-ndoutils.spec:1.6
--- packages/nagios-ndoutils/nagios-ndoutils.spec:1.5 Sat Jan 14 23:49:44 2012
+++ packages/nagios-ndoutils/nagios-ndoutils.spec Sat Jan 14 23:51:22 2012
@@ -8,7 +8,7 @@
%bcond_without ssl # build without ssl support
%define extraver b9
-%define rel 0.3
+%define rel 0.4
Summary: NDOUTILS (Nagios Data Output Utils) addon
Summary(pl.UTF-8): Dodatek NDOUTILS (Nagios Data Output Utils)
Name: nagios-ndoutils
@@ -23,7 +23,10 @@
%{?with_mysql:BuildRequires: mysql-devel}
%{?with_ssl:BuildRequires: openssl-devel}
%{?with_pgsql:BuildRequires: postgresql-devel}
+BuildRequires: rpmbuild(macros) >= 1.228
Requires: nagios >= 3.0
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/nagios
@@ -79,6 +82,16 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add ndo2db
+%service ndo2db restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service -q ndo2db stop
+ /sbin/chkconfig --del ndo2db
+fi
+
%files
%defattr(644,root,root,755)
%doc README REQUIREMENTS TODO UPGRADING
@@ -99,6 +112,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2012/01/14 22:51:22 glen
+- initscript deps
+
Revision 1.5 2012/01/14 22:49:44 glen
- add pldized initscript
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-ndoutils/nagios-ndoutils.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list