FreeBSD Bugzilla – Attachment 222631 Details for
Bug 253688
[NEW PORT] net-mgmt/py-gstat_exporter: Prometheus gstat exporter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar file
py-gstat_exporter.shar (text/plain), 2.48 KB, created by
Lapo Luchini
on 2021-02-19 11:47:41 UTC
(
hide
)
Description:
shar file
Filename:
MIME Type:
Creator:
Lapo Luchini
Created:
2021-02-19 11:47:41 UTC
Size:
2.48 KB
patch
obsolete
>#!/bin/sh ># This is a shell archive >echo x py-gstat_exporter >mkdir -p py-gstat_exporter > /dev/null 2>&1 >echo x py-gstat_exporter/files >mkdir -p py-gstat_exporter/files > /dev/null 2>&1 >echo x py-gstat_exporter/Makefile >sed 's/^X//' > py-gstat_exporter/Makefile << 'SHAR_END' >X# $FreeBSD$ >X >XPORTNAME= gstat_exporter >XPORTVERSION= 20191119 >XCATEGORIES= net-mgmt python >XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >X >XMAINTAINER= lapo@lapo.it >XCOMMENT= Prometheus exporter for gstat data >X >XLICENSE= BSD3CLAUSE >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7.1:net-mgmt/py-prometheus-client@${PY_FLAVOR} >X >XUSES= python:3.6+ >X >XUSE_GITHUB= yes >XGH_ACCOUNT= tykling >XGH_PROJECT= gstat_exporter >XGH_TAGNAME= 3c1858a52544b2eec56f5470e4042a7171e5448a >X >XNO_BUILD= yes >XNO_ARCH= yes >X >XUSE_RC_SUBR= gstat_exporter >XSUB_LIST= PYTHON_CMD=${PYTHON_CMD} >X >XPLIST_FILES= bin/${PORTNAME}.py >X >Xdo-install: >X ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${PREFIX}/bin >X ${REINPLACE_CMD} -i '' -e "1i\\${.newline}#!${PYTHON_CMD}" ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.py >X >X.include <bsd.port.mk> >SHAR_END >echo x py-gstat_exporter/distinfo >sed 's/^X//' > py-gstat_exporter/distinfo << 'SHAR_END' >XTIMESTAMP = 1613729051 >XSHA256 (tykling-gstat_exporter-20191119-3c1858a52544b2eec56f5470e4042a7171e5448a_GH0.tar.gz) = 385dc23fb7ef95626c03d8a4b454f00ffa015424b2ec9bf94b656aa4c662153f >XSIZE (tykling-gstat_exporter-20191119-3c1858a52544b2eec56f5470e4042a7171e5448a_GH0.tar.gz) = 4141 >SHAR_END >echo x py-gstat_exporter/pkg-descr >sed 's/^X//' > py-gstat_exporter/pkg-descr << 'SHAR_END' >XPrometheus exporter for FreeBSD gstat data >X >XWWW: https://github.com/tykling/gstat_exporter >SHAR_END >echo x py-gstat_exporter/files/gstat_exporter.in >sed 's/^X//' > py-gstat_exporter/files/gstat_exporter.in << 'SHAR_END' >X#!/bin/sh >X# $FreeBSD$ >X# >X# PROVIDE: gstat_exporter >X# REQUIRE: LOGIN NETWORKING >X# KEYWORD: shutdown >X >X# Add the following lines to /etc/rc.conf to enable gstat_exporter: >X# >X# gstat_exporter_enable (bool): Set to "NO" by default. >X# Set it to "YES" to enable gstat_exporter_enable. >X >X. /etc/rc.subr >X >Xname=gstat_exporter >Xrcvar=gstat_exporter_enable >Xdesc="gstat_exporter daemon" >X >Xload_rc_config ${name} >X >X: ${gstat_exporter_enable:=NO} >X >Xpidfile="/var/run/${name}.pid" >Xcommand_interpreter=%%PYTHON_CMD%% >Xcommand=%%PREFIX%%/bin/${name}.py >Xstart_cmd="/usr/sbin/daemon -f -p ${pidfile} $command_interpreter $command" >X >Xrun_rc_command "$1" >SHAR_END >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 253688
: 222631