diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2024-05-26 22:50:38 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2024-05-26 22:50:38 -0700 |
commit | b40a0f07d38fe6ddd1c58cc75e2ab45608c4a74e (patch) | |
tree | 3f34c1b841355599005fdd2c76e7dd27f58bde0d /app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild | |
parent | app-metrics/smartctl_exporter: add merged upstream fix for nvme (diff) | |
download | gentoo-b40a0f07d38fe6ddd1c58cc75e2ab45608c4a74e.tar.gz gentoo-b40a0f07d38fe6ddd1c58cc75e2ab45608c4a74e.tar.bz2 gentoo-b40a0f07d38fe6ddd1c58cc75e2ab45608c4a74e.zip |
app-metrics/smartctl_exporter: cleanup old versions
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild')
-rw-r--r-- | app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild b/app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild deleted file mode 100644 index 93fd041d43a9..000000000000 --- a/app-metrics/smartctl_exporter/smartctl_exporter-0.11.0.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# 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} -} |