diff options
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/Manifest.gz | bin | 6128 -> 6130 bytes | |||
-rw-r--r-- | app-metrics/mysqld_exporter/Manifest | 5 | ||||
-rw-r--r-- | app-metrics/mysqld_exporter/metadata.xml | 4 | ||||
-rw-r--r-- | app-metrics/mysqld_exporter/mysqld_exporter-0.14.0_p20230328.ebuild | 94 |
4 files changed, 101 insertions, 2 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz Binary files differindex cbb9a2e38d9f..ceb8eed88530 100644 --- a/app-metrics/Manifest.gz +++ b/app-metrics/Manifest.gz diff --git a/app-metrics/mysqld_exporter/Manifest b/app-metrics/mysqld_exporter/Manifest index 4b81341f3313..669c33e91312 100644 --- a/app-metrics/mysqld_exporter/Manifest +++ b/app-metrics/mysqld_exporter/Manifest @@ -6,8 +6,11 @@ DIST mysqld_exporter-0.12.1_p20200622.tar.gz 1640334 BLAKE2B fa52fd7474af548bc94 DIST mysqld_exporter-0.14.0-vendor.tar.xz 1434948 BLAKE2B 9bf1c9dc728aeae678ed42cf75e7dcca1758d1ace02159992c0e11b0c4942a6f5eacad86255225f9ffc023904731165bf7e8a845b9031306c21fa2796911790c SHA512 0bc3735108be955b4056d23df9f9ed593f5e495afeec846944eb4b2c4731db45723e1a3904fb621a4ba7c80dd93eccbcfc02657863271c6c306cf94a54a5fafc DIST mysqld_exporter-0.14.0.tar.gz 100413 BLAKE2B 7c995fd538c217964f4d7537961c3d16cb1d9250808832a90eaec251f20f52b5704f38a64b338067cbae2824ea07099a62e5c5083d76bceb9d3c00fed670e7e3 SHA512 91728055fd66d3ba2d8c6f48eac24dcdbe710e627cb3c28af100fec1656064aafedbcfcfcb8c2f164dab9c3870c1867728e33afd57889644b27ceaadf0c59629 DIST mysqld_exporter-0.14.0_p20221209.tar.gz 103942 BLAKE2B c4184aea6aa3b750dfbba594725d82af6580bfe1424d1e8f9da19cbbec8c1e35f114da562a3c29799df9329df5a248bcf6788df2bdab9d0cc474eac187a395a4 SHA512 8ef068367259e643aba2295d1f087f09b0c61f1534421bfb8400d46c865750d6f115031b445f1f32864e3fb87c80462d4d755f657d289b9144dc7a030ff81b0a +DIST mysqld_exporter-0.14.0_p20230328.tar.gz 92865 BLAKE2B 490219444b14006a356fa423b21c851693cf97f9aa6a9d20e8ee732ae8af5aed07aeda04a3419aebe26051f00c60f5655c3479c4ec3d5a2c9c18b44218cdc3b4 SHA512 a12aeb676ba81732310599344292f8cd5680abd14d8b380ae2d57198530de1969a5712619eca195e5d7b65abf518de7877789f494a9a4fbcebf42e3c8e35dac8 DIST mysqld_exporter-530e351d293dd632f31b80947f5ca420ef17adaf-vendor.tar.xz 1441316 BLAKE2B 8d023ff291c47f30dc6216a255f050591ea585e0c58ca484a8cdb2e0be125f7daabe570b93d786936b6ea59d3996e45210c3ef41932758d05c302bfef2656e81 SHA512 6224d96223b4e38e35626f627c2de1b8ac08294d127556d0c6e73978648296f9a99f21a1aa323053ab07d17642af54ab2d8243bb3d3a9c06919612256fdc32dc +DIST mysqld_exporter-fad2c0ccd8c0df8fed91a81463e930e4485fdfee-vendor.tar.xz 1473744 BLAKE2B 64f4f9dfee04522dbebdc9682c2619cc0f5c63b0835cfca50a37d0cce542e6a926968e23fe94a13d2e76cfbf931026cdcff74823c6c464b1b2f551bf0c70a5cf SHA512 aa10101fd5bc5a2fdef367c855f85d10ebb38b8a92969c5ebf786f011a287f9992559805b8ed24ea39da4db8aedbaf12893a2c6049ea7e90e989adf1ed13d79f EBUILD mysqld_exporter-0.12.1_p20200622.ebuild 2070 BLAKE2B 83dd4d2a98364c49a7857dfb52e5268227cd16f03c947db5f1a26aba17134edafd788ab00b5d0a2d9c4ca696a5e80d30b8282c333f483a4166f02b107567f1a7 SHA512 fb65fd1f3b1109f47e8877dfe2a15ee3649439c2e17473497befb5aee1cf55901a4333ed262eef18d9564b016753e916f7355c7361ad0c55d1e48b9fb9da8395 EBUILD mysqld_exporter-0.14.0.ebuild 2456 BLAKE2B 5da08ed3e0a74b3aa230445df5d859faa072c0164d0537e16555a0ce29c988e0ed9c9a62eaa701065bed98ad0f4fbf524a41bc9d28dbf8cd8defd9b4e37b6174 SHA512 d4ba3633d8c8e1cf75a287d53489b33cf01625347a83fb4d050dc80f4326b6f222d1254eb67001b8d2f263a5d64910ca3cf097c09562038f6deddfeeff51465e EBUILD mysqld_exporter-0.14.0_p20221209.ebuild 2494 BLAKE2B d43e379ebd0600a0d21e9cecb32ccf56b4516614b3c79e354d1850c31257be6293eeab691ce13ac4ae6770822660897bf7616a29e254a40c1e3820714cfaa73b SHA512 e723aaeb012c05bdefe2c05ce6cfb362303bd66fc4eae6a0854fd38c4cf4b473368b33123f246bc5fa8060230cdb33b52ff1b8e5e416abe7b2468796557771d2 -MISC metadata.xml 259 BLAKE2B 5b3d3620545244e20ec7701172af5ed7dbc170ee9e54f80d62be9d98757423920241d4cd2d57e34774827fefc096e1f37b30c087996d57a383d339b5bb5b793d SHA512 e0445dd09cd8b9ab940f3e30de870736f733bf127269e28ab95e7796ac84f76acd738db9444fb975f0f64a3cd0f0d7f0668bae09815bebf2b6588a3d90f1459f +EBUILD mysqld_exporter-0.14.0_p20230328.ebuild 2536 BLAKE2B a1e99bc5c7d466852ed3252b29ee092f6b5c359b879b78bc4fa7b19b2ceac289c5a22c8b6724baf1980d28c5bb2b2fe36cb5c44ffe4b9ba6c2826018f194449e SHA512 483e9b44d3d9c354ae1c1c719e5d68b024f51414a3b993fc2ec61c7f6a7a22af0b423b25d8f17f21ad5b597ae3a376e0de506874c9d8d26249c6d59381a6248f +MISC metadata.xml 310 BLAKE2B c56b39194b025f8ada1a10f8beb8ee42148a79ec8c6544f170aab4e9ab0eded8a8c0eacae2b44f5fc4ddf3b0b9fddc9a7dceebd1d7e58d7adb6b2e9d187ee437 SHA512 669da69b5460dc5a25c8c61bb0b84e916e2a0cb125195e6970f7d5010438a0df7cdf0ecf04b94db666935d5f04297013b19dc47d0b57647dc394fa8d63d9ff0d diff --git a/app-metrics/mysqld_exporter/metadata.xml b/app-metrics/mysqld_exporter/metadata.xml index 3f68a9476d81..7fc6c5654241 100644 --- a/app-metrics/mysqld_exporter/metadata.xml +++ b/app-metrics/mysqld_exporter/metadata.xml @@ -1,7 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>robbat2@gentoo.org</email> + </maintainer> <upstream> <remote-id type="github">prometheus/mysqld_exporter</remote-id> </upstream> diff --git a/app-metrics/mysqld_exporter/mysqld_exporter-0.14.0_p20230328.ebuild b/app-metrics/mysqld_exporter/mysqld_exporter-0.14.0_p20230328.ebuild new file mode 100644 index 000000000000..8a16a9c55685 --- /dev/null +++ b/app-metrics/mysqld_exporter/mysqld_exporter-0.14.0_p20230328.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module +# uncomment the first setting of MY_PV for a normal release +# MY_PV="v${PV/_rc/-rc.}" +# set MY_PV to the full commit hash for a snapshot release +MY_PV_HASH=fad2c0ccd8c0df8fed91a81463e930e4485fdfee +: ${MY_PV_HASH_FOR_VENDOR:=${MY_PV_HASH}} +if [[ -n "${MY_PV_HASH}" ]]; then + MY_PV=${MY_PV_HASH} + MYSQLD_EXPORTER_COMMIT=${MY_PV_HASH:0:8} + SRC_URI_UPSTREAM="https://github.com/prometheus/mysqld_exporter/archive/${MY_PV}.tar.gz" +else + MY_PV=$PV + MYSQLD_EXPORTER_COMMIT= + SRC_URI_UPSTREAM="https://github.com/prometheus/mysqld_exporter/archive/refs/tags/v${PV}.tar.gz" +fi +MY_P=${PN}-${MY_PV} +SRC_URI_VENDOR="https://dev.gentoo.org/~robbat2/distfiles/${MY_P}-vendor.tar.xz" + +DESCRIPTION="Prometheus exporter for MySQL server metrics" +HOMEPAGE="https://github.com/prometheus/mysqld_exporter" +SRC_URI=" + ${SRC_URI_UPSTREAM} -> ${P}.tar.gz + ${SRC_URI_VENDOR} + " + +LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND="dev-util/promu" + +DEPEND="acct-group/mysqld_exporter + acct-user/mysqld_exporter" + +RDEPEND="${DEPEND}" + +# Comment this for a normal release. +S="${WORKDIR}/${PN}-${MY_PV}" + +PATCHES=( "${FILESDIR}"/${PN}-0.12.1-skip-tests.patch ) + +src_prepare() { + default + + if [[ -n $MYSQLD_EXPORTER_COMMIT ]]; then + sed -i -e "s/{{.Revision}}/${MYSQLD_EXPORTER_COMMIT}/" .promu.yml || die + fi +} + +src_compile() { + mkdir -p bin || die + + promu build --prefix bin || die + + # comment this for a normal release. + mv bin/${PN}-${MY_PV} bin/${PN} || die +} + +src_install() { + dobin bin/* + dodoc {README,CHANGELOG,CONTRIBUTING}.md + + 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} + + 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 +} |