[packages/monit] add pam and ssl bconds

glen glen at pld-linux.org
Wed Nov 18 15:23:46 CET 2015


commit 569cdae1fa44f3617d108aad0e0d437b602b3e5e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Nov 18 16:23:33 2015 +0200

    add pam and ssl bconds

 monit.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/monit.spec b/monit.spec
index e261d88..4635225 100644
--- a/monit.spec
+++ b/monit.spec
@@ -1,3 +1,9 @@
+
+#
+# Conditional build:
+%bcond_without	pam		# PAM support
+%bcond_without	ssl		# SSL support
+
 Summary:	Process monitor and restart utility
 Summary(pl.UTF-8):	Narzędzie do monitorowania procesów i ich restartowania
 Name:		monit
@@ -14,7 +20,8 @@ Patch0:		config.patch
 URL:		http://mmonit.com/monit/
 BuildRequires:	bison
 BuildRequires:	flex
-BuildRequires:	openssl-devel >= 0.9.7d
+%{?with_ssl:BuildRequires:	openssl-devel >= 0.9.7d}
+%{?with_pam:BuildRequires:	pam-devel}
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts >= 0.4.0.15
@@ -38,6 +45,8 @@ program przestaje odpowiadać.
 %build
 %configure \
 	--bindir=%{_sbindir} \
+	%{__with_without ssl} \
+	%{__with_without pam} \
 	--with-ssl-lib-dir=%{_libdir}
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/monit.git/commitdiff/569cdae1fa44f3617d108aad0e0d437b602b3e5e



More information about the pld-cvs-commit mailing list