aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/zabbix22-server
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2014-01-06 20:00:46 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2014-01-06 20:00:46 +0000
commitb99624bc49e6ada30fb33ec09f767beeed8ecc53 (patch)
tree4af6f8a0bf44b1f4489912ad2a3411502191d41c /net-mgmt/zabbix22-server
parentcfff7adfbcf29f46b1c1400c2874d24925451637 (diff)
downloadports-b99624bc49e6ada30fb33ec09f767beeed8ecc53.tar.gz
ports-b99624bc49e6ada30fb33ec09f767beeed8ecc53.zip
Notes
Diffstat (limited to 'net-mgmt/zabbix22-server')
-rw-r--r--net-mgmt/zabbix22-server/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/net-mgmt/zabbix22-server/Makefile b/net-mgmt/zabbix22-server/Makefile
index b32b110f5ff7..4ca0cdf29bfe 100644
--- a/net-mgmt/zabbix22-server/Makefile
+++ b/net-mgmt/zabbix22-server/Makefile
@@ -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 via ODBC
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'