summaryrefslogtreecommitdiffstats
path: root/net-mgmt/zabbix2/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-01-15 23:21:54 +0000
committerpav <pav@FreeBSD.org>2004-01-15 23:21:54 +0000
commitc2d6dae72c3f4e3233080d08142d0ee758ef104d (patch)
tree9ad0e20c323d124f4047d879c567169a0acc31a0 /net-mgmt/zabbix2/Makefile
parent1ebb6acb0de0e178826427fa9d852e384b189fc5 (diff)
downloadFreeBSD-ports-c2d6dae72c3f4e3233080d08142d0ee758ef104d.zip
FreeBSD-ports-c2d6dae72c3f4e3233080d08142d0ee758ef104d.tar.gz
- Update to 1.0 beta13
- Makefile cleanup PR: ports/61360 Submitted by: Sergey Akifyev <asa@gascom.ru> (maintainer)
Diffstat (limited to 'net-mgmt/zabbix2/Makefile')
-rw-r--r--net-mgmt/zabbix2/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/net-mgmt/zabbix2/Makefile b/net-mgmt/zabbix2/Makefile
index 243df14..1bfa3af 100644
--- a/net-mgmt/zabbix2/Makefile
+++ b/net-mgmt/zabbix2/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= zabbix
-PORTVERSION= 1.0b12
-PORTREVISION= 2
+PORTVERSION= 1.0b13
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -20,18 +19,21 @@ COMMENT= Very advanced network monitoring system
PKGNAMESUFFIX= -agent
PLIST= ${MASTERDIR}/pkg-plist.agent
PKGMESSAGE= nonexistent
-.else
+.else # ZABBIX_AGENT_ONLY
LIB_DEPENDS= netsnmp.6:${PORTSDIR}/net/net-snmp
-RUN_DEPENDS= php:${PORTSDIR}/lang/php4-nms \
- fping:${PORTSDIR}/net/fping
+RUN_DEPENDS= php:${PORTSDIR}/lang/php4-nms
+
+.ifndef(WITHOUT_FPING)
+RUN_DEPENDS+= fping:${PORTSDIR}/net/fping
+.endif
USE_MYSQL= yes
CONFIGURE_ARGS= --with-mysql --with-net-snmp
PKGMESSAGE= ${WRKDIR}/pkg-message
-.endif
+.endif # ZABBIX_AGENT_ONLY
-USE_RC_SUBR= yes
USE_REINPLACE= yes
+USE_RC_SUBR= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include
@@ -53,8 +55,13 @@ pre-patch:
@${SED} ${SCRIPT_REGEX} ${PKGDIR}/scripts/zabbix-agent.sh.sample > \
${WRKDIR}/zabbix-agent.sh.sample
+.ifndef(ZABBIX_AGENT_ONLY)
post-patch:
@${REINPLACE_CMD} 's|%LOCALBASE%|${LOCALBASE}|' ${WRKSRC}/src/zabbix_sucker/zabbix_sucker.c
+.ifdef WITHOUT_FPING
+ @${ECHO} 'DisablePinger=yes' >> ${WRKSRC}/misc/conf/zabbix_suckerd.conf
+.endif
+.endif # ZABBIX_AGENT_ONLY
do-install:
.for FILE in ${ZABBIX_BINARIES}
@@ -83,7 +90,7 @@ do-install:
${PREFIX}/etc/rc.d
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
.ifndef(ZABBIX_AGENT_ONLY)
- ${CAT} ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud