Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2013 13:34:32 GMT
From:      Aleksandr Ignatyev <alex@i.org.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185294: Add VMware support for Zabbix 2.2 Server by adding libxml2
Message-ID:  <201312301334.rBUDYWUA055135@oldred.freebsd.org>
Resent-Message-ID: <201312301340.rBUDe0PL096977@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185294
>Category:       ports
>Synopsis:       Add VMware support for Zabbix 2.2 Server by adding libxml2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 13:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Aleksandr Ignatyev
>Release:        FreeBSD any
>Organization:
>Environment:
FreeBSD sandbox.office 10.0-BETA3 FreeBSD 10.0-BETA3 #0: Thu Nov 28 03:28:32 EET 2013     root@sandbox.office:/usr/obj/usr/src/sys/COMMON  amd64

>Description:
VMware support not enabled in default Zabbix 2.2 port.
To enable it need to add curl and libxml2 options.

>How-To-Repeat:

>Fix:
Patch adding libxml2 option on port configuration dialog.


Patch attached with submission follows:

--- zabbix22-server/Makefile.orig	2013-12-30 14:43:12.140316226 +0200
+++ zabbix22-server/Makefile	2013-12-30 15:08:24.580316879 +0200
@@ -71,7 +71,7 @@
 
 OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
 
-OPTIONS_DEFINE=	IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP ODBC JAVAGW MYSQL
+OPTIONS_DEFINE=	IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP ODBC JAVAGW MYSQL LIBXML2
 OPTIONS_DEFAULT=	MYSQL IPV6 FPING JABBER CURL
 
 CURL_DESC=	Support for web monitoring
@@ -85,6 +85,7 @@
 JAVAGW_DESC=	Support for Java gateway
 IODBC_DESC=	Use iODBC for ODBC support
 UNIXODBC_DESC=	Use UnixODBC for ODBC support
+LIBXML2_DESC=	Support for libxml2 (required by VMware checks)
 
 OPTIONS_SINGLE=	DB ODBC
 OPTIONS_SINGLE_DB=	MYSQL PGSQL SQLITE ORACLE
@@ -174,6 +175,11 @@
 PLIST_SUB+=	JAVAGW="@comment "
 .endif
 
+.if ${PORT_OPTIONS:MLIBXML2}
+LIB_DEPENDS+=   xml2:${PORTSDIR}/textproc/libxml2
+CONFIGURE_ARGS+=	--with-libxml2
+.endif
+
 post-patch:
 	@${GREP} -rl "/etc/zabbix" ${WRKSRC} \
 	  | ${XARGS} ${REINPLACE_CMD} -e 's#/etc/zabbix#${ETCDIR}#g'


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312301334.rBUDYWUA055135>