zabbix: update to 6.2.2.

This commit is contained in:
Joel Beckmeyer 2022-08-30 08:30:05 -04:00 committed by classabbyamp
parent 6594962e5a
commit 7a913a2f31

View File

@ -1,24 +1,22 @@
# Template file for 'zabbix'
pkgname=zabbix
version=4.4.10
revision=5
version=6.2.2
revision=1
build_style=gnu-configure
configure_args="--with-gnutls --with-libcurl --with-libxml2=yes --with-net-snmp
--with-mysql --enable-server --enable-ipv6 --with-ssh2 --enable-agent
--enable-proxy"
--enable-proxy --with-libpcre2"
hostmakedepends="automake libtool pkg-config which"
makedepends="gnutls-devel libcurl-devel libxml2-devel libevent-devel
libmariadbclient-devel net-snmp-devel pcre-devel"
libmariadbclient-devel net-snmp-devel pcre2-devel"
depends="fping mariadb"
short_desc="IT Infrastructure components availability and performance monitoring"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.zabbix.com"
changelog="https://www.zabbix.com/rn/rn${version}"
distfiles="https://cdn.zabbix.com/zabbix/sources/oldstable/${version%.*}/zabbix-${version}.tar.gz
https://cdn.zabbix.com/zabbix/sources/stable/${version%.*}/zabbix-${version}.tar.gz"
checksum="2de09bd41ccb2534a0e12ca45c0e7da3896d95f0c4f9f7815477123a3d692c8f
2de09bd41ccb2534a0e12ca45c0e7da3896d95f0c4f9f7815477123a3d692c8f"
distfiles="https://cdn.zabbix.com/zabbix/sources/stable/${version%.*}/zabbix-${version}.tar.gz"
checksum=f0e7a9abb0f65d700f531253b91c31165077a9c94769cc8d238a423ada852773
conf_files="/etc/zabbix_server.conf"
system_accounts="_zabbix_server"
system_groups="_zabbix_server"
@ -42,7 +40,7 @@ post_install() {
vinstall database/mysql/images.sql 755 usr/share/zabbix/mysql
vmkdir usr/share/webapps/zabbix
cp -a frontends/php/* "${DESTDIR}/usr/share/webapps/zabbix"
cp -a ui/* "${DESTDIR}/usr/share/webapps/zabbix"
for file in server proxy; do
vsed -i ${DESTDIR}/etc/zabbix_${file}.conf \
@ -97,9 +95,17 @@ zabbix-proxy_package() {
}
zabbix-frontend-php_package() {
depends="zabbix php-gd php-mysql"
depends="zabbix php8.1-gd php8.1-mysql"
short_desc="Zabbix Networking Monitoring PHP Frontend"
conf_files="/etc/webapps/zabbix/zabbix.conf.php /etc/webapps/zabbix/maintenance.inc.php"
pkg_install() {
vmove usr/share/webapps
vinstall ${PKGDESTDIR}/usr/share/webapps/zabbix/conf/zabbix.conf.php.example \
644 etc/webapps/zabbix zabbix.conf.php
ln -sf /etc/webapps/zabbix/zabbix.conf.php ${PKGDESTDIR}/usr/share/webapps/zabbix/conf
mv ${PKGDESTDIR}/usr/share/webapps/zabbix/conf/maintenance.inc.php \
${PKGDESTDIR}/etc/webapps/zabbix
ln -sf /etc/webapps/zabbix/maintenance.inc.php ${PKGDESTDIR}/usr/share/webapps/zabbix/conf
}
}