diff --git a/net-mgmt/netdata/Makefile b/net-mgmt/netdata/Makefile index 163ec8920..c054cd1d6 100644 --- a/net-mgmt/netdata/Makefile +++ b/net-mgmt/netdata/Makefile @@ -2,14 +2,20 @@ PORTNAME= netdata DISTVERSIONPREFIX= v -DISTVERSION= 1.29.2 +DISTVERSION= 1.31.0 CATEGORIES= net-mgmt MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/ +# Backport commit to fix interrupt graph +PATCH_SITES= https://github.com/netdata/netdata/commit/ +PATCHFILES= 4b130034f223a5034c241b8a3e905d8f8031747d.patch:-p1 69bb76a794d8ae7fde1d9a1a8202fef3ec04726a.patch:-p1 +#PATCHFILES= 4b130034f223a5034c241b8a3e905d8f8031747d.patch:-p1 + MAINTAINER= ports@FreeBSD.org COMMENT= Scalable distributed realtime performance and health monitoring LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libjson-c.so:devel/json-c \ libuuid.so:misc/e2fsprogs-libuuid \ @@ -53,23 +59,22 @@ OPTIONS_SUB= YES CLOUD_DESC= Enable cloud functionality CUPS_DESC= Enable support for cups -DBENGINE_DESC= Enable support for database engine -FREEIPMI_DESC= Enable support for freeipmi +DBENGINE_DESC= Enable support for database engine +FREEIPMI_DESC= Enable support for freeipmi GOPLUGIN_DESC= Enable the go collector plugin -CLOUD_CONFIGURE_OFF= --disable-cloud -CLOUD_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-web_gui_index.html \ - ${FILESDIR}/extra-patch-web_gui_main.js -CUPS_LIB_DEPENDS= libcups.so:print/cups -CUPS_CONFIGURE_ENABLE= plugin-cups +CLOUD_CONFIGURE_ON= --with-aclk-ng +CLOUD_CONFIGURE_OFF= --disable-cloud +CUPS_LIB_DEPENDS= libcups.so:print/cups +CUPS_CONFIGURE_ENABLE= plugin-cups DBENGINE_LIB_DEPENDS= libJudy.so:devel/judy \ liblz4.so:archivers/liblz4 DBENGINE_CONFIGURE_ENABLE= dbengine FREEIPMI_LIB_DEPENDS= libfreeipmi.so:sysutils/freeipmi FREEIPMI_CONFIGURE_ENABLE= plugin-freeipmi -GOPLUGIN_RUN_DEPENDS= ${LOCALBASE}/libexec/netdata/plugins.d/god.plugin:net-mgmt/netdata-go -LTO_USES= compiler:c11 -LTO_CONFIGURE_ENABLE= lto +GOPLUGIN_RUN_DEPENDS= ${LOCALBASE}/libexec/netdata/plugins.d/god.plugin:net-mgmt/netdata-go +LTO_USES= compiler:c11 +LTO_CONFIGURE_ENABLE= lto .include .if ${PORT_OPTIONS:MLTO} && ${OPSYS}_${OSREL:R} == FreeBSD_11 @@ -85,6 +90,8 @@ NETDATA_LOG= /var/log/${PORTNAME} NETDATA_PERST= /var/db/${PORTNAME} post-patch: + @${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' \ + ${PATCH_WRKSRC}/configure.ac @${REINPLACE_CMD} -e 's|%%NETDATA_CACHE%%|${NETDATA_CACHE}|g' \ ${PATCH_WRKSRC}/configure.ac @${REINPLACE_CMD} -e 's|%%NETDATA_LOG%%|${NETDATA_LOG}|g' \ @@ -105,7 +112,7 @@ post-install: ${MKDIR} ${STAGEDIR}${NETDATA_PERST} (for fi in ${STAGEDIR}${LOCALBASE}/lib/${PORTNAME}/conf.d/*.conf \ ${STAGEDIR}${LOCALBASE}/lib/${PORTNAME}/conf.d/*/*.conf \ - ${STAGEDIR}${LOCALBASE}/lib/${PORTNAME}/conf.d/*.txt ; do \ + ${STAGEDIR}${LOCALBASE}/lib/${PORTNAME}/conf.d/*/*.txt ; do \ ${MV} $$fi $$fi".sample"; \ done) diff --git a/net-mgmt/netdata/distinfo b/net-mgmt/netdata/distinfo index c01848f7d..7e3129c69 100644 --- a/net-mgmt/netdata/distinfo +++ b/net-mgmt/netdata/distinfo @@ -1,3 +1,7 @@ -TIMESTAMP = 1613694033 -SHA256 (netdata-v1.29.2.tar.gz) = 3419a2b54cd29946900e88fa96f8235b6db50bafa615a35c0035887e8a3f5074 -SIZE (netdata-v1.29.2.tar.gz) = 6736119 +TIMESTAMP = 1621898113 +SHA256 (netdata-v1.31.0.tar.gz) = ca68f725224e8bbec041b493891376fbf41aedb47c4ac06161c2eda990089c9f +SIZE (netdata-v1.31.0.tar.gz) = 12528280 +SHA256 (4b130034f223a5034c241b8a3e905d8f8031747d.patch) = 9a5be823ba673d2490ec7140cc3726569253e5114157c730d7533916194720d7 +SIZE (4b130034f223a5034c241b8a3e905d8f8031747d.patch) = 5207 +SHA256 (69bb76a794d8ae7fde1d9a1a8202fef3ec04726a.patch) = db7eae5792b2ac3eb74ade0245a28570070efbb520664fca779f49b34c5debe1 +SIZE (69bb76a794d8ae7fde1d9a1a8202fef3ec04726a.patch) = 30296360 diff --git a/net-mgmt/netdata/files/extra-patch-web_gui_index.html b/net-mgmt/netdata/files/extra-patch-web_gui_index.html deleted file mode 100644 index 18aa0dbb6..000000000 --- a/net-mgmt/netdata/files/extra-patch-web_gui_index.html +++ /dev/null @@ -1,28 +0,0 @@ ---- web/gui/index.html.orig 2020-04-13 16:02:25 UTC -+++ web/gui/index.html -@@ -90,7 +90,9 @@ - -