File:  [cvs.NetBSD.org] / pkgsrc / sysutils / zabbix50-agent / Makefile
Revision 1.15: download - view: text, annotated - select for diffs
Sun Feb 12 11:09:04 2023 UTC (2 years, 2 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.15 2023/02/12 11:09:04 otis Exp $

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

PKGNAME=	${DISTNAME:S/-/-agent-/}
COMMENT=	Enterprise-class Monitoring Solution for Everyone

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

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

USE_TOOLS+=		pkg-config
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--enable-agent
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--datarootdir=${PREFIX}/share/${PKGBASE}
CONFIGURE_ARGS+=	--with-libcurl
CONFIGURE_ARGS+=	--with-libpcre=${BUILDLINK_PREFIX.pcre}
CONFIGURE_ARGS+=	--with-openssl=${BUILDLINK_PREFIX.openssl}

EGDIR=		share/examples/${PKGBASE}
CONF_FILES+=	${EGDIR}/zabbix_agentd.conf ${PKG_SYSCONFDIR}/zabbix_agentd.conf

RCD_SCRIPTS=	zabbix_agentd

INSTALLATION_DIRS+=	${EGDIR} share/${PKGBASE}

SUBST_CLASSES+=			fix-paths
SUBST_STAGE.fix-paths=		pre-configure
SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
SUBST_FILES.fix-paths=		conf/*.conf
SUBST_FILES.fix-paths+=		man/*.man
SUBST_SED.fix-paths=		-e 's,/usr/local/etc,${PKG_SYSCONFDIR},g'

SUBST_CLASSES+=			fix-pkgbase
SUBST_STAGE.fix-pkgbase=	pre-configure
SUBST_MESSAGE.fix-pkgbase=	Fixing PKGBASE.
SUBST_FILES.fix-pkgbase=	src/zabbix_agent/Makefile.in
SUBST_SED.fix-pkgbase=		-e 's,%%PKGBASE%%,${PKGBASE},g'

PLIST_SUBST+=			PKGBASE=${PKGBASE}

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

.include "options.mk"

.include "../../security/openssl/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>