ports/180376: [patch] net-mgmt/collectd: Add more sanity checking for options dependencies
Brad Davis
brd at FreeBSD.org
Mon Jul 8 05:00:00 UTC 2013
>Number: 180376
>Category: ports
>Synopsis: [patch] net-mgmt/collectd: Add more sanity checking for options dependencies
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 08 05:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Brad Davis
>Release: FreeBSD 9.1-RELEASE i386
>Organization:
>Environment:
>Description:
For options that actually require CURL, check to see if it is enabled before we even try to build
>How-To-Repeat:
>Fix:
--- collectd-curloptions begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 322461)
+++ Makefile (working copy)
@@ -155,6 +155,9 @@
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
LIB_DEPENDS+= xml2:${PORTSDIR}/textproc/libxml2
PLIST_SUB+= BIND=""
+. if empty(PORT_OPTIONS:MCURL)
+IGNORE= BIND requires CURL. Either select CURL or deselect BIND
+. endif
.else
CONFIGURE_ARGS+=--disable-bind
PLIST_SUB+= BIND="@comment "
@@ -164,6 +167,9 @@
CONFIGURE_ARGS+=--enable-apache
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
PLIST_SUB+= APACHE=""
+. if empty(PORT_OPTIONS:MCURL)
+IGNORE= APACHE requires CURL. Either select CURL or deselect APACHE
+. endif
.else
CONFIGURE_ARGS+=--disable-apache
PLIST_SUB+= APACHE="@comment "
@@ -285,6 +291,9 @@
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+=--enable-nginx
PLIST_SUB+= NGINX=""
+. if empty(PORT_OPTIONS:MCURL)
+IGNORE= NGINX requires CURL. Either select CURL or deselect NGINX
+. endif
.else
CONFIGURE_ARGS+=--disable-nginx
PLIST_SUB+= NGINX="@comment "
--- collectd-curloptions ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list