#!/bin/sh # This is a shell archive echo x pushgateway mkdir -p pushgateway > /dev/null 2>&1 echo x pushgateway/files mkdir -p pushgateway/files > /dev/null 2>&1 echo x pushgateway/Makefile sed 's/^X//' > pushgateway/Makefile << 'SHAR_END' X# Created by: Athanasios Douitsis X# $FreeBSD: head/net-mgmt/pushgateway/Makefile 517745 2019-11-16 12:52:39Z dmgk $ X XPORTNAME= pushgateway XDISTVERSIONPREFIX= v XDISTVERSION= 0.10.0 XPORTREVISION= 2 XCATEGORIES= net-mgmt X XMAINTAINER= aduitsis@cpan.org XCOMMENT= Prometheus push acceptor for ephemeral and batch jobs X XLICENSE= APACHE20 XLICENSE_FILE= ${WRKSRC}/LICENSE X XUSES= gmake go:modules XUSE_GITHUB= yes XGH_ACCOUNT= prometheus X XPLIST_FILES= bin/pushgateway X XGH_TUPLE= \ X alecthomas:kingpin:v2.2.6:alecthomas_kingpin/vendor/gopkg.in/alecthomas/kingpin.v2 \ X alecthomas:template:fb15b899a751:alecthomas_template/vendor/github.com/alecthomas/template \ X alecthomas:units:f65c72e2690d:alecthomas_units/vendor/github.com/alecthomas/units \ X beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \ X go-kit:kit:v0.9.0:go_kit_kit/vendor/github.com/go-kit/kit \ X go-logfmt:logfmt:v0.4.0:go_logfmt_logfmt/vendor/github.com/go-logfmt/logfmt \ X golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \ X golang:sys:06d7bd2c5f4f:golang_sys/vendor/golang.org/x/sys \ X julienschmidt:httprouter:v1.3.0:julienschmidt_httprouter/vendor/github.com/julienschmidt/httprouter \ X kr:logfmt:b84e30acd515:kr_logfmt/vendor/github.com/kr/logfmt \ X matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \ X pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \ X prometheus:client_golang:v1.1.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \ X prometheus:client_model:14fe0d1b01d4:prometheus_client_model/vendor/github.com/prometheus/client_model \ X prometheus:common:v0.7.0:prometheus_common/vendor/github.com/prometheus/common \ X prometheus:procfs:v0.0.5:prometheus_procfs/vendor/github.com/prometheus/procfs \ X shurcooL:httpfs:8d4bc4ba7749:shurcool_httpfs/vendor/github.com/shurcooL/httpfs \ X shurcooL:vfsgen:6a9ea43bcacd:shurcool_vfsgen/vendor/github.com/shurcooL/vfsgen X XUSE_RC_SUBR= pushgateway X XUSERS= prometheus XGROUPS= prometheus X Xdo-test: X @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GMAKE} test) X X.include SHAR_END echo x pushgateway/distinfo sed 's/^X//' > pushgateway/distinfo << 'SHAR_END' XTIMESTAMP = 1603850921 XSHA256 (prometheus-pushgateway-v0.10.0_GH0.tar.gz) = dba0c146398dcc7f6859b5b261d5b26a628d61ab32028de7984892cbc7e25ad4 XSIZE (prometheus-pushgateway-v0.10.0_GH0.tar.gz) = 4776112 XSHA256 (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 4624eae43489de8a71ea60efaf6744c581b6bd62909f7514c484c1ea0efaba5a XSIZE (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 44383 XSHA256 (alecthomas-template-fb15b899a751_GH0.tar.gz) = 2e2a44375eca48ce941182504b5d13aa98182b9a3f64ace33bfda52208bd0f5e XSIZE (alecthomas-template-fb15b899a751_GH0.tar.gz) = 55339 XSHA256 (alecthomas-units-f65c72e2690d_GH0.tar.gz) = ece06024b01821e013bd7158dfe8ec8cc697f586ce8d3cfaa22edde8c2f022c3 XSIZE (alecthomas-units-f65c72e2690d_GH0.tar.gz) = 4925 XSHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825 XSIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867 XSHA256 (go-kit-kit-v0.9.0_GH0.tar.gz) = 41e92e4f5a6111e6f88bec9b46ca41d6eb9167dc2231813616bdf365e641be44 XSIZE (go-kit-kit-v0.9.0_GH0.tar.gz) = 251842 XSHA256 (go-logfmt-logfmt-v0.4.0_GH0.tar.gz) = eddccc7c8d39a6381f7152e73ebf3c725de317c5b984d8a77282e63915aa834d XSIZE (go-logfmt-logfmt-v0.4.0_GH0.tar.gz) = 12724 XSHA256 (golang-protobuf-v1.3.2_GH0.tar.gz) = c9cda622857a17cf0877c5ba76688a931883e505f40744c9495638b6e3da1f65 XSIZE (golang-protobuf-v1.3.2_GH0.tar.gz) = 312285 XSHA256 (golang-sys-06d7bd2c5f4f_GH0.tar.gz) = 19001cb8e1ddc5d57fa7e90f3b252487bf16cf9ca77b38af053ae64e3e721df9 XSIZE (golang-sys-06d7bd2c5f4f_GH0.tar.gz) = 1496370 XSHA256 (julienschmidt-httprouter-v1.3.0_GH0.tar.gz) = 2999dffc23f8ac3872ea37d108ddec0ba570d2780a42876300bdcdb0744908e2 XSIZE (julienschmidt-httprouter-v1.3.0_GH0.tar.gz) = 23889 XSHA256 (kr-logfmt-b84e30acd515_GH0.tar.gz) = bf056ba7960b6846f2aa2c6ec0a217ead3e7259bc6c537f9f3ba3af6eb82cb80 XSIZE (kr-logfmt-b84e30acd515_GH0.tar.gz) = 6411 XSHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b XSIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184 XSHA256 (pkg-errors-v0.8.1_GH0.tar.gz) = 7a428967c6fc2e80cd84a0d9469ab6bd4dbe6b13493ba6294322a933a5a7e356 XSIZE (pkg-errors-v0.8.1_GH0.tar.gz) = 11009 XSHA256 (prometheus-client_golang-v1.1.0_GH0.tar.gz) = 4fd80a210cc090db117d92d126d15cdb5108c84e3178ffc7bd26cb2fa4298343 XSIZE (prometheus-client_golang-v1.1.0_GH0.tar.gz) = 140006 XSHA256 (prometheus-client_model-14fe0d1b01d4_GH0.tar.gz) = e86922566dae5bd684e2b77baabfaee9df34ce11cd7c8bae688b512b3a496f03 XSIZE (prometheus-client_model-14fe0d1b01d4_GH0.tar.gz) = 57495 XSHA256 (prometheus-common-v0.7.0_GH0.tar.gz) = 71b1dce2afd959f9fcab3b5e097dfa9d398a61749851d290114746a3f8f119ae XSIZE (prometheus-common-v0.7.0_GH0.tar.gz) = 100520 XSHA256 (prometheus-procfs-v0.0.5_GH0.tar.gz) = 0a28cd42f6c727ccd48878f7506f0a9c87b72e7dba122f8c6884aba3aab7c800 XSIZE (prometheus-procfs-v0.0.5_GH0.tar.gz) = 112152 XSHA256 (shurcooL-httpfs-8d4bc4ba7749_GH0.tar.gz) = 761fc18152b6998a40b6aa8169fa1275cbbbdba0632096bf5a004a8c5d1c9d99 XSIZE (shurcooL-httpfs-8d4bc4ba7749_GH0.tar.gz) = 8713 XSHA256 (shurcooL-vfsgen-6a9ea43bcacd_GH0.tar.gz) = c13829c1cd9c7ab9395bf0d8e6b18731af112dc9a3b831423f851914d8b2c392 XSIZE (shurcooL-vfsgen-6a9ea43bcacd_GH0.tar.gz) = 13635 SHAR_END echo x pushgateway/pkg-descr sed 's/^X//' > pushgateway/pkg-descr << 'SHAR_END' XThe Prometheus Pushgateway exists to allow ephemeral and batch jobs to Xexpose their metrics to Prometheus. Since these kinds of jobs may not Xexist long enough to be scraped, they can instead push their metrics to Xa Pushgateway. The Pushgateway then exposes these metrics to Prometheus. X XWWW: https://github.com/prometheus/pushgateway SHAR_END echo x pushgateway/files/pushgateway.in sed 's/^X//' > pushgateway/files/pushgateway.in << 'SHAR_END' X#!/bin/sh X# X# $FreeBSD: head/net-mgmt/pushgateway/files/pushgateway.in 512417 2019-09-20 15:09:18Z 0mp $ X X# PROVIDE: pushgateway X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf X# to enable this service: X# X# pushgateway_enable (bool, default: "NO"): X# Set it to YES to enable pushgateway. X# pushgateway_user (string, default: "prometheus"): X# Set user to run pushgateway. X# pushgateway_group (string, default: "prometheus"): X# Set group to run pushgateway. X# pushgateway_data_dir (string, default: "/var/db/pushgateway"): X# Set directory to run pushgateway in. X# pushgateway_persistence_file (string, default: "${pushgateway_data_dir}/persistent.data") X# Set file in which the pushed metrics will be persisted. X# pushgateway_log_file (string, default: "/var/log/pushgateway.log") X# Set file that pushgateway will log to. X# pushgateway_args (string, default: ""): X# Set additional command line arguments. X X. /etc/rc.subr X Xname=pushgateway Xrcvar=pushgateway_enable X Xload_rc_config "$name" X X: ${pushgateway_enable:=NO} X: ${pushgateway_user:=prometheus} X: ${pushgateway_group:=prometheus} X: ${pushgateway_data_dir:=/var/db/pushgateway} X: ${pushgateway_persistence_file:=${pushgateway_data_dir}/persistent.data} X: ${pushgateway_log_file:=/var/log/pushgateway.log} X Xpidfile=/var/run/pushgateway.pid Xcommand=/usr/sbin/daemon Xprocname="%%PREFIX%%/bin/pushgateway" Xsig_reload=HUP Xextra_commands=reload Xcommand_args="-p ${pidfile} /usr/bin/env ${procname} \ X --persistence.file=${pushgateway_persistence_file} \ X ${pushgateway_args} > ${pushgateway_log_file} 2>&1" Xstart_precmd=pushgateway_startprecmd X Xpushgateway_startprecmd() X{ X if [ ! -e "${pidfile}" ]; then X install -o ${pushgateway_user} -g ${pushgateway_group} /dev/null ${pidfile} X fi X if [ ! -f "${pushgateway_log_file}" ]; then X install -o ${pushgateway_user} -g ${pushgateway_group} -m 640 /dev/null ${pushgateway_log_file} X fi X if [ ! -d ${pushgateway_data_dir} ]; then X install -d -o ${pushgateway_user} -g ${pushgateway_group} -m 750 ${pushgateway_data_dir} X fi X} X Xrun_rc_command "$1" SHAR_END exit