diff --git a/net-mgmt/zabbix44-server/Makefile b/net-mgmt/zabbix44-server/Makefile index 2da366876311..59f23bc7b811 100644 --- a/net-mgmt/zabbix44-server/Makefile +++ b/net-mgmt/zabbix44-server/Makefile @@ -26,6 +26,7 @@ ZABBIX_BUILD= ${PKGNAMESUFFIX:S/^-//} .if ${ZABBIX_BUILD} != "frontend" # frontend only needs the version/distribution settings .if ${ZABBIX_BUILD} != "agent" CONFIGURE_ARGS+= --with-libevent=${LOCALBASE} +CONFIGURE_ARGS+= --cache-file=${WRKSRC}/config.cache LIB_DEPENDS+= libevent.so:devel/libevent USE_RC_SUBR= zabbix_${ZABBIX_BUILD} .else @@ -123,7 +124,7 @@ IPV6_CONFIGURE_ENABLE= ipv6 NMAP_RUN_DEPENDS= nmap:security/nmap \ sudo:security/sudo -LIBXML2_CONFIGURE_WITH= libxml2 +LIBXML2_CONFIGURE_WITH= libxml2=${LOCALBASE} LIBXML2_LIB_DEPENDS= libxml2.so:textproc/libxml2 OPENSSL_CONFIGURE_WITH= openssl @@ -136,6 +137,9 @@ GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls .include +pre-configure: + @echo "ac_cv_env_PKG_CONFIG_set=${LOCALBASE}/bin/pkgconf" > ${WRKSRC}/config.cache + post-patch: @${GREP} -rl "/etc/zabbix" ${WRKSRC} \ | ${XARGS} ${REINPLACE_CMD} -e 's#/usr/local/etc#${ETCDIR}#g'