Page MenuHomeFreeBSD

D33590.id100470.diff
No OneTemporary

D33590.id100470.diff

Index: net-mgmt/netdata/Makefile
===================================================================
--- net-mgmt/netdata/Makefile
+++ net-mgmt/netdata/Makefile
@@ -3,10 +3,11 @@
PORTNAME= netdata
DISTVERSIONPREFIX= v
DISTVERSION= 1.32.1
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ \
https://github.com/forkbomb9/netdata/commit/:dashboard
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} 91757292561eba170fe363b1f1023583216ca26f.patch:dashboard
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DASHBOARDPATCH}:dashboard
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
@@ -20,23 +21,23 @@
LIB_DEPENDS= libjson-c.so:devel/json-c \
libuuid.so:misc/e2fsprogs-libuuid \
libuv.so:devel/libuv
-RUN_DEPENDS= bash:shells/bash \
- curl:ftp/curl \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR}
+ bash:shells/bash \
+ curl:ftp/curl
USES= autoreconf cpe gmake pathfix pkgconfig:both python shebangfix \
ssl
-SHEBANG_GLOB= *
-
USE_RC_SUBR= ${PORTNAME}
-INSTALL_TARGET= install-strip
-CPPFLAGS+= -D_WANT_VMMETER
+SHEBANG_GLOB= *
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-unit-tests
+INSTALL_TARGET= install-strip
+CPPFLAGS+= -D_WANT_VMMETER
+
SUB_FILES= ${PORTNAME}.conf.sample
SUB_LIST= NETDATA_CACHE=${NETDATA_CACHE} \
NETDATA_LOG=${NETDATA_LOG} \
@@ -55,11 +56,11 @@
OPTIONS_EXCLUDE_riscv64= LTO
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
-GOPLUGIN_DESC= Enable the go collector plugin
+CLOUD_DESC= Enable cloud functionality
+CUPS_DESC= Enable support for cups
+DBENGINE_DESC= Enable support for database engine
+FREEIPMI_DESC= Enable support for freeipmi
+GOPLUGIN_DESC= Enable the go collector plugin
CLOUD_CONFIGURE_ON= --with-aclk-ng
CLOUD_CONFIGURE_OFF= --disable-cloud
@@ -84,22 +85,8 @@
NETDATA_LOG= /var/log/${PORTNAME}
NETDATA_PERST= /var/db/${PORTNAME}
-.if ! ${PORT_OPTIONS:MCLOUD}
-post-patch:
- cd ${WRKSRC} && gpatch -p1 < ${_DISTDIR}/91757292561eba170fe363b1f1023583216ca26f.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' \
- ${PATCH_WRKSRC}/configure.ac
- @${REINPLACE_CMD} -e 's|%%NETDATA_PERST%%|${NETDATA_PERST}|g' \
- ${PATCH_WRKSRC}/configure.ac
- @${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g' \
- ${PATCH_WRKSRC}/configure.ac
- @${REINPLACE_CMD} -e 's|%%PYTHON%%|${PYTHON_CMD}|g' \
- ${PATCH_WRKSRC}/collectors/python.d.plugin/python.d.plugin.in
-.else
+DASHBOARDPATCH= 91757292561eba170fe363b1f1023583216ca26f.patch
+
post-patch:
@${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' \
${PATCH_WRKSRC}/configure.ac
@@ -113,7 +100,9 @@
${PATCH_WRKSRC}/configure.ac
@${REINPLACE_CMD} -e 's|%%PYTHON%%|${PYTHON_CMD}|g' \
${PATCH_WRKSRC}/collectors/python.d.plugin/python.d.plugin.in
-.endif
+
+post-patch-CLOUD-off:
+ cd ${WRKSRC} && gpatch -p1 < ${_DISTDIR}/${DASHBOARDPATCH}
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 19, 3:58 AM (18 h, 17 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29944119
Default Alt Text
D33590.id100470.diff (3 KB)

Event Timeline