mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
zabbix: update to 4.4.5.
This commit is contained in:
parent
05ab6c2fd3
commit
cae85401e5
1 changed files with 14 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'zabbix'
|
# Template file for 'zabbix'
|
||||||
pkgname=zabbix
|
pkgname=zabbix
|
||||||
version=4.2.1
|
version=4.4.5
|
||||||
revision=3
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-libxml2 --with-gnutls --with-libcurl --with-net-snmp
|
configure_args="--with-libxml2 --with-gnutls --with-libcurl --with-net-snmp
|
||||||
--with-mysql --enable-server --enable-ipv6 --with-ssh2 --enable-agent
|
--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"
|
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="${SOURCEFORGE_SITE}/zabbix/zabbix-${version}.tar.gz"
|
||||||
checksum=4915d52352163e40398ca9b56b8176ea369dfd475e291087c50a3d9ae2459076
|
checksum=94a897825b062e17b34767c0864305cee6a87476dda8bee88dcf845b24bed0ea
|
||||||
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"
|
||||||
|
@ -28,16 +28,6 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" libssh2-devel libevent-devel gnutls-devel pcre-devel"
|
hostmakedepends+=" libssh2-devel libevent-devel gnutls-devel pcre-devel"
|
||||||
fi
|
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() {
|
post_install() {
|
||||||
vsv zabbix-server
|
vsv zabbix-server
|
||||||
|
|
||||||
|
@ -47,6 +37,17 @@ post_install() {
|
||||||
|
|
||||||
vmkdir usr/share/webapps/zabbix
|
vmkdir usr/share/webapps/zabbix
|
||||||
cp -a frontends/php/* "${DESTDIR}/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() {
|
zabbix-agent_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue