diff options
author | pav <pav@FreeBSD.org> | 2004-01-14 17:50:37 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-01-14 17:50:37 +0800 |
commit | 57e2724a3c549541e3c3bebb6208bc6de359595a (patch) | |
tree | 6ddb1b8c92f9cfb317a83df1fbde44df52774ea4 /net-mgmt/zabbix | |
parent | ac84c7637dfb60a1018cd23b3e2ab1040189df0a (diff) | |
download | freebsd-ports-gnome-57e2724a3c549541e3c3bebb6208bc6de359595a.tar.gz freebsd-ports-gnome-57e2724a3c549541e3c3bebb6208bc6de359595a.tar.zst freebsd-ports-gnome-57e2724a3c549541e3c3bebb6208bc6de359595a.zip |
- 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>
Diffstat (limited to 'net-mgmt/zabbix')
-rw-r--r-- | net-mgmt/zabbix/Makefile | 9 | ||||
-rw-r--r-- | net-mgmt/zabbix/files/patch-src-zabbix_sucker-zabbix_sucker.c | 11 |
2 files changed, 18 insertions, 2 deletions
diff --git a/net-mgmt/zabbix/Makefile b/net-mgmt/zabbix/Makefile index bac19cb5dac7..243df141af5e 100644 --- a/net-mgmt/zabbix/Makefile +++ b/net-mgmt/zabbix/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/zabbix/files/patch-src-zabbix_sucker-zabbix_sucker.c b/net-mgmt/zabbix/files/patch-src-zabbix_sucker-zabbix_sucker.c new file mode 100644 index 000000000000..1b8ca44f8aac --- /dev/null +++ b/net-mgmt/zabbix/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"); + } + } + |