2007-06-13 15:53:11 +02:00
|
|
|
# Ports collection makefile for: zabbix-agent
|
2006-11-10 11:02:50 +01:00
|
|
|
# Date created: Jun 18 2003
|
|
|
|
# Whom: Sergey Akifyev <asa@gascom.ru>
|
2003-08-30 10:05:50 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2007-06-13 15:53:11 +02:00
|
|
|
PORTNAME= zabbix
|
2009-06-23 07:38:08 +02:00
|
|
|
PORTVERSION= 1.6.5
|
2008-05-31 17:29:54 +02:00
|
|
|
PORTEPOCH= 2
|
2007-06-18 17:31:39 +02:00
|
|
|
CATEGORIES= net-mgmt
|
2007-06-13 15:53:11 +02:00
|
|
|
MASTER_SITES= SF
|
|
|
|
PKGNAMESUFFIX= -agent
|
2003-08-30 10:05:50 +02:00
|
|
|
|
2009-04-23 20:44:03 +02:00
|
|
|
MAINTAINER= ports@christianserving.org
|
2007-06-13 15:53:11 +02:00
|
|
|
COMMENT= Application and network monitoring solution
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_RC_SUBR= zabbix_agentd
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-agent --disable-server
|
|
|
|
MAKE_ARGS= ARCH=freebsd
|
2007-12-13 09:36:15 +01:00
|
|
|
.ifndef WITHOUT_IPV6
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
.endif
|
2007-06-13 15:53:11 +02:00
|
|
|
|
|
|
|
ZABBIX_BIN= agent agentd get sender
|
|
|
|
ZABBIX_CFG= agent agentd
|
|
|
|
ZABBIX_BINFILES=${ZABBIX_BIN:S|^|zabbix_|:C|.+|&/&|:S|agentd/|agent/|}
|
|
|
|
ZABBIX_CFGFILES=${ZABBIX_CFG:S|^|zabbix_|:S|$|.conf|}
|
|
|
|
PLIST_FILES= ${ZABBIX_BIN:S|^|bin/zabbix_|} \
|
2007-08-27 20:35:50 +02:00
|
|
|
${ZABBIX_CFG:S|^|%%ETCDIR%%/zabbix_|:S|$|.conf.sample|}
|
2007-06-13 15:53:11 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC}/src/ -type f|${XARGS} \
|
2007-08-27 20:35:50 +02:00
|
|
|
${REINPLACE_CMD} -e 's|/etc/zabbix|${ETCDIR}|;s|/usr/sbin|${LOCALBASE}/sbin|'
|
2007-06-13 15:53:11 +02:00
|
|
|
|
|
|
|
do-install:
|
2009-02-26 12:59:19 +01:00
|
|
|
@${ECHO_CMD} '@unexec ${RMDIR} %D/${ETCDIR_REL} 2>/dev/null || true' >> ${TMPPLIST}
|
2007-06-13 15:53:11 +02:00
|
|
|
@${INSTALL_PROGRAM} ${ZABBIX_BINFILES:S,^,${WRKSRC}/src/,} ${PREFIX}/bin/
|
2007-08-27 20:35:50 +02:00
|
|
|
@${INSTALL} -d ${ETCDIR}/
|
|
|
|
@for i in ${ZABBIX_CFGFILES};do\
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/misc/conf/$$i ${ETCDIR}/$$i.sample;done
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2007-06-13 15:53:11 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|