[packages/rrdtool] add rrdcgi bcond, depends on rrd_graph

glen glen at pld-linux.org
Mon Jun 8 19:00:35 CEST 2015


commit 30f15aacdf16d502f6ede0d8753e400d51918398
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jun 8 11:57:07 2015 +0300

    add rrdcgi bcond, depends on rrd_graph

 rrdtool.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/rrdtool.spec b/rrdtool.spec
index 2a5fb7d..15c32f3 100644
--- a/rrdtool.spec
+++ b/rrdtool.spec
@@ -9,6 +9,11 @@
 %bcond_without	ruby	# Ruby binding
 %bcond_without	tcl	# Tcl binding
 %bcond_without	rrd_graph	# disable all rrd_graph functions
+%bcond_without	rrdcgi	# disable building of rrdcgi
+
+%if %{without rrd_graph}
+%undefine	with_rrdcgi
+%endif
 
 %define	pdir	RRDp
 %include	/usr/lib/rpm/macros.perl
@@ -273,6 +278,7 @@ sed -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac
 	LUA=/usr/bin/lua5.1 \
 	--disable-silent-rules \
 	%{!?with_rrd_graph:--disable-rrd_graph} \
+	%{!?with_rrdcgi:--disable-rrdcgi} \
 	%{!?with_lua:--disable-lua} \
 	%{!?with_python:--disable-python} \
 	%{!?with_ruby:--disable-ruby} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rrdtool.git/commitdiff/c7f7d8c5fba1a84ea023d3e523369e7fc767fbf2



More information about the pld-cvs-commit mailing list