diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-01-14 09:50:37 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-01-14 09:50:37 +0000 |
commit | 83ed47e16fe3fb680e66fa4ed955491c775d9b43 (patch) | |
tree | be36f55ba0cf41c2a577e1890e76bdaae40b3950 /net-mgmt/zabbix2 | |
parent | Update to 0.22 (diff) |
- Add dependency on fping
- Bump portrevision
PR: ports/60942
Submitted by: Sergey Akifyev <asa@gascom.ru> (maintainer)
Reported by: Michal F. Hanula <frankie@nb.7f000001.org>
Notes
Notes:
svn path=/head/; revision=98143
Diffstat (limited to 'net-mgmt/zabbix2')
-rw-r--r-- | net-mgmt/zabbix2/Makefile | 9 | ||||
-rw-r--r-- | net-mgmt/zabbix2/files/patch-src-zabbix_sucker-zabbix_sucker.c | 11 |
2 files changed, 18 insertions, 2 deletions
diff --git a/net-mgmt/zabbix2/Makefile b/net-mgmt/zabbix2/Makefile index bac19cb5dac7..243df141af5e 100644 --- a/net-mgmt/zabbix2/Makefile +++ b/net-mgmt/zabbix2/Makefile @@ -7,7 +7,7 @@ PORTNAME= zabbix PORTVERSION= 1.0b12 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -22,7 +22,8 @@ PLIST= ${MASTERDIR}/pkg-plist.agent PKGMESSAGE= nonexistent .else LIB_DEPENDS= netsnmp.6:${PORTSDIR}/net/net-snmp -RUN_DEPENDS= php:${PORTSDIR}/lang/php4-nms +RUN_DEPENDS= php:${PORTSDIR}/lang/php4-nms \ + fping:${PORTSDIR}/net/fping USE_MYSQL= yes CONFIGURE_ARGS= --with-mysql --with-net-snmp @@ -30,6 +31,7 @@ PKGMESSAGE= ${WRKDIR}/pkg-message .endif USE_RC_SUBR= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include @@ -51,6 +53,9 @@ pre-patch: @${SED} ${SCRIPT_REGEX} ${PKGDIR}/scripts/zabbix-agent.sh.sample > \ ${WRKDIR}/zabbix-agent.sh.sample +post-patch: + @${REINPLACE_CMD} 's|%LOCALBASE%|${LOCALBASE}|' ${WRKSRC}/src/zabbix_sucker/zabbix_sucker.c + do-install: .for FILE in ${ZABBIX_BINARIES} ${INSTALL_PROGRAM} ${WRKSRC}/bin/${FILE} ${PREFIX}/bin diff --git a/net-mgmt/zabbix2/files/patch-src-zabbix_sucker-zabbix_sucker.c b/net-mgmt/zabbix2/files/patch-src-zabbix_sucker-zabbix_sucker.c new file mode 100644 index 000000000000..1b8ca44f8aac --- /dev/null +++ b/net-mgmt/zabbix2/files/patch-src-zabbix_sucker-zabbix_sucker.c @@ -0,0 +1,11 @@ +--- src/zabbix_sucker/zabbix_sucker.c.orig Wed Jan 14 07:43:02 2004 ++++ src/zabbix_sucker/zabbix_sucker.c Wed Jan 14 07:43:21 2004 +@@ -254,7 +254,7 @@ + } + if(CONFIG_FPING_LOCATION == NULL) + { +- CONFIG_FPING_LOCATION=strdup("/usr/sbin/fping"); ++ CONFIG_FPING_LOCATION=strdup("%LOCALBASE%/sbin/fping"); + } + } + |