ecc9a317d0
Changelog for 5.0.40: * Bug Fixes: - Fixed foreign key support with SQLite3 database - Changed value type for item prototype 'Pool Percent Used' in Ceph by Zabbix agent 2 template - Fixed messages about enabling, disabling and updating modules being different from other places Release notes§: https://www.zabbix.com/rn/rn5.0.40
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2023/12/09 13:26:49 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
|
|
SMF_NAME= zabbix-agent
|
|
|
|
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"
|