mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
net-mgmt/zabbix*: Fix fping location
Zabbix ports were patching fping location only in the config file, so the default location of fping was wrong. PR: 225956 Reported by: markham_breitbach@ssimicro.com Approved by: Pakhom Golynga <pg@pakhom.spb.ru> (maintainer)
This commit is contained in:
parent
d3bafa7df0
commit
0e174f26bd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=462615
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= zabbix2
|
||||
PORTVERSION= 2.0.20
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION}
|
||||
PKGNAMESUFFIX?= -server
|
||||
@ -125,7 +125,11 @@ JAVAGW_USE= JAVA=yes
|
||||
post-patch:
|
||||
@${GREP} -rl "/etc/zabbix" ${WRKSRC} \
|
||||
| ${XARGS} ${REINPLACE_CMD} -e 's#/etc/zabbix#${ETCDIR}#g'
|
||||
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' ${WRKSRC}/conf/zabbix_*.conf
|
||||
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' \
|
||||
${WRKSRC}/conf/zabbix_*.conf \
|
||||
${WRKSRC}/src/zabbix_proxy/proxy.c \
|
||||
${WRKSRC}/src/zabbix_server/server.c
|
||||
|
||||
|
||||
.if ${ZABBIX_BUILD} != "agent"
|
||||
.for d in mysql oracle postgresql sqlite3
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= zabbix22
|
||||
PORTVERSION= 2.2.21
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION}
|
||||
PKGNAMESUFFIX?= -server
|
||||
@ -130,7 +130,10 @@ LIBXML2_LIB_DEPENDS= libxml2.so:textproc/libxml2
|
||||
post-patch:
|
||||
@${GREP} -rl "/etc/zabbix" ${WRKSRC} \
|
||||
| ${XARGS} ${REINPLACE_CMD} -e 's#/etc/zabbix#${ETCDIR}#g'
|
||||
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' ${WRKSRC}/conf/zabbix_*.conf
|
||||
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' \
|
||||
${WRKSRC}/conf/zabbix_*.conf \
|
||||
${WRKSRC}/src/zabbix_proxy/proxy.c \
|
||||
${WRKSRC}/src/zabbix_server/server.c
|
||||
|
||||
.if ${ZABBIX_BUILD} != "agent"
|
||||
.if ! ${PORT_OPTIONS:MFPING}
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= zabbix3
|
||||
PORTVERSION= 3.0.14
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION}
|
||||
PKGNAMESUFFIX?= -server
|
||||
@ -152,7 +152,9 @@ post-patch:
|
||||
@${GREP} -rl "/etc/zabbix" ${WRKSRC} \
|
||||
| ${XARGS} ${REINPLACE_CMD} -e 's#/etc/zabbix#${ETCDIR}#g'
|
||||
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' \
|
||||
${WRKSRC}/conf/zabbix_*.conf
|
||||
${WRKSRC}/conf/zabbix_*.conf \
|
||||
${WRKSRC}/src/zabbix_proxy/proxy.c \
|
||||
${WRKSRC}/src/zabbix_server/server.c
|
||||
|
||||
.if ${ZABBIX_BUILD} == "server"
|
||||
@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_server.pid#PidFile=/var/run/zabbix/zabbix_server.pid#g' \
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= zabbix32
|
||||
PORTVERSION= 3.2.11
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION}
|
||||
PKGNAMESUFFIX?= -server
|
||||
@ -154,7 +154,10 @@ post-patch:
|
||||
@${GREP} -rl "/etc/zabbix" ${WRKSRC} \
|
||||
| ${XARGS} ${REINPLACE_CMD} -e 's#/etc/zabbix#${ETCDIR}#g'
|
||||
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' \
|
||||
${WRKSRC}/conf/zabbix_*.conf
|
||||
${WRKSRC}/conf/zabbix_*.conf \
|
||||
${WRKSRC}/src/zabbix_proxy/proxy.c \
|
||||
${WRKSRC}/src/zabbix_server/server.c
|
||||
|
||||
|
||||
.if ${ZABBIX_BUILD} == "server"
|
||||
@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_server.pid#PidFile=/var/run/zabbix/zabbix_server.pid#g' \
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= zabbix34
|
||||
PORTVERSION= 3.4.7
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION}
|
||||
PKGNAMESUFFIX?= -server
|
||||
@ -157,7 +157,9 @@ post-patch:
|
||||
@${GREP} -rl "/etc/zabbix" ${WRKSRC} \
|
||||
| ${XARGS} ${REINPLACE_CMD} -e 's#/etc/zabbix#${ETCDIR}#g'
|
||||
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' \
|
||||
${WRKSRC}/conf/zabbix_*.conf
|
||||
${WRKSRC}/conf/zabbix_*.conf \
|
||||
${WRKSRC}/src/zabbix_proxy/proxy.c \
|
||||
${WRKSRC}/src/zabbix_server/server.c
|
||||
|
||||
.if ${ZABBIX_BUILD} == "server"
|
||||
@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_server.pid#PidFile=/var/run/zabbix/zabbix_server.pid#g' \
|
||||
|
Loading…
Reference in New Issue
Block a user