feature/glep-81-cleanup #57
19 changed files with 18 additions and 382 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> -apache_exporter-0.7.0.ebuild:
|
||||||
|
app-metrics/apache_exporter: Purge old ebuild
|
||||||
|
|
||||||
*apache_exporter-0.8.0 (29 Sep 2020)
|
*apache_exporter-0.8.0 (29 Sep 2020)
|
||||||
|
|
||||||
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +apache_exporter-0.8.0.ebuild:
|
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> +apache_exporter-0.8.0.ebuild:
|
||||||
|
|
|
@ -2,9 +2,7 @@ AUX apache_exporter.confd 59 BLAKE2B 4466ae408352adc136fa882cf382c1562e8e0b6401e
|
||||||
AUX apache_exporter.initd 650 BLAKE2B 86d014a2bb4f98a54a5e98060884bb99d1ec4011ce028a981d9d39cc5a5292c39018a80df2a3f0ad4b97aa1a0da059e89ad151f0a0b3d13d6ba6386aa4a9d6d4 SHA512 42367bb35b79cb3c4946ae57e81fa918d94b9b5613469e1e070797ffc9ab7ae74aaa3ad244be35cef8fe5df043fb5e1a604449c3a416e01da7cb11ad95c2b5b1
|
AUX apache_exporter.initd 650 BLAKE2B 86d014a2bb4f98a54a5e98060884bb99d1ec4011ce028a981d9d39cc5a5292c39018a80df2a3f0ad4b97aa1a0da059e89ad151f0a0b3d13d6ba6386aa4a9d6d4 SHA512 42367bb35b79cb3c4946ae57e81fa918d94b9b5613469e1e070797ffc9ab7ae74aaa3ad244be35cef8fe5df043fb5e1a604449c3a416e01da7cb11ad95c2b5b1
|
||||||
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.8.0.tar.gz 1687423 BLAKE2B 8ffe1edd6549c6129ec82852ee7134ba3ceb22f6ab6c678e0c28e6ed58c43d0243184efed013e11e3062b4359beb43914059bc35a31f242c93ef210616248fc7 SHA512 1e885687a8a2d5abfbf16f11d1940688b65404e76fa620ef397eb85733ab0fa9ec9ba4143728466d3036266a6f3ef03409000a7c69d85e2be6eda2075bc8a113
|
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.8.0.ebuild 1338 BLAKE2B fcb27ddbc1776ed8bdc88bda4c3af44fe647b2a6c38ab3965818e1341a1b90a56ef8343516893fd78618765e1a72df25efe712a47057477d4c5dbc53854745a5 SHA512 6d8cb6a7ec0167d45d6cf697d12473b1c9328a22fd0e1a2efb4fb290c56a240634660bc221f19009e230e63679263807a0db1d484525d43932517d0b26c7c559
|
EBUILD apache_exporter-0.8.0.ebuild 1338 BLAKE2B fcb27ddbc1776ed8bdc88bda4c3af44fe647b2a6c38ab3965818e1341a1b90a56ef8343516893fd78618765e1a72df25efe712a47057477d4c5dbc53854745a5 SHA512 6d8cb6a7ec0167d45d6cf697d12473b1c9328a22fd0e1a2efb4fb290c56a240634660bc221f19009e230e63679263807a0db1d484525d43932517d0b26c7c559
|
||||||
MISC ChangeLog 759 BLAKE2B 84c47f8fa189d99c9ef6877f28e621d7c941bd15da4f99b72efcf54968e4acaa0cf8775889445781d71e2e5cfb42e2e9aee4dfed7e9b41a05b3ce8a21a19de23 SHA512 26c74833beabaaed82e904fcaded62f4ee5f5b743d0b0e2cea91faec7d2cb737e45cdf1a118ca51b56a49d7f5da0ad4f5aa9f6d02c9d4bcd71c26d2ed0598e76
|
MISC ChangeLog 889 BLAKE2B eaf24b467c3d48a2e44fffe791dded5128f6f71aff5e83ae31449c68a20a0b54c09165047f2697626ff0080a02e3aaeef4b0e6ab0d8985e34f5de70d968c3397 SHA512 690e01431ad7780f75863f9e5d4e94bb4ea6204f4f3a18dcfb8c45b2eec3485f93efdbbaa88abcd912c016b977adbc93ba9f0544e9d090c8f5220f82d242e2af
|
||||||
MISC metadata.xml 337 BLAKE2B bd72b6097fead5eaf80082790d3712ae0893b118140b62f58639f0e5c56bebf57dbd0ccd0ea19af82b2dce88c88c494d88290f98df4818e4fad3f4386398d171 SHA512 aee4825d8b90a8fd84fb558b9af4b7eb889fcf81bae6c7b317a9d69f62b06dd0f0bc2aa91aa2c32f10ff91fdbf64b341d7e5adc3c65a5225c7e0e92d7a6b7816
|
MISC metadata.xml 337 BLAKE2B bd72b6097fead5eaf80082790d3712ae0893b118140b62f58639f0e5c56bebf57dbd0ccd0ea19af82b2dce88c88c494d88290f98df4818e4fad3f4386398d171 SHA512 aee4825d8b90a8fd84fb558b9af4b7eb889fcf81bae6c7b317a9d69f62b06dd0f0bc2aa91aa2c32f10ff91fdbf64b341d7e5adc3c65a5225c7e0e92d7a6b7816
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot systemd
|
|
||||||
|
|
||||||
EGO_PN="github.com/Lusitaniae/apache_exporter"
|
|
||||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
|
||||||
APACHE_EXPORTER_COMMIT="6195241"
|
|
||||||
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"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${PN}
|
|
||||||
enewuser ${PN} -1 -1 -1 ${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
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 ${PN}:${PN} /var/log/apache_exporter
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
}
|
|
|
@ -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)
|
*mysqld_exporter-0.12.1_p20200622 (27 Sep 2020)
|
||||||
|
|
||||||
27 Sep 2020; Manuel Friedli <manuel@gentoo.org>
|
27 Sep 2020; Manuel Friedli <manuel@gentoo.org>
|
||||||
|
|
|
@ -4,9 +4,7 @@ AUX mysqld_exporter-r1.initd 2050 BLAKE2B f36d0d954e577f939f613887f86952ebf24602
|
||||||
AUX mysqld_exporter.confd 891 BLAKE2B 340b8d6b5f3fdc0a52851197cfd94b1d9d20fa3cda349c581a016c6cc7edd53cb7d86b634487551f916fd5c84294add402397cb9bf0fc2efb211b589dd571dd2 SHA512 ed4f949c8f5f88ad54c536342adf90be5d74922b54c383735a957e571aba341057830c7e8cdc0e45b53e439c5297d3ad70ba7bd178f77d10615787ed51bcc03f
|
AUX mysqld_exporter.confd 891 BLAKE2B 340b8d6b5f3fdc0a52851197cfd94b1d9d20fa3cda349c581a016c6cc7edd53cb7d86b634487551f916fd5c84294add402397cb9bf0fc2efb211b589dd571dd2 SHA512 ed4f949c8f5f88ad54c536342adf90be5d74922b54c383735a957e571aba341057830c7e8cdc0e45b53e439c5297d3ad70ba7bd178f77d10615787ed51bcc03f
|
||||||
AUX mysqld_exporter.logrotate 68 BLAKE2B 04a9a0df5dae2a2afd3374cd6f6fd5d04df7629bc85ed63792ecc9e2b4772668d1f5b1fe4baf14b17c26a495ffa1ed3a7d748719db9a72f427587243505158d1 SHA512 3eb2e6bfa0eae0847c0b1e2e7fd990068cb0ad570d14463c88a8860d70ebc378b2e3bc4141f0a98e95304c972c765ae48dbff726b208ba825fe1f4e58765e462
|
AUX mysqld_exporter.logrotate 68 BLAKE2B 04a9a0df5dae2a2afd3374cd6f6fd5d04df7629bc85ed63792ecc9e2b4772668d1f5b1fe4baf14b17c26a495ffa1ed3a7d748719db9a72f427587243505158d1 SHA512 3eb2e6bfa0eae0847c0b1e2e7fd990068cb0ad570d14463c88a8860d70ebc378b2e3bc4141f0a98e95304c972c765ae48dbff726b208ba825fe1f4e58765e462
|
||||||
AUX mysqld_exporter.service 200 BLAKE2B 1053fe71dd3a1066ad5512f8ad2b40e34411365816b40f9c8f79b49a125099d0dc479c8cafce4ef4a5ca214859100324d04a1d429403dd08c4107e013f221acf SHA512 aaf7d1eb499aea03b435be24c0949f503f69759ce3507ccf08b81136ccde19d7720f42892924a701931a5ce8fdf297bf889725b789a538fed5e2f87568a95e38
|
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
|
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
|
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
|
MISC metadata.xml 339 BLAKE2B cc95303dfddecf9c81e77995bca8719a87cc74b9c3a95142bea4bc13d9fba4767ea7d5bdc56731e45f59a27a66dfd1e7ecb6924c737961ff30cd690c9ab250b5 SHA512 21cf66c2810306d975812118206a29d21f8ae3ed887c41c43fc66603a5901e261fe86d80e04160a7a31eaceec759f128e09b127a7c885fea0a3d06415743d022
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
*node_exporter-0.18.1 (10 Nov 2019)
|
|
||||||
|
|
||||||
10 Nov 2019; <manuel@gentoo.org> +files/node_exporter-0.18.1-systemd.patch,
|
|
||||||
+files/node_exporter-1.initd, +files/node_exporter.confd, +metadata.xml,
|
|
||||||
+node_exporter-0.18.1.ebuild:
|
|
||||||
app-metrics/node_exporter: Add systemd-patched ebuild fpr version 0.18.1.
|
|
|
@ -1,7 +0,0 @@
|
||||||
AUX node_exporter-0.18.1-systemd.patch 707 BLAKE2B 76a55c30cf7d528064a028396cbe6c057029d21b3fadd79c7af21532b55e3e52ac3a84e0ac318575a8bcce345cd8bb4bc0175007151f9e444719c33731adbcc2 SHA512 b129f354e7a08a8017e609afa5b94f223696755cfdcba575f5854db319897859c7824192f75c2fc446392a2fae16687ae745fa6f51cdded238b0e0eeb5560ab5
|
|
||||||
AUX node_exporter-1.initd 697 BLAKE2B 3c82d0d3f19f57e05dd1aee5be7397ff2c0f48ece8621ddac0f338fac83cf5ac76b82a6c158f07fdde1db64afbbc40f50305ac1380717b65f3f0d6fb2b90f013 SHA512 a51203241eca8aba0b0ec13afa1e8fed94bb9f3aaf48851f12e193ed7e395812cbb782fd41da793ac3dd79f978c5f71bf282ed144521c6ba718ca57bcc734dcf
|
|
||||||
AUX node_exporter.confd 111 BLAKE2B bb40370633c41a4f1283677ed16ad9734c7f180683e4d9d82be36ea5e63d3b8fc2a861a61c62e2e899209f7293588e3e7532ffe52ecb9aab4773a3943168d5dd SHA512 cce5db8eccf2ecfe1198aa8252b04fd6a96006f707e7132c2d01c5400d175551c3b9890c4d57fec9ccbe17594dfb937e1f99ead0e1c3fd8cf22930dabd70418d
|
|
||||||
DIST node_exporter-0.18.1.tar.gz 2110072 BLAKE2B 48c73d00cba892e34e95d40bd29c9ca70bc5748590f00cb7f8adcd25d8a9504f669d887b1273cc65316ca55b06c36d97a3e19a66382f35d5768db7c315981a13 SHA512 cf2b854fbec1ba39b18432cdc11ab507ebc5b2828e6b34b4f49af9b949fcd365cb3e5eb1e265d0825783810c6b1572a8b3512ec27a46e5c83f89a505590159c0
|
|
||||||
EBUILD node_exporter-0.18.1.ebuild 1482 BLAKE2B c3657b87f83fd9d96d890fc0f7f1d14a945a0f87e81e887ff7e62d6ef559477502d787db86c90df9a339d66df749c4f0e0b47a27a6049ce4e57b8dc7b88ee856 SHA512 a4e5531a335807a71496ef581b5fb167def5fc68a7960390e02a04c4b12cf5cbac3bd1b9ede5fbe4e8b0d0592854078b54f4aafe7116bbc60bde63f6cab6f13b
|
|
||||||
MISC ChangeLog 299 BLAKE2B 6c0510ec5b7739758aee9e21c3fc8344f4d48f3aa357af0c5f0ccb3698b6c0658faaa48860ee08e0550c1b72c52dd881637355f482dcdfd85c12847c80b155eb SHA512 e6b541e8d5c21adc241b02578552f73309d30d2fb6006fd70f16850fdeb18b9cf4b7dcd838295537f6eba318cddaaf05831a9db204f953e7bb86249a5a703753
|
|
||||||
MISC metadata.xml 337 BLAKE2B bd72b6097fead5eaf80082790d3712ae0893b118140b62f58639f0e5c56bebf57dbd0ccd0ea19af82b2dce88c88c494d88290f98df4818e4fad3f4386398d171 SHA512 aee4825d8b90a8fd84fb558b9af4b7eb889fcf81bae6c7b317a9d69f62b06dd0f0bc2aa91aa2c32f10ff91fdbf64b341d7e5adc3c65a5225c7e0e92d7a6b7816
|
|
|
@ -1,15 +0,0 @@
|
||||||
Index: node_exporter-0.18.1/src/github.com/prometheus/node_exporter/examples/systemd/node_exporter.service
|
|
||||||
===================================================================
|
|
||||||
--- node_exporter-0.18.1.orig/src/github.com/prometheus/node_exporter/examples/systemd/node_exporter.service
|
|
||||||
+++ node_exporter-0.18.1/src/github.com/prometheus/node_exporter/examples/systemd/node_exporter.service
|
|
||||||
@@ -3,8 +3,8 @@ Description=Node Exporter
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=node_exporter
|
|
||||||
-EnvironmentFile=/etc/sysconfig/node_exporter
|
|
||||||
-ExecStart=/usr/sbin/node_exporter $OPTIONS
|
|
||||||
+EnvironmentFile=/etc/sysconfig/node_exporter/sysconfig.node_exporter
|
|
||||||
+ExecStart=/usr/bin/node_exporter $OPTIONS
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,23 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 2016-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
description="Prometheus machine metrics exporter"
|
|
||||||
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
||||||
user=${user:-${RC_SVCNAME}}
|
|
||||||
group=${group:-${RC_SVCNAME}}
|
|
||||||
|
|
||||||
command="/usr/bin/node_exporter"
|
|
||||||
command_args="${command_args:---collector.textfile.directory=/var/lib/node_exporter/}"
|
|
||||||
command_background="true"
|
|
||||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
||||||
--stdout /var/log/node_exporter/${RC_SVCNAME}.log \
|
|
||||||
--stderr /var/log/node_exporter/${RC_SVCNAME}.log"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
after net
|
|
||||||
}
|
|
||||||
|
|
||||||
start_pre() {
|
|
||||||
checkpath -q -d -m 0755 -o ${user}:${group} /var/log/node_exporter
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
# arguments for prometheus node exporter
|
|
||||||
command_args="--collector.textfile.directory=/var/lib/node_exporter/"
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>manuel@fritteli.ch</email>
|
|
||||||
<name>Manuel Friedli</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">prometheus/node_exporter</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,53 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot systemd
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/node_exporter"
|
|
||||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
|
||||||
NODE_EXPORTER_COMMIT="3db7773"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus exporter for machine metrics"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/node_exporter"
|
|
||||||
SRC_URI="${ARCHIVE_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
PATCHES=("${FILESDIR}/${P}-systemd.patch")
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.12
|
|
||||||
>=dev-util/promu-0.3.0"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${PN}
|
|
||||||
enewuser ${PN} -1 -1 -1 ${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
mkdir -p bin || die
|
|
||||||
GO111MODULE=on GOPATH="${S}" GOCACHE="${T}"/go-cache promu build -v --prefix node_exporter || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin node_exporter/node_exporter
|
|
||||||
dodoc {README,CHANGELOG,CONTRIBUTING}.md
|
|
||||||
systemd_dounit examples/systemd/node_exporter.service
|
|
||||||
insinto /etc/sysconfig/node_exporter
|
|
||||||
doins examples/systemd/sysconfig.node_exporter
|
|
||||||
popd || die
|
|
||||||
keepdir /var/lib/node_exporter /var/log/node_exporter
|
|
||||||
fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter
|
|
||||||
newinitd "${FILESDIR}"/${PN}-1.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
}
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
29 Sep 2020; Manuel Friedli <manuel@gentoo.org>
|
||||||
|
-postfix_exporter-0.1.2.ebuild:
|
||||||
|
app-metrics/postfix_exporter: Purge old ebuild
|
||||||
|
|
||||||
*postfix_exporter-0.2.0-r1 (29 Sep 2020)
|
*postfix_exporter-0.2.0-r1 (29 Sep 2020)
|
||||||
|
|
||||||
29 Sep 2020; Manuel Friedli <manuel@gentoo.org>
|
29 Sep 2020; Manuel Friedli <manuel@gentoo.org>
|
||||||
|
|
|
@ -16,9 +16,7 @@ DIST github.com-prometheus-client_golang-f504d69affe11ec1ccb2e5948127f86878c9fd5
|
||||||
DIST github.com-prometheus-client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz 54718 BLAKE2B 1dec6ac40fc5103117c2cf0538e138fc57c7b9795516c530b3c0dc2f5983f88c2d0eb1b094859815397fb14d50648240556fb6b11a8935586eca29eb66b4e958 SHA512 99bc72ca0887df4c7ab5a006af9c59afdc1281fe6d6d17f2897428a06da80d63d6ccd476deacb933cb208357500f14a7b96e99b9c5a7582e65a7aae87aaf2c50
|
DIST github.com-prometheus-client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz 54718 BLAKE2B 1dec6ac40fc5103117c2cf0538e138fc57c7b9795516c530b3c0dc2f5983f88c2d0eb1b094859815397fb14d50648240556fb6b11a8935586eca29eb66b4e958 SHA512 99bc72ca0887df4c7ab5a006af9c59afdc1281fe6d6d17f2897428a06da80d63d6ccd476deacb933cb208357500f14a7b96e99b9c5a7582e65a7aae87aaf2c50
|
||||||
DIST github.com-prometheus-common-38c53a9f4bfcd932d1b00bfc65e256a7fba6b37a.tar.gz 63007 BLAKE2B a62f727ef9dd42d52f495ab7449cbafbe7c7fcdb1bc171df97c40348dcb7fe12788223d7a2aea3398cae7dd17ec73ae6349b5e5f35f4785f2796cc9a16c2d420 SHA512 4f1ab6cffc309a00ed68959b9372e1d3ea4f8d597b8c462a4e365cf22737245e601b8bda0764bbd1f0172d773805d16e90a8aa90cb95e9462e35320043e04060
|
DIST github.com-prometheus-common-38c53a9f4bfcd932d1b00bfc65e256a7fba6b37a.tar.gz 63007 BLAKE2B a62f727ef9dd42d52f495ab7449cbafbe7c7fcdb1bc171df97c40348dcb7fe12788223d7a2aea3398cae7dd17ec73ae6349b5e5f35f4785f2796cc9a16c2d420 SHA512 4f1ab6cffc309a00ed68959b9372e1d3ea4f8d597b8c462a4e365cf22737245e601b8bda0764bbd1f0172d773805d16e90a8aa90cb95e9462e35320043e04060
|
||||||
DIST github.com-prometheus-procfs-780932d4fbbe0e69b84c34c20f5c8d0981e109ea.tar.gz 56873 BLAKE2B 31ae12d51b6a28c285bd5854b137d2634499d0db3c2c65c0404ca5a902ffec2e9bf689261ea51c2fe1643733f09a780c437f7a7899a5e6c3e3d100a36e07b897 SHA512 a548c6bc71456c9878cb34ad1514d92c8737e01b555e953f848cc1ae7944424b06a14a8ab0c6de4d99dbb189a0f29e2bb9ae09b5adffc327c28f5c50c2819892
|
DIST github.com-prometheus-procfs-780932d4fbbe0e69b84c34c20f5c8d0981e109ea.tar.gz 56873 BLAKE2B 31ae12d51b6a28c285bd5854b137d2634499d0db3c2c65c0404ca5a902ffec2e9bf689261ea51c2fe1643733f09a780c437f7a7899a5e6c3e3d100a36e07b897 SHA512 a548c6bc71456c9878cb34ad1514d92c8737e01b555e953f848cc1ae7944424b06a14a8ab0c6de4d99dbb189a0f29e2bb9ae09b5adffc327c28f5c50c2819892
|
||||||
DIST postfix_exporter-0.1.2.tar.gz 11552 BLAKE2B 987c81482fc984e8f6c870fdaf7ce2ef67b3fa66e5782713a645d35b76a1bde1dde97a79705569d1423a9356309d0b7240c77dba386127e8a5035990220d2a62 SHA512 579793281dedd858538ab9a931e0003cfc9989204ebf4352dd4860e5a7f62b919d77a9e0facb9daff6706771010f9e807061dace8cb88928635d55111c7c482a
|
|
||||||
DIST postfix_exporter-0.2.0.tar.gz 12119 BLAKE2B 3c5b28f31e38bbd28dc4f5d5d7f25db0711595698842e0629e6d5336e80bc22d93ebee35533b94d3ebc07eb48ab9da8c31e7ac0cd759eb3e20fa0d90329a81c4 SHA512 a8e5be3b9dca47111f32981f112e11f2aa5976fc37ca8a1a64e03ea732fa9d3d6963ce03e401b908485097556fcdfb7ef7276372e8a068aab719910f1a9c346f
|
DIST postfix_exporter-0.2.0.tar.gz 12119 BLAKE2B 3c5b28f31e38bbd28dc4f5d5d7f25db0711595698842e0629e6d5336e80bc22d93ebee35533b94d3ebc07eb48ab9da8c31e7ac0cd759eb3e20fa0d90329a81c4 SHA512 a8e5be3b9dca47111f32981f112e11f2aa5976fc37ca8a1a64e03ea732fa9d3d6963ce03e401b908485097556fcdfb7ef7276372e8a068aab719910f1a9c346f
|
||||||
EBUILD postfix_exporter-0.1.2.ebuild 1851 BLAKE2B 101c64cdf667044ff1cd43cdf5500386c4e3d26de962c6e25fd638422f1d1d86ad012ba51ea8421e884ab97efc59a4e8e0a6c5b2d5df5dcc6b22cb50a579bfdc SHA512 eafd06530a5bd5344801d7ed94622ce373372a2b31ab456f50164ae19387c4bf49e8944cbbcb9a792458f28ce7d05f9a959a60d2c5176f16b7997ab215beb695
|
|
||||||
EBUILD postfix_exporter-0.2.0-r1.ebuild 2132 BLAKE2B f5b8ad941c863c494d00ea67ec4a5e5e1ed2d73ce6936c5addef7a2502aa84ef8aa92f369b1de92f26eebb9e1fa8cd667409204b1da6fed4578966fda83585d9 SHA512 b47e792218a73a30b9982e409766ffb0d0bfd7498e511fee6aa7b5c4fbb8a00b474b0f2db5f06c7fe5276d101f29f1e57df6753e0d9168e1737c10b9d7cc7bce
|
EBUILD postfix_exporter-0.2.0-r1.ebuild 2132 BLAKE2B f5b8ad941c863c494d00ea67ec4a5e5e1ed2d73ce6936c5addef7a2502aa84ef8aa92f369b1de92f26eebb9e1fa8cd667409204b1da6fed4578966fda83585d9 SHA512 b47e792218a73a30b9982e409766ffb0d0bfd7498e511fee6aa7b5c4fbb8a00b474b0f2db5f06c7fe5276d101f29f1e57df6753e0d9168e1737c10b9d7cc7bce
|
||||||
MISC ChangeLog 756 BLAKE2B 34804d565adae5adc83ecb4abc287f5e4db09fac220e198e793ea732aba212cfeddaa3417073d654e1e3529196ca707a15dd2c7990e9b255062bd20aa4a1192c SHA512 069a2bf360efc20d90966aa90a15f22b6b43b298e477d79e219e2c273db5ed574b2ed6eafc5b4f32d9a1ea95b361de76b33103fd810f507b44d24cd1dd80c4d3
|
MISC ChangeLog 890 BLAKE2B de6961b87add10ea0b2597276ccf184a88fbe169bbfb1a30e17e48e8bfe5f35213f48a7fa0b597de95465cd9519370ceb81435eeba728618d910eecbd4e77dd3 SHA512 9b227ee69673fe8b7807a07af530d5e10a8840e65f93aac77be720632f11b117f5b2e9278947e6f81ed98afdd5354d07a0c23380ff5ddb4752a107fb5f8add7a
|
||||||
MISC metadata.xml 255 BLAKE2B 1132f0657024f17717e5191a4992978685715f9abb96052db6399468506deaa85454efcaf58c7dcebfe5e1cf8948c767a7b001832d50c7d9dc162b0ff1395361 SHA512 36fb59a02d322553d6bfad2deeff884cc782c54bbb01a3fb344767fb43536905c43950df368e645d08ba9c48f3ec13c05b1d3c827fa12581c164623d2c174d73
|
MISC metadata.xml 255 BLAKE2B 1132f0657024f17717e5191a4992978685715f9abb96052db6399468506deaa85454efcaf58c7dcebfe5e1cf8948c767a7b001832d50c7d9dc162b0ff1395361 SHA512 36fb59a02d322553d6bfad2deeff884cc782c54bbb01a3fb344767fb43536905c43950df368e645d08ba9c48f3ec13c05b1d3c827fa12581c164623d2c174d73
|
||||||
|
|
|
@ -1,59 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# 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 user golang-build golang-vcs-snapshot systemd
|
|
||||||
|
|
||||||
EGO_PN="github.com/kumina/postfix_exporter"
|
|
||||||
ARCHIVE_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus Exporter for Postfix"
|
|
||||||
HOMEPAGE="https://github.com/kumina/postfix_exporter"
|
|
||||||
SRC_URI="${ARCHIVE_URI}
|
|
||||||
${EGO_VENDOR_URI}"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="systemd"
|
|
||||||
|
|
||||||
DEPEND="systemd? ( sys-apps/systemd )"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${PN}
|
|
||||||
enewuser ${PN} -1 -1 -1 ${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
local dir
|
|
||||||
for dir in /var/{lib,log}/${PN}; do
|
|
||||||
keepdir "${dir}"
|
|
||||||
fowners ${PN}:${PN} "${dir}"
|
|
||||||
done
|
|
||||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
|
||||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
|
||||||
systemd_dounit "${FILESDIR}"/"${PN}".service
|
|
||||||
}
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> -prometheus-2.13.1.ebuild:
|
||||||
|
app-metrics/prometheus: Purge old ebuild
|
||||||
|
|
||||||
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> prometheus-2.19.1.ebuild:
|
29 Sep 2020; Manuel Friedli <manuel@gentoo.org> prometheus-2.19.1.ebuild:
|
||||||
app-metrics/prometheus: Add forgotten service file
|
app-metrics/prometheus: Add forgotten service file
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,8 @@ AUX prometheus-3.initd 848 BLAKE2B 062f20c87cbd20325b1160c8bdd6bf0e2a043b03cd55b
|
||||||
AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915ae1482d92096dec9f200d089de2458a6cdb0e72d2bf0652d56e3afd6d5a3cd8a3ed7a6c9a0e3e42c SHA512 37468e897cd34b50b0edc65ada3f0c2e05459c3d96bb7f82d58b6de5bf10a127f1bf7912af93d83d94e3ea7287cfeb2311e36535f291d01a11d152a0b438591c
|
AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915ae1482d92096dec9f200d089de2458a6cdb0e72d2bf0652d56e3afd6d5a3cd8a3ed7a6c9a0e3e42c SHA512 37468e897cd34b50b0edc65ada3f0c2e05459c3d96bb7f82d58b6de5bf10a127f1bf7912af93d83d94e3ea7287cfeb2311e36535f291d01a11d152a0b438591c
|
||||||
AUX prometheus.initd 929 BLAKE2B d48650b11b77d4d04b5458682456fb20f8085dc3efe9d0ddd2a6c75751ddae156bbb83c20082bc7b6833395602c24da61e2f7610bdff291e05e3eeb4fb651317 SHA512 504122eb8ed19beac81987b77eb78bba9b36b2ef15f28b1a542804271046e06363baf464f3c303982f647eba65fbc2b5459235f56625e1ff3fed9834937cd0d2
|
AUX prometheus.initd 929 BLAKE2B d48650b11b77d4d04b5458682456fb20f8085dc3efe9d0ddd2a6c75751ddae156bbb83c20082bc7b6833395602c24da61e2f7610bdff291e05e3eeb4fb651317 SHA512 504122eb8ed19beac81987b77eb78bba9b36b2ef15f28b1a542804271046e06363baf464f3c303982f647eba65fbc2b5459235f56625e1ff3fed9834937cd0d2
|
||||||
AUX prometheus.service 440 BLAKE2B 81a89d51ce54e4af5a1d400cee05418e031bce5d87df5546d5e759a6f9814d16eb88266dd129d40c94c1b7d971281f45f5a63a091a8ee6110fe601b909fc5175 SHA512 db040d60eaeffe5583a2e01d0e8c855ad7585ff89627b6fa0bbeac923381ef32154b49ddf7997d8774937d317cbc705357d90a05d2eedee417f7ce6ee486b291
|
AUX prometheus.service 440 BLAKE2B 81a89d51ce54e4af5a1d400cee05418e031bce5d87df5546d5e759a6f9814d16eb88266dd129d40c94c1b7d971281f45f5a63a091a8ee6110fe601b909fc5175 SHA512 db040d60eaeffe5583a2e01d0e8c855ad7585ff89627b6fa0bbeac923381ef32154b49ddf7997d8774937d317cbc705357d90a05d2eedee417f7ce6ee486b291
|
||||||
DIST prometheus-2.13.1.tar.gz 15249891 BLAKE2B 35cd3c81bdb4f3a783c2ab1f1318946db5b25c94496fe351739a59259a726bf54d418d6b29efeff44c8007353ed63368819ce89ffe6a4f380b7ae216da3c4d63 SHA512 aed3b44db97cd2a67add64d13e950246b25c2b459f6b1081a6c548862c4e85c055254a0dfb94b08ac85f83dbbe30afceb1c54a8ad6f7ff1367aeb6af6d270e8a
|
|
||||||
DIST prometheus-2.19.1-assets.tar.gz 5032055 BLAKE2B 75bc247d3dfbcccf3a9d7ef8a23fabe2d92d698670f5aabb19e1ee019e0197aa4fd49cfd53353e09a765a014af70ad860c7d1b6bce292632e5ed1175dd206ae9 SHA512 52d1f80d9ab2de778e8a0c81549ff83647d3d8af37ccf535a6fc4ac45fe29f25f6592e9b5eb137cd5ed6f6730835e4ba52b6c4c82e5b0bb2336b90c809d756de
|
DIST prometheus-2.19.1-assets.tar.gz 5032055 BLAKE2B 75bc247d3dfbcccf3a9d7ef8a23fabe2d92d698670f5aabb19e1ee019e0197aa4fd49cfd53353e09a765a014af70ad860c7d1b6bce292632e5ed1175dd206ae9 SHA512 52d1f80d9ab2de778e8a0c81549ff83647d3d8af37ccf535a6fc4ac45fe29f25f6592e9b5eb137cd5ed6f6730835e4ba52b6c4c82e5b0bb2336b90c809d756de
|
||||||
DIST prometheus-2.19.1.tar.gz 13343138 BLAKE2B 042f2c6e10e3d7f50b2373d9c3977db0318c8c9839e313463890ccae58c91d6d46c306d5aaeb795fb1a9649477b179999cb6b182aca9dee222d8fba557bf6d74 SHA512 a54a83b21ac8f3477e678ca365b8f04adcbe5cdd8a17d842eb9cd2e3428238841fb0492da6f4ec973f48803b0739667c734ae8a88b48d12555e23410e6461629
|
DIST prometheus-2.19.1.tar.gz 13343138 BLAKE2B 042f2c6e10e3d7f50b2373d9c3977db0318c8c9839e313463890ccae58c91d6d46c306d5aaeb795fb1a9649477b179999cb6b182aca9dee222d8fba557bf6d74 SHA512 a54a83b21ac8f3477e678ca365b8f04adcbe5cdd8a17d842eb9cd2e3428238841fb0492da6f4ec973f48803b0739667c734ae8a88b48d12555e23410e6461629
|
||||||
EBUILD prometheus-2.13.1.ebuild 2063 BLAKE2B 87f71b82f276ab8edee18afc0b3dc6282ba2a729972e01596e50103679e0e19cfd238405871cdc5f45ed2de8415e35195dc6cd9f5db9fa456d79c4a07bfead9f SHA512 a61452a0bc74c2a7c747a37248955a22c369d0fb658b65108d1379789eed9da4592b13ba50d85f70ef6c42d4063e863aa4d7eb609e43dec49f0167379e61778d
|
|
||||||
EBUILD prometheus-2.19.1.ebuild 1892 BLAKE2B 38bfd5f96ea9066ee5f8bd9e77ff9f43627008f6149fcbe148a2865c405636e637a6271907a1e86cdf98e6d9a07252458285346be8b7d41bb967061882372eb5 SHA512 2775060a8268cbf9de19a68fdf8eb3e54333be40746031288b10421084b1de20e3a434d88b84c7d144ce296e97ef6fb799bac3082e851fe51e27bc017274f5e7
|
EBUILD prometheus-2.19.1.ebuild 1892 BLAKE2B 38bfd5f96ea9066ee5f8bd9e77ff9f43627008f6149fcbe148a2865c405636e637a6271907a1e86cdf98e6d9a07252458285346be8b7d41bb967061882372eb5 SHA512 2775060a8268cbf9de19a68fdf8eb3e54333be40746031288b10421084b1de20e3a434d88b84c7d144ce296e97ef6fb799bac3082e851fe51e27bc017274f5e7
|
||||||
MISC ChangeLog 589 BLAKE2B 7d8dff35bfaa4f36c8d950a6d4251fef980fecf1af61af1b0eef73c03799a7886c01aeddd25c65249b0af3fedb2998136797323a362da2cc622fa0beae766c3c SHA512 128ece0ec9428465b2e2308adfec9a54856ecf2ee95d95987a5642aa86bf918201ba0faba895478fef561aef4395b14630a49757cd3bf3c9be8bfe7f2a80264b
|
MISC ChangeLog 710 BLAKE2B b6a69422bfa31f83039edd345b0f1a6db2d93ca9a9c22228cab5daa4a9fce8e3997ad0222ebfdc910e23569ee0e84980300339c8972caaacd59397c3c38d9097 SHA512 d1819bca89bbe9451874f3d40173bb35542d65359cf8566c9f3b4fbc6f9abf809f7fe8a4f7fce2c3a860bcd37df398757e25641f88e3f44f66ddd465d9d49aa3
|
||||||
MISC metadata.xml 334 BLAKE2B 270b8d4817af970210624443197549e469d28b03ad38d87c1d3b7da0cb59476da6394989577fd199d26bf63322d0e74474428e493c8b4969fd74a42aa82adf5b SHA512 41aaef9331d9b27b5d7e0587679199bbbe149c5a4edfa9bc9932c2ea18b2c970d96d8f07a4a33253d567baab666d58e55f928db669ee2ff5d8ef0c7cd5da1e85
|
MISC metadata.xml 334 BLAKE2B 270b8d4817af970210624443197549e469d28b03ad38d87c1d3b7da0cb59476da6394989577fd199d26bf63322d0e74474428e493c8b4969fd74a42aa82adf5b SHA512 41aaef9331d9b27b5d7e0587679199bbbe149c5a4edfa9bc9932c2ea18b2c970d96d8f07a4a33253d567baab666d58e55f928db669ee2ff5d8ef0c7cd5da1e85
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit user golang-build golang-vcs-snapshot systemd
|
|
||||||
|
|
||||||
EGO_PN="github.com/prometheus/prometheus"
|
|
||||||
MY_PV=v${PV/_rc/-rc.}
|
|
||||||
PROMETHEUS_COMMIT="6f92ce5"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DESCRIPTION="Prometheus monitoring system and time series database"
|
|
||||||
HOMEPAGE="https://github.com/prometheus/prometheus"
|
|
||||||
SRC_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
>=dev-lang/go-1.12
|
|
||||||
>=dev-util/promu-0.3.0"
|
|
||||||
|
|
||||||
PROMETHEUS_HOME="/var/lib/prometheus"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup prometheus
|
|
||||||
enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build -v || die
|
|
||||||
popd || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
pushd src/${EGO_PN} || die
|
|
||||||
dobin promtool prometheus
|
|
||||||
dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md}
|
|
||||||
insinto /etc/prometheus
|
|
||||||
doins documentation/examples/prometheus.yml
|
|
||||||
insinto /usr/share/prometheus
|
|
||||||
doins -r console_libraries consoles
|
|
||||||
dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries
|
|
||||||
dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}"/prometheus.service
|
|
||||||
newinitd "${FILESDIR}"/prometheus.initd prometheus
|
|
||||||
newconfd "${FILESDIR}"/prometheus.confd prometheus
|
|
||||||
keepdir /var/log/prometheus /var/lib/prometheus
|
|
||||||
fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then
|
|
||||||
ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format"
|
|
||||||
ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0"
|
|
||||||
ewarn "This release requires a clean storage directory and is not compatible with"
|
|
||||||
ewarn "files created by previous beta releases"
|
|
||||||
fi
|
|
||||||
}
|
|
Loading…
Reference in a new issue