* [gentoo-commits] repo/gentoo:master commit in: app-metrics/blackbox_exporter/, app-metrics/blackbox_exporter/files/
@ 2019-01-15 14:50 Manuel Rüger
0 siblings, 0 replies; 2+ messages in thread
From: Manuel Rüger @ 2019-01-15 14:50 UTC (permalink / raw
To: gentoo-commits
commit: 49bcb4701ef4e105fa945e8462f6de51f297631f
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 15 14:47:43 2019 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Tue Jan 15 14:49:44 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49bcb470
app-metrics/blackbox_exporter: Add logrotate file
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
.../blackbox_exporter-0.13.0-r1.ebuild | 57 ++++++++++++++++++++++
.../files/blackbox_exporter.logrotated | 7 +++
2 files changed, 64 insertions(+)
diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.13.0-r1.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.13.0-r1.ebuild
new file mode 100644
index 00000000000..b2b61cadacf
--- /dev/null
+++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.13.0-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit fcaps user golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/prometheus/blackbox_exporter"
+EGIT_COMMIT="v${PV/_rc/-rc.}"
+BLACKBOX_EXPORTER_COMMIT="1cfb751"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP"
+HOMEPAGE="https://github.com/prometheus/blackbox_exporter"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-lang/go-1.11
+ dev-util/promu"
+
+FILECAPS=(
+ cap_net_raw usr/bin/blackbox_exporter
+)
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+ default
+ sed -i -e "s/{{.Revision}}/${BLACKBOX_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
+}
+
+src_compile() {
+ pushd src/${EGO_PN} || die
+ mkdir -p bin || die
+ GO111MODULE=on GOPATH="${S}" promu build -v --prefix blackbox_exporter || die
+ popd || die
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin blackbox_exporter/blackbox_exporter
+ dodoc {README,CONFIGURATION}.md blackbox.yml
+ insinto /etc/blackbox_exporter
+ newins example.yml blackbox.yml.example
+ popd || die
+ keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter
+ fowners ${PN}:${PN} /var/lib/blackbox_exporter /var/log/blackbox_exporter
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+}
diff --git a/app-metrics/blackbox_exporter/files/blackbox_exporter.logrotated b/app-metrics/blackbox_exporter/files/blackbox_exporter.logrotated
new file mode 100644
index 00000000000..03eb13a1387
--- /dev/null
+++ b/app-metrics/blackbox_exporter/files/blackbox_exporter.logrotated
@@ -0,0 +1,7 @@
+/var/log/blackbox_exporter/blackbox_exporter.log {
+ missingok
+ size 5M
+ rotate 3
+ compress
+ copytruncate
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-metrics/blackbox_exporter/, app-metrics/blackbox_exporter/files/
@ 2021-04-09 8:21 Mikle Kolyada
0 siblings, 0 replies; 2+ messages in thread
From: Mikle Kolyada @ 2021-04-09 8:21 UTC (permalink / raw
To: gentoo-commits
commit: 59da910700e42a656aa2202cfc840d154a87493f
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 9 08:10:12 2021 +0000
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Apr 9 08:21:33 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59da9107
app-metrics/blackbox_exporter: Version bump (v0.18.0)
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
app-metrics/blackbox_exporter/Manifest | 1 +
.../blackbox_exporter-0.18.0.ebuild | 54 ++++++++++++++++++++++
.../files/blackbox_exporter.service | 29 ++++++++++++
3 files changed, 84 insertions(+)
diff --git a/app-metrics/blackbox_exporter/Manifest b/app-metrics/blackbox_exporter/Manifest
index 774f4cb710b..c8af355696f 100644
--- a/app-metrics/blackbox_exporter/Manifest
+++ b/app-metrics/blackbox_exporter/Manifest
@@ -1,3 +1,4 @@
DIST blackbox_exporter-0.15.1.tar.gz 2120525 BLAKE2B c21a621dce663ccbc184c87b66e894ddc6a94bee9bbd2b9fb432a4d349afb35410f07ad150e946c5f8eb9ec8e6e7f2e6d4cbcafe118e8b2efe34902fbd0bf38a SHA512 2c7d0989bc70982a0fd528c7c6ed5ec6686f5e93db0a90db2b06e4e578503443da0750aaa2d6a01ae4fcd4c722eef522c0e06b019aa59a2eb837f233e317d4e2
DIST blackbox_exporter-0.16.0.tar.gz 2121367 BLAKE2B 92c55dbc3f47d7a2d8c37ad116857dd1d7314a6684d9f228039b09cc086edf72bdf5e0c2cc770ce45d687c45a38f6de72e612c0491ec66f836bed28b75b2e5a9 SHA512 85103b62e345ab5d59626e658047ac75649f9ef991c9bbaff32b95ea75ec2da2bf916573e664520766158805c6cf24163f2850c885a594d32b4f9c4c9dbed1a8
DIST blackbox_exporter-0.17.0.tar.gz 2615179 BLAKE2B 3746ceef8ffdfe017921a78873c09f196d82c3874aa24a0795b56d8858c355f2a4f9f557c65708037358fdbe8445a680c56a3725e7af4d634ef9396419bb4221 SHA512 9e79d083c5c8caebbc19b6feef04dd189bc91a72dcb3aa946a96543fbe28ae2c49cafeed3f42618747661421897adc17988ffc6cf0d7054cf0a385b85eeafc61
+DIST blackbox_exporter-0.18.0.tar.gz 2614990 BLAKE2B 8c6681f3b122b3d83980c74d888442bde4bbbbd02e34a33f1560494d724f4f596e87d2b87a0702d4c860e7bbc3720d70d49d8e08ae9e74b8a6e9abed907d74bd SHA512 6579d190c755515d4e5f05e2b6ed4d811010874dba1e16eaf6052e97c655f87aec33550f22ff173d2f3bbc77d091fb4fccad059f62ca6fbb33a372d48ae692f0
diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.18.0.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.18.0.ebuild
new file mode 100644
index 00000000000..2b8fcf2bfe1
--- /dev/null
+++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.18.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit fcaps go-module systemd
+
+EGO_PN=github.com/prometheus/blackbox_exporter
+MY_PV="v${PV/_rc/-rc.}"
+GIT_COMMIT=1bc7680
+
+DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP"
+HOMEPAGE="https://github.com/prometheus/blackbox_exporter"
+SRC_URI="https://github.com/prometheus/blackbox_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="
+ acct-group/blackbox_exporter
+ acct-user/blackbox_exporter
+"
+
+DEPEND="dev-util/promu"
+
+FILECAPS=(
+ cap_net_raw usr/bin/blackbox_exporter
+)
+
+src_prepare() {
+ default
+ sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die
+}
+
+src_compile() {
+ mkdir -p bin || die
+ promu build -v --prefix bin || die
+}
+
+src_install() {
+ dobin bin/*
+ dosym ../../usr/bin/blackbox_exporter-${PV} /usr/bin/blackbox_exporter
+ dodoc {README,CONFIGURATION}.md blackbox.yml
+ insinto /etc/blackbox_exporter
+ newins example.yml blackbox.yml
+ keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter
+ fowners ${PN}:${PN} /var/lib/blackbox_exporter /var/log/blackbox_exporter
+ systemd_dounit "${FILESDIR}"/blackbox_exporter.service
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+}
diff --git a/app-metrics/blackbox_exporter/files/blackbox_exporter.service b/app-metrics/blackbox_exporter/files/blackbox_exporter.service
new file mode 100644
index 00000000000..a29ee2b7c24
--- /dev/null
+++ b/app-metrics/blackbox_exporter/files/blackbox_exporter.service
@@ -0,0 +1,29 @@
+[Unit]
+Description=Prometheus blackbox Exporter
+After=network.target
+
+[Service]
+User=blackbox_exporter
+Group=blackbox_exporter
+ExecStart=/usr/bin/blackbox_exporter --config.file="/etc/blackbox_exporter/blackbox.yml"
+ExecReload=/bin/kill -HUP $MAINPID
+DynamicUser=true
+
+NoNewPrivileges=true
+ProtectSystem=full
+ProtectKernelModules=true
+ProtectKernelTunables=true
+PrivateTmp=true
+LockPersonality=true
+ProtectHostname=true
+ProtectHome=true
+ProtectControlGroups=true
+ProtectKernelLogs=true
+PrivateDevices=true
+RestrictRealtime=true
+CapabilityBoundingSet=
+MemoryDenyWriteExecute=true
+CapabilityBoundingSet=CAP_NET_RAW
+AmbientCapabilities=CAP_NET_RAW
+
+[Install]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-09 8:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-15 14:50 [gentoo-commits] repo/gentoo:master commit in: app-metrics/blackbox_exporter/, app-metrics/blackbox_exporter/files/ Manuel Rüger
-- strict thread matches above, loose matches on Subject: below --
2021-04-09 8:21 Mikle Kolyada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox