[packages/nagios-plugins] 'without ldap' bcond added
jajcus
jajcus at pld-linux.org
Fri Nov 23 20:01:14 CET 2012
commit 82093c2c7aaa0dc021baa2460ad499718fd140ca
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Fri Nov 23 19:22:59 2012 +0100
'without ldap' bcond added
nagios-plugins.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/nagios-plugins.spec b/nagios-plugins.spec
index ee04bb9..606d8f8 100644
--- a/nagios-plugins.spec
+++ b/nagios-plugins.spec
@@ -4,6 +4,10 @@
# TODO:
# - package requisites for unifished packages -nwstat
# REQUIREMENTS explains the dependencies.
+
+# Conditional build:
+%bcond_without ldap # build without ldap
+
%include /usr/lib/rpm/macros.perl
Summary: Host/service/network monitoring program plugins for Nagios
Summary(pl.UTF-8): Wtyczki do monitorowania hostów/usług/sieci dla Nagiosa
@@ -48,7 +52,7 @@ BuildRequires: libtap-devel
BuildRequires: libtool
BuildRequires: mysql-devel
BuildRequires: net-snmp-devel
-BuildRequires: openldap-devel >= 2.3.0
+%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: perl-Net-SNMP
BuildRequires: postgresql-devel
@@ -840,10 +844,12 @@ EOF
%defattr(644,root,root,755)
%attr(755,root,root) %{_pluginarchdir}/check_game
+%if %{with ldap}
%files -n nagios-plugin-check_ldap
%defattr(644,root,root,755)
%attr(755,root,root) %{_pluginarchdir}/check_ldap
%attr(755,root,root) %{_pluginarchdir}/check_ldaps
+%endif
%files -n nagios-plugin-check_load
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugins.git/commitdiff/8cce130d438294461c258a021456ad651435ef9d
More information about the pld-cvs-commit
mailing list