summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2022-12-26 15:10:30 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2022-12-26 15:10:30 -0800
commitaa8f815b1fc1fd85dbadbf540f2e887414604366 (patch)
tree990df1e4efd76387676ac4f644ca91a0ae1b354e /app-metrics/prometheus-lvm-exporter
parentapp-metrics/prometheus-lvm-exporter: quick tweak of user/group (diff)
downloadgentoo-aa8f815b1fc1fd85dbadbf540f2e887414604366.tar.gz
gentoo-aa8f815b1fc1fd85dbadbf540f2e887414604366.tar.bz2
gentoo-aa8f815b1fc1fd85dbadbf540f2e887414604366.zip
app-metrics/prometheus-lvm-exporter: quick fix for merged-usr cases
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'app-metrics/prometheus-lvm-exporter')
-rw-r--r--app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild b/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild
index 03455ab5fa66..5c2dff9bdaf0 100644
--- a/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild
+++ b/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild
@@ -38,6 +38,10 @@ S="${WORKDIR}/${PN}-${MY_PV}"
PATCHES=( )
+src_prepare() {
+ sed -i -e '/kingpin.Flag.*\<command\>.*/s,/usr/sbin/lvm,/sbin/lvm,g' "${S}"/main.go || die
+}
+
src_compile() {
default
go build .