File:  [cvs.NetBSD.org] / pkgsrc / sysutils / zabbix50-frontend / Makefile
Revision 1.5: download - view: text, annotated - select for diffs
Sun Feb 12 11:09:04 2023 UTC (2 years, 3 months ago) by otis
Branches: MAIN
CVS tags: HEAD
zabbix50: Update to 5.0.31

- Update to 5.0.31
- Consolidate distinfo to zabbix50-server

Release notes:
- Added single field search option to oracle archive.info, ts.stats, pdb.info,
  cdb.info and diskgroups.stats keys for Zabbix agent 2
- Improved error logging during the agent start for Windows service
- Fixed the `history.get` API method blocking `drop_chunks` requests during
  housekeeping
- Fixed the severity sign overlapping a trigger name in the map element
  configuration
- Fixed incorrectly quoted parsing of the function parameter
- Fixed actions not being displayed in an *Action log* widget
- Removed `kernel.maxproc` from the processes graph in Linux by Zabbix agent
  templates
- Improved value cache warmup when retrieving the two last values with one day
  update interval
- Updated tablespaces query for the Oracle plugin in Zabbix agent 2
- Fixed an infinite loop of the SMART plugin for Zabbix agent 2
- Fixed the configuration of Redis plugin in Zabbix agent 2 configuration files
- Changed the order in which the escalation steps and recovery operations are
  executed
- Fixed Zabbix JS timeout validation
- Fixed trends being deleted from cache and retrieved from a database when data
  is older than one hour after receiving
- Optimized API queries when searching by names in the hosts and items tables
- Moved some static items under LLD rules to improve the performance in Oracle
  by Zabbix agent 2 template
- Extended the description for an OPSGenie media type
- Fixed the availability of an SNMP interface in the case of wrong credentials
- Added the overriding to skip metadata collection on ZFS and BTRFS for Nix
  templates
- Fixed crash on the Oracle database when connection is lost
- Fixed Windows agent 2 unicode path support for log* items
- Fixed the agent 2 timeout behavior for the `net.tcp.port` item
- Fixed README for PostgreSQL by Zabbix agent 2 template
- Fixed fatal PHP error in case incorrect variable type for controller action
  is given
- Fixed an undefined offset error during the host import process
- Reverted the PostgreSQL connection to be per database for Zabbix agent 2
  PostgreSQL plugin
- Fixed the alignment of a draggable object
- Fixed Zabbix agent 2 to remove and re-add the performance counters on failed
  collection and to keep query always open
- Updated the Oracle plugin and Oracle agent 2 template documentation grant
  select variables and added new grant
- Changed `system.sw.packages[<package>,<manager>,<format>]` to
  `system.sw.packages[<regexp>,<manager>,<format>]`

For complete list, see https://www.zabbix.com/rn/rn5.0.31

# $NetBSD: Makefile,v 1.5 2023/02/12 11:09:04 otis Exp $

.include "../../sysutils/zabbix50-server/Makefile.common"

PKGNAME=	${DISTNAME:S/-/-frontend-${ZABBIX_DB_TYPE}-/}
COMMENT=	Zabbix PHP 7.4 frontend

DISTINFO_FILE=	${.CURDIR}/../../sysutils/zabbix50-server/distinfo

CONFLICTS+=	zabbix-frontend-[0-9]*

EGDIR=		share/examples/${PKGBASE}

USE_TOOLS+=		pax
NO_BUILD=		yes
NO_CONFIGURE=		yes

REPLACE_SH+=	ui/locale/*.sh

.include "../../mk/bsd.prefs.mk"
.include "options.mk"

BUILD_DEFS+=		APACHE_GROUP APACHE_USER
PKG_GROUPS_VARS+=	${APACHE_GROUP}
PKG_USERS_VARS=		${APACHE_USER}

DEPENDS+=	${PHP_PKG_PREFIX}-bcmath>=7.2.0:../../math/php-bcmath
DEPENDS+=	${PHP_PKG_PREFIX}-gd>=7.2.0:../../graphics/php-gd
DEPENDS+=	${PHP_PKG_PREFIX}-gettext>=7.2.0:../../devel/php-gettext
DEPENDS+=	${PHP_PKG_PREFIX}-ldap>=7.2.0:../../databases/php-ldap
DEPENDS+=	${PHP_PKG_PREFIX}-mbstring>=7.2.0:../../converters/php-mbstring
.if ${ZABBIX_DB_TYPE} == "mysql"
DEPENDS+=	${PHP_PKG_PREFIX}-mysqli>=7.2.0:../../databases/php-mysqli
.endif
.if ${ZABBIX_DB_TYPE} == "pgsql"
DEPENDS+=	${PHP_PKG_PREFIX}-pgsql>=7.2.0:../../databases/php-pgsql
.endif
DEPENDS+=	${PHP_PKG_PREFIX}-sockets>=7.2.0:../../net/php-sockets
DEPENDS+=	${PHP_PKG_PREFIX}-sysvsem>=7.2.0:../../devel/php-sysvsem

INSTALLATION_DIRS+=	${EGDIR} share/zabbix

post-patch: replace-interpreter

do-install:
	rm -f ${WRKSRC}/ui/locale/*.orig
	cd ${WRKSRC}/ui; ${PAX} -rw . ${DESTDIR}${PREFIX}/share/zabbix/
	${INSTALL_DATA} ${FILESDIR}/httpd-zabbix.conf ${DESTDIR}${PREFIX}/${EGDIR}
	${INSTALL_DATA} ${FILESDIR}/php-fpm-zabbix.conf ${DESTDIR}${PREFIX}/${EGDIR}

.include "../../lang/php/json.mk"
.include "../../mk/configure/replace-interpreter.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>