Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2014 20:00:46 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338928 - head/net-mgmt/zabbix22-server
Message-ID:  <201401062000.s06K0kXu016540@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Mon Jan  6 20:00:46 2014
New Revision: 338928
URL: http://svnweb.freebsd.org/changeset/ports/338928

Log:
  - Add VMware support by adding libxml2
  - Add ICONV_PREFIX to the configure arguments (PR: ports/185197)
  
  PR:		ports/185412
  Submitted by:	Pakhom Golynga <pakhom706@gmail.com> (maintainer)

Modified:
  head/net-mgmt/zabbix22-server/Makefile

Modified: head/net-mgmt/zabbix22-server/Makefile
==============================================================================
--- head/net-mgmt/zabbix22-server/Makefile	Mon Jan  6 19:31:52 2014	(r338927)
+++ head/net-mgmt/zabbix22-server/Makefile	Mon Jan  6 20:00:46 2014	(r338928)
@@ -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
@@ -16,7 +16,7 @@ LICENSE=	GPLv2
 
 CONFLICTS=	${PKGBASE}-1.[0-8]*
 
-IGNORE_WITH_PHP=	5 52
+IGNORE_WITH_PHP=	52
 IGNORE_WITH_MYSQL=      41
 
 .if ${PKGNAMESUFFIX} != "-agent"
@@ -59,7 +59,8 @@ MAKE_ARGS+=	ARCH=freebsd
 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 @@ CONFIGURE_ARGS+=	--with-net-snmp
 
 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 @@ ODBC_DESC=	Support for database checks v
 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=""
 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'



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