From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 829DB158089 for ; Mon, 16 Oct 2023 20:58:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C81672BC020; Mon, 16 Oct 2023 20:58:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8EBE2BC020 for ; Mon, 16 Oct 2023 20:58:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AF4F8335D12 for ; Mon, 16 Oct 2023 20:58:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 001DB125D for ; Mon, 16 Oct 2023 20:58:09 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1697489856.c18ea60fb127bfed07ee062ff74c419dedb80e54.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/smartctl_exporter/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-metrics/smartctl_exporter/Manifest app-metrics/smartctl_exporter/metadata.xml app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild X-VCS-Directories: app-metrics/smartctl_exporter/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: c18ea60fb127bfed07ee062ff74c419dedb80e54 X-VCS-Branch: master Date: Mon, 16 Oct 2023 20:58:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cd1e3568-3f80-4d0d-af89-2bf35e78795c X-Archives-Hash: 106e450035933a72fb09aaadc71282db commit: c18ea60fb127bfed07ee062ff74c419dedb80e54 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 16 20:57:19 2023 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Oct 16 20:57:36 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c18ea60f app-metrics/smartctl_exporter: new package Signed-off-by: Robin H. Johnson gentoo.org> app-metrics/smartctl_exporter/Manifest | 2 + app-metrics/smartctl_exporter/metadata.xml | 10 +++++ .../smartctl_exporter-0.11.0.ebuild | 51 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/app-metrics/smartctl_exporter/Manifest b/app-metrics/smartctl_exporter/Manifest new file mode 100644 index 000000000000..5e8be5f843f2 --- /dev/null +++ b/app-metrics/smartctl_exporter/Manifest @@ -0,0 +1,2 @@ +DIST smartctl_exporter-0.11.0-vendor.tar.xz 1348836 BLAKE2B 06999c2df7891d6579a227dc5eab44240f923f3466ce1da8443bc40afcb7d9c493f94d50a083ea26e03969b89c9cff4e977f9cffc8529dac5c323212c139dd9e SHA512 c54bf342e56db7086a3844d96f910a18b9d0e19a434b554421e9c70b02fdf3b2307da6662a0e02de93adedf9484444bbbcb7225659b26273e6106cbf73aa3dbd +DIST smartctl_exporter-0.11.0.tar.gz 29097 BLAKE2B 7e3d85588a83380f8d579a918677d9910ba1922212af65b1918a379315e9f2321f617c5d884fd72086019ddac353817da5d1ec71a8a8b0ecb3edb24f66dd75fa SHA512 2c86d051d17c55e3122130ad4733c5911310698a89d8782a61f3b5541cb7aa689994338125eaa5ee41fdcddbdd8316a6736c734ff5dee6fe0d6c0a2b131fff66 diff --git a/app-metrics/smartctl_exporter/metadata.xml b/app-metrics/smartctl_exporter/metadata.xml new file mode 100644 index 000000000000..ec7f20a9016f --- /dev/null +++ b/app-metrics/smartctl_exporter/metadata.xml @@ -0,0 +1,10 @@ + + + + + robbat2@gentoo.org + + + prometheus-community/smartctl_exporter + + diff --git a/app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild b/app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild new file mode 100644 index 000000000000..93fd041d43a9 --- /dev/null +++ b/app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Export smartctl statistics to prometheus" +HOMEPAGE="https://github.com/prometheus-community/smartctl_exporter" +# Upstream LICENSE file is wrong see https://github.com/prometheus-community/smartctl_exporter/pull/113 +LICENSE="Apache-2.0" +SLOT="0" +BDEPEND="dev-util/promu" +DEPEND="dev-lang/go" +RDEPEND="sys-apps/smartmontools" +KEYWORDS="~amd64 ~x86" + +# uncomment the first setting of MY_PV for a normal release +# MY_PV="v${PV/_rc/-rc.}" +# set MY_PV to the full commit hash for a snapshot release +MY_PV_HASH= +: ${MY_PV_HASH_FOR_VENDOR:=${MY_PV_HASH}} +if [[ -n "${MY_PV_HASH}" ]]; then + MY_PV=${MY_PV_HASH} + SMARTCTL_EXPORTER_COMMIT=${MY_PV_HASH:0:8} + SRC_URI_UPSTREAM="${HOMEPAGE}/archive/${MY_PV}.tar.gz" +else + MY_PV=$PV + SMARTCTL_EXPORTER_COMMIT= + SRC_URI_UPSTREAM="${HOMEPAGE}/archive/refs/tags/v${PV}.tar.gz" +fi +MY_P=${PN}-${MY_PV} +SRC_URI_VENDOR="https://dev.gentoo.org/~robbat2/distfiles/${MY_P}-vendor.tar.xz" +SRC_URI=" + ${SRC_URI_UPSTREAM} -> ${P}.tar.gz + ${SRC_URI_VENDOR} + " + +src_prepare() { + default + if [[ -n $SMARTCTL_EXPORTER_COMMIT ]]; then + sed -i -e "s/{{.Revision}}/${SMARTCTL_EXPORTER_COMMIT}/" .promu.yml || die + fi +} + +src_compile() { + emake build PROMU='/usr/bin/promu' +} + +src_install() { + dodoc *.md + dobin ${PN} +}