ports/185412: net-mgmt/zabbix22-server: update
Pakhom Golynga
pakhom706 at gmail.com
Thu Jan 2 09:10:00 UTC 2014
>Number: 185412
>Category: ports
>Synopsis: net-mgmt/zabbix22-server: update
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 02 09:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Pakhom Golynga
>Release: 9.2-RELEASE-p1
>Organization:
>Environment:
>Description:
- Add VMware support by adding libxml2
- Add ICONV_PREFIX to the configure arguments (PR: ports/185197)
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -urN zabbix22-server.orig/Makefile zabbix22-server/Makefile
--- zabbix22-server.orig/Makefile 2014-01-02 11:50:11.302717000 +0400
+++ zabbix22-server/Makefile 2014-01-02 12:45:39.689718601 +0400
@@ -3,7 +3,7 @@
PORTNAME= zabbix22
PORTVERSION= 2.2.1
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION}
PKGNAMESUFFIX?= -server
@@ -59,7 +59,8 @@
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-${ZABBIX_BUILD} \
--sysconfdir=${ETCDIR} \
- --datadir=${ETCDIR}
+ --datadir=${ETCDIR} \
+ --with-iconv=${ICONV_PREFIX}
.if ${ZABBIX_BUILD} != "agent"
LIB_DEPENDS= netsnmp:${PORTSDIR}/net-mgmt/net-snmp \
@@ -71,7 +72,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 +86,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 monitoring VMware)
OPTIONS_SINGLE= DB ODBC
OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE ORACLE
@@ -174,6 +176,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:
More information about the freebsd-ports-bugs
mailing list