diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2021-02-28 19:09:18 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2021-02-28 19:09:18 +0000 |
commit | f11aaa7f5c24843db150e187781017dd51f6d9e1 (patch) | |
tree | 3d68e3f268f7343c3a2ab0ab9233d675b4933845 /net-mgmt/py-gstat_exporter/Makefile | |
parent | c0b12e89685e7284387ae65e2eb0a4177640c692 (diff) | |
download | ports-f11aaa7f5c24843db150e187781017dd51f6d9e1.tar.gz ports-f11aaa7f5c24843db150e187781017dd51f6d9e1.zip |
Prometheus exporter for FreeBSD gstat data
WWW: https://github.com/tykling/gstat_exporter
PR: 253688
Submitted by: lapo@lapo.it
Notes
Notes:
svn path=/head/; revision=566796
Diffstat (limited to 'net-mgmt/py-gstat_exporter/Makefile')
-rw-r--r-- | net-mgmt/py-gstat_exporter/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-mgmt/py-gstat_exporter/Makefile b/net-mgmt/py-gstat_exporter/Makefile new file mode 100644 index 000000000000..ba03a6deaaf0 --- /dev/null +++ b/net-mgmt/py-gstat_exporter/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= gstat_exporter +PORTVERSION= 20191119 +CATEGORIES= net-mgmt python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lapo@lapo.it +COMMENT= Prometheus exporter for gstat data + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +IGNORE_FreeBSD_11= needs "gstat -C", available since FreeBSD 12.0 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7.1:net-mgmt/py-prometheus-client@${PY_FLAVOR} + +USES= python:3.6+ + +USE_GITHUB= yes +GH_ACCOUNT= tykling +GH_PROJECT= gstat_exporter +GH_TAGNAME= 3c1858a52544b2eec56f5470e4042a7171e5448a + +NO_BUILD= yes +NO_ARCH= yes + +USE_RC_SUBR= gstat_exporter +SUB_LIST= PYTHON_CMD=${PYTHON_CMD} + +PLIST_FILES= bin/${PORTNAME}.py + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${PREFIX}/bin + ${REINPLACE_CMD} -i '' -e "1i\\${.newline}#!${PYTHON_CMD}" ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.py + +.include <bsd.port.mk> |