diff options
author | William Hubbs <williamh@gentoo.org> | 2020-07-25 14:51:43 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2020-07-25 14:53:05 -0500 |
commit | 766dd6a76ee8b8fea86f0c24d8e38ff567497189 (patch) | |
tree | 8abac006fe454d0cf00eb806642f883fad552a61 | |
parent | acct-user/postfix_exporter: new user for postfix_exporter (diff) | |
download | gentoo-766dd6a76ee8b8fea86f0c24d8e38ff567497189.tar.gz gentoo-766dd6a76ee8b8fea86f0c24d8e38ff567497189.tar.bz2 gentoo-766dd6a76ee8b8fea86f0c24d8e38ff567497189.zip |
app-metrics/postfix_exporter: 0.1.2-r1 revbump to migrate to glep 81
Signed-off-by: William Hubbs <williamh@gentoo.org>
-rw-r--r-- | app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild b/app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild new file mode 100644 index 000000000000..6466021e6510 --- /dev/null +++ b/app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_VENDOR=( + "github.com/coreos/go-systemd bebb2b01b0473b183e4624aaf8e23ae6f4b22417" + "github.com/coreos/pkg 97fdf19511ea361ae1c100dd393cc47f8dcfa1e1" + "github.com/prometheus/client_golang f504d69affe11ec1ccb2e5948127f86878c9fd57" + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb" + "github.com/golang/protobuf e09c5db296004fbe3f74490e84dcd62c3c5ddb1b" + "github.com/prometheus/client_model 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c" + "github.com/prometheus/common 38c53a9f4bfcd932d1b00bfc65e256a7fba6b37a" + "github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c" + "github.com/prometheus/procfs 780932d4fbbe0e69b84c34c20f5c8d0981e109ea" +) +inherit golang-build golang-vcs-snapshot +EGO_PN="github.com/kumina/postfix_exporter" + +DESCRIPTION="Prometheus Exporter for Postfix" +HOMEPAGE="https://github.com/kumina/postfix_exporter" + +SRC_URI="https://github.com/kumina/postfix_exporter/archive/${PV}.tar.gz -> ${P}.tar.gz + ${EGO_VENDOR_URI}" + +LICENSE="Apache-2.0 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="systemd" + +COMMON_DEPEND="acct-group/postfix_exporter +acct-user/postfix_exporter" +DEPEND="systemd? ( sys-apps/systemd ) + ${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +RESTRICT+=" test" + +src_compile() { + pushd src/${EGO_PN} || die + GOPATH="${S}" \ + go build -tags "$(usex systemd '' 'nosystemd')" -v -o bin/${PN} || die + popd || die +} + +src_install() { + dobin src/${EGO_PN}/bin/${PN} + dodoc src/${EGO_PN}/{CHANGELOG,README}.md + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} |