app-metrics/mysqld_exporter: Purge old ebuild

Package-Manager: Portage-3.0.4, Repoman-3.0.1
This commit is contained in:
Manuel Friedli 2020-09-29 21:04:56 +02:00
parent 3c948b9867
commit 9f60883b4b
3 changed files with 5 additions and 76 deletions

View file

@ -1,3 +1,7 @@
29 Sep 2020; Manuel Friedli <manuel@gentoo.org>
-mysqld_exporter-0.11.0.ebuild:
app-metrics/mysqld_exporter: Purge old ebuild
*mysqld_exporter-0.12.1_p20200622 (27 Sep 2020)
27 Sep 2020; Manuel Friedli <manuel@gentoo.org>

View file

@ -4,9 +4,7 @@ AUX mysqld_exporter-r1.initd 2050 BLAKE2B f36d0d954e577f939f613887f86952ebf24602
AUX mysqld_exporter.confd 891 BLAKE2B 340b8d6b5f3fdc0a52851197cfd94b1d9d20fa3cda349c581a016c6cc7edd53cb7d86b634487551f916fd5c84294add402397cb9bf0fc2efb211b589dd571dd2 SHA512 ed4f949c8f5f88ad54c536342adf90be5d74922b54c383735a957e571aba341057830c7e8cdc0e45b53e439c5297d3ad70ba7bd178f77d10615787ed51bcc03f
AUX mysqld_exporter.logrotate 68 BLAKE2B 04a9a0df5dae2a2afd3374cd6f6fd5d04df7629bc85ed63792ecc9e2b4772668d1f5b1fe4baf14b17c26a495ffa1ed3a7d748719db9a72f427587243505158d1 SHA512 3eb2e6bfa0eae0847c0b1e2e7fd990068cb0ad570d14463c88a8860d70ebc378b2e3bc4141f0a98e95304c972c765ae48dbff726b208ba825fe1f4e58765e462
AUX mysqld_exporter.service 200 BLAKE2B 1053fe71dd3a1066ad5512f8ad2b40e34411365816b40f9c8f79b49a125099d0dc479c8cafce4ef4a5ca214859100324d04a1d429403dd08c4107e013f221acf SHA512 aaf7d1eb499aea03b435be24c0949f503f69759ce3507ccf08b81136ccde19d7720f42892924a701931a5ce8fdf297bf889725b789a538fed5e2f87568a95e38
DIST mysqld_exporter-0.11.0.tar.gz 1393809 BLAKE2B ac6b04d2ad24f1c083c411f10bbb6724c2458be357ff60e1950aa624955497432295726e7f739dff03aa1ed8290d852a9511e01893f5a2b293e79b3214270578 SHA512 69f39ecc1b17bfcfd3acdad9d92a70c1daf3f0c9690770fa390a818bd29f43a98bfe4856f22b48e9d2d9945ce98ded0ea54c95010755a85ebc3ebfdc353d0c24
DIST mysqld_exporter-0.12.1_p20200622.tar.gz 1640334 BLAKE2B fa52fd7474af548bc9429026d7c92bc543cff7f2e2f5e17007a52adc647d6d022a4ec9d099376cc469b4fdc8bab285e0e699a1b10938fc6b7a6704dcc1466a50 SHA512 ccac9a718214c9ab82362deeb81949cecaa6c2fc6567ef7e3d099ca2dbf8385cb9c498837e41ad0bcdf5ec2c9d82fd159792245b97e53c182a30917e80a20cf1
EBUILD mysqld_exporter-0.11.0.ebuild 1958 BLAKE2B ecced5032743230e246b8813579106a1ba8099ba179261e6322d45a1bc7081c48b2e844c915fc1d6b1bffb9473967aa0821826c9558fdd79ae87043d302c4676 SHA512 5f54025d4e9e6893361eb2c5ae19fc83102ab67187fefe1a310545b2a8e799bea9666d55ff9a8dffa6941a8698f78b2160d908ef5e37495308ab4ce1ac6cbf47
EBUILD mysqld_exporter-0.12.1_p20200622.ebuild 2123 BLAKE2B a7913fac6a7893882e865c995d5f12e33c8dd43a188f7becce4d521ea674ceb8e65cd722597e38dc54ee42e73e973141ef138fd5ba5bb834040cbcc505e6c349 SHA512 983a5e9902162e3e720bb8231d03d6a2b235853e2fdbaba61ea50d5fbc2fa65a3f7d25234ea9052266c1eb6e0f4b68abe02faf04a97ef0b521b492ba2b94c360
MISC ChangeLog 600 BLAKE2B eb783d6ba02c590b3333bae248e0f05e1ab0540dc0210078dc913c690d8dc6fed84bb224d82a8a8778600deeeae493a17bda71ce53beec9afed32b81dee0eea8 SHA512 ded63a7b722348c6afa350f0bc4a28e28871bad168a7d4243f9268add956269d010f2e9a8b17b1b14a65caa0a754e3ac54e0b9205d5bea0c5521df563fe00bbf
MISC ChangeLog 733 BLAKE2B f524170f97aac958542aa79a0c383e2d018bb8aa7a886f34b8f801bd95199e6fec3d065b53ad91b793d48979fc33a8915a3d499eed52e3ea82fa2ae0ad1422d1 SHA512 9eb13634368e353219cf63f07167fb5841bd90041e6d2e1bb1026a37cb6dd141f016c07442547a1a3d79b290e478f27f80a8238725f92988e752342a58561da6
MISC metadata.xml 339 BLAKE2B cc95303dfddecf9c81e77995bca8719a87cc74b9c3a95142bea4bc13d9fba4767ea7d5bdc56731e45f59a27a66dfd1e7ecb6924c737961ff30cd690c9ab250b5 SHA512 21cf66c2810306d975812118206a29d21f8ae3ed887c41c43fc66603a5901e261fe86d80e04160a7a31eaceec759f128e09b127a7c885fea0a3d06415743d022

View file

@ -1,73 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit eapi7-ver user golang-build golang-vcs-snapshot systemd
EGO_PN="github.com/prometheus/mysqld_exporter"
EGIT_COMMIT="v${PV/_rc/-rc.}"
MYSQLD_EXPORTER_COMMIT="8068006"
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="Prometheus exporter for MySQL server metrics"
HOMEPAGE="https://github.com/prometheus/mysqld_exporter"
SRC_URI="${ARCHIVE_URI}"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND="dev-util/promu"
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 /var/lib/mysqld_exporter ${PN}
}
src_prepare() {
default
sed -i -e "s/{{.Revision}}/${MYSQLD_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
}
src_compile() {
pushd src/${EGO_PN} || die
mkdir -p bin || die
GOPATH="${S}" promu build -v --prefix bin || die
popd || die
}
src_install() {
pushd src/${EGO_PN} || die
dobin bin/mysqld_exporter
dodoc {README,CHANGELOG,CONTRIBUTING}.md
popd || die
keepdir /var/lib/mysqld_exporter /var/log/mysqld_exporter
fowners ${PN}:${PN} /var/lib/mysqld_exporter /var/log/mysqld_exporter
fperms 0770 /var/lib/mysqld_exporter
newinitd "${FILESDIR}"/${PN}-r1.initd ${PN}
newconfd "${FILESDIR}"/${PN}-r1.confd ${PN}
systemd_dounit "${FILESDIR}/${PN}.service"
insinto /etc/logrotate.d/
newins "${FILESDIR}"/${PN}.logrotate ${PN}
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
# This is a new installation
elog "Create \"${EROOT%/}/var/lib/mysqld_exporter/.my.cnf\" to read MySQL credentials from file."
else
local _replacing_version=
for _replacing_version in ${REPLACING_VERSIONS}; do
if ! ver_test "${_replacing_version}" -ge "0.11.0"; then
elog "Starting with ${PN}-0.11.0, command-line flags will require double dashes (--)."
elog "You must update your configuration or ${PN} won't start."
break
fi
done
fi
}