app-metrics/apache_exporter: Add ebuild for versin 0.8.0.

This is conforming to GLEP 81.

Package-Manager: Portage-3.0.4, Repoman-3.0.1
This commit is contained in:
Manuel Friedli 2020-09-29 20:28:30 +02:00
parent 8f0d74a984
commit 258e446aa7
3 changed files with 58 additions and 1 deletions

View file

@ -1,3 +1,9 @@
*apache_exporter-0.8.0 (29 Sep 2020)
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +apache_exporter-0.8.0.ebuild:
app-metrics/apache_exporter: Add ebuild for versin 0.8.0. This is conforming
to GLEP 81.
14 Nov 2019; <manuel@gentoo.org> apache_exporter-0.7.0.ebuild: 14 Nov 2019; <manuel@gentoo.org> apache_exporter-0.7.0.ebuild:
app-metrics/apache_exporter: Fix ebuild again. app-metrics/apache_exporter: Fix ebuild again.

View file

@ -3,6 +3,8 @@ AUX apache_exporter.initd 650 BLAKE2B 86d014a2bb4f98a54a5e98060884bb99d1ec4011ce
AUX apache_exporter.service 222 BLAKE2B 9f15ab491721873b60d75ea7e5fde68c4262cd56ee3b4b1b5b687cd7fe6f4b03c97ee96c863769985dd14ba4bb8f0047061d52b642e5fd9ca77ada18e8e17f6c SHA512 6f99413a18f6c5214fa6216399c249b80950e16277a91ccc9c1ef89c452efa806234dd3735e9110e26f9e110f1a2156fd5ab37b56107ba753daa16d9100156d6 AUX apache_exporter.service 222 BLAKE2B 9f15ab491721873b60d75ea7e5fde68c4262cd56ee3b4b1b5b687cd7fe6f4b03c97ee96c863769985dd14ba4bb8f0047061d52b642e5fd9ca77ada18e8e17f6c SHA512 6f99413a18f6c5214fa6216399c249b80950e16277a91ccc9c1ef89c452efa806234dd3735e9110e26f9e110f1a2156fd5ab37b56107ba753daa16d9100156d6
AUX sysconfig.apache_exporter 11 BLAKE2B e83c8a1c6cf0d2269d032d80bfb5f37969adce8655298d49f942e19318e1fcabe7f618514ce65d9e0209959d5ccb38141e81fcccd65a754584eaf2db3b4fbd03 SHA512 f4d982f86de30c5b52b04c201cd38fffa87f860bef18af6ab85e856ae2081b919256b918b5f4821ee2fc4da0548d1a95c2522b29cddca57f694e2f26c1b1b2b9 AUX sysconfig.apache_exporter 11 BLAKE2B e83c8a1c6cf0d2269d032d80bfb5f37969adce8655298d49f942e19318e1fcabe7f618514ce65d9e0209959d5ccb38141e81fcccd65a754584eaf2db3b4fbd03 SHA512 f4d982f86de30c5b52b04c201cd38fffa87f860bef18af6ab85e856ae2081b919256b918b5f4821ee2fc4da0548d1a95c2522b29cddca57f694e2f26c1b1b2b9
DIST apache_exporter-0.7.0.tar.gz 987330 BLAKE2B 32bc61767a2b84630c63c5cab31bcec2446a508870334ef1d952a7cf6fd7e8e5868f1059972f9c3c8be2cdc93a3eef56a67814586e31bca7377237690fee7b5d SHA512 c4193bc665e7de292e208e2df8bdb1d261e06bd8e9dd8f9c8ca36928f90bdaa792e3e648955d68acc79502eaf0245e41d8a238d60c839bbd2a46ec928d114950 DIST apache_exporter-0.7.0.tar.gz 987330 BLAKE2B 32bc61767a2b84630c63c5cab31bcec2446a508870334ef1d952a7cf6fd7e8e5868f1059972f9c3c8be2cdc93a3eef56a67814586e31bca7377237690fee7b5d SHA512 c4193bc665e7de292e208e2df8bdb1d261e06bd8e9dd8f9c8ca36928f90bdaa792e3e648955d68acc79502eaf0245e41d8a238d60c839bbd2a46ec928d114950
DIST apache_exporter-0.8.0.tar.gz 1687423 BLAKE2B 8ffe1edd6549c6129ec82852ee7134ba3ceb22f6ab6c678e0c28e6ed58c43d0243184efed013e11e3062b4359beb43914059bc35a31f242c93ef210616248fc7 SHA512 1e885687a8a2d5abfbf16f11d1940688b65404e76fa620ef397eb85733ab0fa9ec9ba4143728466d3036266a6f3ef03409000a7c69d85e2be6eda2075bc8a113
EBUILD apache_exporter-0.7.0.ebuild 1351 BLAKE2B 95ff9f9461be60823d9794b215efee7ccb87ea5ab8ab458a3f70d4bf32206dfebcfc06f32c31fb8f88f004c2f180efd0c9053a369d7392403ceaba36fae51b4c SHA512 6e372b104e919ee3266ac9b591c85d951cca36508f6da59f7801a84b0d5c3de7a284d5ae16b823fcb723f4fdaf732133a0de7f065bd837cb2dfb1bc7edec450b EBUILD apache_exporter-0.7.0.ebuild 1351 BLAKE2B 95ff9f9461be60823d9794b215efee7ccb87ea5ab8ab458a3f70d4bf32206dfebcfc06f32c31fb8f88f004c2f180efd0c9053a369d7392403ceaba36fae51b4c SHA512 6e372b104e919ee3266ac9b591c85d951cca36508f6da59f7801a84b0d5c3de7a284d5ae16b823fcb723f4fdaf732133a0de7f065bd837cb2dfb1bc7edec450b
MISC ChangeLog 545 BLAKE2B c16988718b84b5f4bfbde913dc46939127d2d5b82df905a91c9555b84388e7b9b42913d5d18fa10db8225b08716432b7200a6f4afb67f5496af0db17efb8a997 SHA512 01a3e8fc348842c79f1e26ff618de4b0b676653cfb3c1b20c77bf7b6c97cdaf40c286c46ba002f87216529a672645dfa5fae5d6e906e3e7e6e03eb985d6bb3f4 EBUILD apache_exporter-0.8.0.ebuild 1338 BLAKE2B fcb27ddbc1776ed8bdc88bda4c3af44fe647b2a6c38ab3965818e1341a1b90a56ef8343516893fd78618765e1a72df25efe712a47057477d4c5dbc53854745a5 SHA512 6d8cb6a7ec0167d45d6cf697d12473b1c9328a22fd0e1a2efb4fb290c56a240634660bc221f19009e230e63679263807a0db1d484525d43932517d0b26c7c559
MISC ChangeLog 759 BLAKE2B 84c47f8fa189d99c9ef6877f28e621d7c941bd15da4f99b72efcf54968e4acaa0cf8775889445781d71e2e5cfb42e2e9aee4dfed7e9b41a05b3ce8a21a19de23 SHA512 26c74833beabaaed82e904fcaded62f4ee5f5b743d0b0e2cea91faec7d2cb737e45cdf1a118ca51b56a49d7f5da0ad4f5aa9f6d02c9d4bcd71c26d2ed0598e76
MISC metadata.xml 337 BLAKE2B bd72b6097fead5eaf80082790d3712ae0893b118140b62f58639f0e5c56bebf57dbd0ccd0ea19af82b2dce88c88c494d88290f98df4818e4fad3f4386398d171 SHA512 aee4825d8b90a8fd84fb558b9af4b7eb889fcf81bae6c7b317a9d69f62b06dd0f0bc2aa91aa2c32f10ff91fdbf64b341d7e5adc3c65a5225c7e0e92d7a6b7816 MISC metadata.xml 337 BLAKE2B bd72b6097fead5eaf80082790d3712ae0893b118140b62f58639f0e5c56bebf57dbd0ccd0ea19af82b2dce88c88c494d88290f98df4818e4fad3f4386398d171 SHA512 aee4825d8b90a8fd84fb558b9af4b7eb889fcf81bae6c7b317a9d69f62b06dd0f0bc2aa91aa2c32f10ff91fdbf64b341d7e5adc3c65a5225c7e0e92d7a6b7816

View file

@ -0,0 +1,49 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit golang-build golang-vcs-snapshot systemd
EGO_PN="github.com/Lusitaniae/apache_exporter"
EGIT_COMMIT="v${PV/_rc/-rc.}"
APACHE_EXPORTER_COMMIT="712a679"
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="Prometheus exporter for apache metrics"
HOMEPAGE="https://github.com/Lusitaniae/apache_exporter"
SRC_URI="${ARCHIVE_URI}"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND=">=dev-lang/go-1.12
>=dev-util/promu-0.3.0"
RDEPEND="acct-user/apache_exporter"
src_prepare() {
default
sed -i -e "s/{{.Revision}}/${APACHE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
}
src_compile() {
pushd src/${EGO_PN} || die
mkdir -p bin || die
GOPATH="${S}" GOCACHE="${T}"/go-cache promu build -v --prefix apache_exporter || die
popd || die
}
src_install() {
pushd src/${EGO_PN} || die
dobin apache_exporter/apache_exporter
dodoc README.md
systemd_dounit "${FILESDIR}/${PN}.service"
insinto /etc/sysconfig/apache_exporter
doins "${FILESDIR}/sysconfig.apache_exporter"
popd || die
keepdir /var/log/apache_exporter
fowners apache_exporter:apache_exporter /var/log/apache_exporter
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}