zabbix: update to 4.4.10 + fix libxml2 check
The m4/libxml2.m4 macro expects $PKG_CONFIG to contain the full path. Patch it to look for /usr/bin/pkg-config even though a wrapper may actually be used. For a more detailed description also see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245613
This commit is contained in:
parent
1b75586147
commit
4bc2bb3e2e
2 changed files with 24 additions and 9 deletions
11
srcpkgs/zabbix/patches/fix-libxml2_m4.patch
Normal file
11
srcpkgs/zabbix/patches/fix-libxml2_m4.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- m4/libxml2.m4 2020-05-10 19:36:06.000000000 +0200
|
||||||
|
+++ m4/libxml2.m4 2020-07-24 07:58:12.642619506 +0200
|
||||||
|
@@ -52,7 +52,7 @@
|
||||||
|
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
||||||
|
PKG_PROG_PKG_CONFIG()
|
||||||
|
|
||||||
|
- if test -x "$PKG_CONFIG"; then
|
||||||
|
+ if test -x "/usr/bin/$PKG_CONFIG"; then
|
||||||
|
|
||||||
|
LIBXML2_CFLAGS="`$PKG_CONFIG --cflags libxml-2.0`"
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
# Template file for 'zabbix'
|
# Template file for 'zabbix'
|
||||||
pkgname=zabbix
|
pkgname=zabbix
|
||||||
version=4.4.7
|
version=4.4.10
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-libxml2 --with-gnutls --with-libcurl --with-net-snmp
|
configure_args="--with-gnutls --with-libcurl --with-libxml2=yes --with-net-snmp
|
||||||
--with-mysql --enable-server --enable-ipv6 --with-ssh2 --enable-agent
|
--with-mysql --enable-server --enable-ipv6 --with-ssh2 --enable-agent
|
||||||
--enable-proxy"
|
--enable-proxy ac_cv_lib_xml2_xmlReadMemory=yes"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
makedepends="gnutls-devel libcurl-devel libevent-devel libmysqlclient-devel
|
makedepends="gnutls-devel libcurl-devel libxml2-devel libevent-devel
|
||||||
libxml2-devel net-snmp-devel pcre-devel"
|
libmysqlclient-devel net-snmp-devel pcre-devel"
|
||||||
depends="fping mysql"
|
depends="fping mysql"
|
||||||
short_desc="IT Infrastructure components availability and performance monitoring"
|
short_desc="IT Infrastructure components availability and performance monitoring"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://www.zabbix.com"
|
homepage="https://www.zabbix.com"
|
||||||
changelog="https://www.zabbix.com/rn/rn${version}"
|
changelog="https://www.zabbix.com/rn/rn${version}"
|
||||||
distfiles="${SOURCEFORGE_SITE}/zabbix/zabbix-${version}.tar.gz"
|
distfiles="https://cdn.zabbix.com/zabbix/sources/stable/${version%.*}/zabbix-${version}.tar.gz"
|
||||||
checksum=497b8fe7905576d4d450c6fa486693c10d42915b6b55564f111957edcb9fec8d
|
checksum=2de09bd41ccb2534a0e12ca45c0e7da3896d95f0c4f9f7815477123a3d692c8f
|
||||||
conf_files="/etc/zabbix_server.conf"
|
conf_files="/etc/zabbix_server.conf"
|
||||||
system_accounts="_zabbix_server"
|
system_accounts="_zabbix_server"
|
||||||
system_groups="_zabbix_server"
|
system_groups="_zabbix_server"
|
||||||
|
@ -25,9 +25,13 @@ make_dirs="/var/log/zabbix-server 0750 _zabbix_server _zabbix_server"
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# configure scripts is bad at checking, problably runs code instead of
|
# configure scripts is bad at checking, problably runs code instead of
|
||||||
# using pkg-config files
|
# using pkg-config files
|
||||||
hostmakedepends+=" libssh2-devel libevent-devel gnutls-devel pcre-devel"
|
hostmakedepends+=" ${makedepends}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
autoreconf -fi
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv zabbix-server
|
vsv zabbix-server
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue