Skip to content
Snippets Groups Projects
Commit f9fb5cbb authored by Jan David Mol's avatar Jan David Mol
Browse files

fix

parent b6500ca1
No related branches found
No related tags found
No related merge requests found
Pipeline #122145 skipped
...@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${S}/${GO_INSTALL}/LICENSE;md5=86d3f3a95c324c9479bd89 ...@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${S}/${GO_INSTALL}/LICENSE;md5=86d3f3a95c324c9479bd89
FILESEXTRAPATHS:prepend := "${THISDIR}:" FILESEXTRAPATHS:prepend := "${THISDIR}:"
SRC_URI = " \ SRC_URI = " \
git://github.com/prometheus/consul_exporter.git;branch=release-1.8;protocol=https \ git://github.com/prometheus/consul_exporter.git;branch=master;protocol=https \
file://files/consul_exporter.service \ file://files/consul_exporter.service \
file://files/consul_exporter.socket \ file://files/consul_exporter.socket \
file://files/consul_exporter.sysconfig \ file://files/consul_exporter.sysconfig \
...@@ -32,6 +32,15 @@ FILES:${PN} += "\ ...@@ -32,6 +32,15 @@ FILES:${PN} += "\
USERADD_PACKAGES = "${PN}" USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin consul_exporter" USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin consul_exporter"
GOFLAGS += "-trimpath -modcacherw -buildmode=pie"
do_compile() {
export GOMODCACHE="${B}/.mod"
cd ${S}/${GO_INSTALL}
go build ${GOFLAGS} ${GO_LDFLAGS} -o ${B}/bin/linux_arm64/consul_exporter ./cmd/consul_exporter/consul_exporter.go
}
do_install() { do_install() {
install -Dm755 bin/linux_arm64/consul_exporter ${D}${bindir}/consul_exporter install -Dm755 bin/linux_arm64/consul_exporter ${D}${bindir}/consul_exporter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment