zabbix: update to 4.4.5.

This commit is contained in:
Piraty 2020-02-06 08:05:07 +01:00 committed by Piraty
parent 05ab6c2fd3
commit cae85401e5

View file

@ -1,7 +1,7 @@
# Template file for 'zabbix'
pkgname=zabbix
version=4.2.1
revision=3
version=4.4.5
revision=1
build_style=gnu-configure
configure_args="--with-libxml2 --with-gnutls --with-libcurl --with-net-snmp
--with-mysql --enable-server --enable-ipv6 --with-ssh2 --enable-agent
@ -16,7 +16,7 @@ license="GPL-2.0-or-later"
homepage="https://www.zabbix.com"
changelog="https://www.zabbix.com/rn/rn${version}"
distfiles="${SOURCEFORGE_SITE}/zabbix/zabbix-${version}.tar.gz"
checksum=4915d52352163e40398ca9b56b8176ea369dfd475e291087c50a3d9ae2459076
checksum=94a897825b062e17b34767c0864305cee6a87476dda8bee88dcf845b24bed0ea
conf_files="/etc/zabbix_server.conf"
system_accounts="_zabbix_server"
system_groups="_zabbix_server"
@ -28,16 +28,6 @@ if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libssh2-devel libevent-devel gnutls-devel pcre-devel"
fi
pre_install() {
for file in server agentd proxy; do
sed -i conf/zabbix_${file}.conf \
-e "s|# SNMPTrapperFile=/tmp|SNMPTrapperFile=/var/log/zabbix-${file}|" \
-e "s|# PidFile=/tmp|PidFile=/run/zabbix-${file}|" \
-e "s|LogFile=/tmp|LogFile=/var/log/zabbix-${file}|"
done
sed -i conf/zabbix_server.conf -e "s|# DBSocket=.*|DBSocket=/run/mysqld/mysqld.sock|"
}
post_install() {
vsv zabbix-server
@ -47,6 +37,17 @@ post_install() {
vmkdir usr/share/webapps/zabbix
cp -a frontends/php/* "${DESTDIR}/usr/share/webapps/zabbix"
for file in server proxy; do
vsed -i ${DESTDIR}/etc/zabbix_${file}.conf \
-e "s|# SNMPTrapperFile=|SNMPTrapperFile=/var/log/zabbix-${file}|" \
-e "s|# DBSocket=.*|DBSocket=/run/mysqld/mysqld.sock|"
done
for file in server agentd proxy; do
vsed -i ${DESTDIR}/etc/zabbix_${file}.conf \
-e "s|# PidFile=/tmp|PidFile=/run/zabbix-${file}|" \
-e "s|LogFile=/tmp|LogFile=/var/log/zabbix-${file}|"
done
}
zabbix-agent_package() {