aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2020-02-17 06:58:48 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2020-02-17 06:58:48 +0000
commit4fecb1d4cd7b2d28f9e4f9084b38cef438f50cdf (patch)
treebce81fde0cdb412cdef5359a5244ad18876d59df /net-mgmt
parenta904c1be5b70d8062adf648c100359b7c6f30632 (diff)
downloadports-4fecb1d4cd7b2d28f9e4f9084b38cef438f50cdf.tar.gz
ports-4fecb1d4cd7b2d28f9e4f9084b38cef438f50cdf.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/netdata/Makefile3
-rw-r--r--net-mgmt/netdata/files/patch-collectors_python.d.plugin_python.d.plugin.in6
2 files changed, 6 insertions, 3 deletions
diff --git a/net-mgmt/netdata/Makefile b/net-mgmt/netdata/Makefile
index 909d463a0de3..c1b1dc47b621 100644
--- a/net-mgmt/netdata/Makefile
+++ b/net-mgmt/netdata/Makefile
@@ -4,6 +4,7 @@
PORTNAME= netdata
PORTVERSION= 1.19.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= net-mgmt
MAINTAINER= mmokhi@FreeBSD.org
@@ -88,6 +89,8 @@ post-patch:
${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
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
diff --git a/net-mgmt/netdata/files/patch-collectors_python.d.plugin_python.d.plugin.in b/net-mgmt/netdata/files/patch-collectors_python.d.plugin_python.d.plugin.in
index c251bdbefb7b..0ac0a095638a 100644
--- a/net-mgmt/netdata/files/patch-collectors_python.d.plugin_python.d.plugin.in
+++ b/net-mgmt/netdata/files/patch-collectors_python.d.plugin_python.d.plugin.in
@@ -1,10 +1,10 @@
---- collectors/python.d.plugin/python.d.plugin.in.orig 2019-10-10 13:13:19 UTC
+--- collectors/python.d.plugin/python.d.plugin.in.orig 2020-01-30 23:22:27 UTC
+++ collectors/python.d.plugin/python.d.plugin.in
@@ -1,6 +1,6 @@
- #!/usr/local/bin/bash
+ #!/usr/bin/env bash
'''':;
-pybinary=$(which python || which python3 || which python2)
-+pybinary=$(which python || which python3.6 || which python2.7)
++pybinary=%%PYTHON%%
filtered=()
for arg in "$@"
do