diff options
author | Ben Kohler <bkohler@gentoo.org> | 2022-08-26 07:03:42 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2022-08-26 07:03:56 -0500 |
commit | 60276152f59d8c728c4b56873d8df574cbe4bc0d (patch) | |
tree | 86fe63ec2c8be7c90cf5ce9b58cce682a1f6e424 /app-admin/mcelog | |
parent | dev-ruby/mustermann: add 3.0.0 (diff) | |
download | gentoo-60276152f59d8c728c4b56873d8df574cbe4bc0d.tar.gz gentoo-60276152f59d8c728c4b56873d8df574cbe4bc0d.tar.bz2 gentoo-60276152f59d8c728c4b56873d8df574cbe4bc0d.zip |
app-admin/mcelog: add 189
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'app-admin/mcelog')
-rw-r--r-- | app-admin/mcelog/Manifest | 1 | ||||
-rw-r--r-- | app-admin/mcelog/mcelog-189.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest index 43923954b8e3..a182391208fd 100644 --- a/app-admin/mcelog/Manifest +++ b/app-admin/mcelog/Manifest @@ -1,3 +1,4 @@ DIST mcelog-182.tar.gz 314857 BLAKE2B fc0716a468ce3eb4fd08806913c7e5e7481f0181f1217bf6e7bc6d675651dd04adac3cd0927428a6f88b15ddd919fbb1c26a4cfd977c3d902906fc09170bb1b3 SHA512 546fd30d16b00efb79e0df49c4c2d7cff08280762f04c4f67c3ceed500dcd19ba63a6eeb55f6ee444f9bbae04431745eb8aa3ded609c10e6be69cf5dd7722443 DIST mcelog-187.tar.gz 314380 BLAKE2B bc9ea27af67c9dfe5efc9b47d392d25b87e6da781b04bfa9553119f78a524200222c95236f30281414434b97e0d99d2d4cd231275d86d51fe718571bf102e3ff SHA512 dc9c7279e115ca9f2611b80662b015044ecfe43602b17681ef6f3211902bfbc3fc58a7490f65ec46448ec9a1c0a80f018b45ae53d56c96789e41ae5186d0b0e3 DIST mcelog-188.tar.gz 314373 BLAKE2B 379ff871026de9c1c6bfd474ccf2a9a670af8e97027811ac30f27172759b809d6b00c38d2f473860482936ede3e566f25b23e707b38715ea33e2720da8e89ae7 SHA512 6d06671649a40327a1d6e27c5df5b46d5696c9d38b7f39273835db7f4a74530df96a83fec63a84c593ba5043a0b11b3d947d4e7ec7c3d5e7483577938b70cfb3 +DIST mcelog-189.tar.gz 314373 BLAKE2B fcd0a2c52eaa8e75b5d4233190e5daccef2500fba024f505a109bd4b4b69881fc65fe28a15c7a1dea7fcc8ad7d3c6a67e14891ae486d5fa352ccaeae7a71fbd7 SHA512 391123c6153788c533dc8caa749997732495206d59801fde80380c2dbc188236a78bd18bfb6fb27fa9112f436dd3e66314f75ce5aed2c85f3a821fe0c12ff7ea diff --git a/app-admin/mcelog/mcelog-189.ebuild b/app-admin/mcelog/mcelog-189.ebuild new file mode 100644 index 000000000000..b365ebd24343 --- /dev/null +++ b/app-admin/mcelog/mcelog-189.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" +DEPEND="${PYTHON_DEPS}" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != buildonly ]]; then + local CONFIG_CHECK="~X86_MCE" + kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY" + check_extra_config + fi +} + +src_prepare() { + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ + "${FILESDIR}"/${PN}-129-debugflags.patch + eapply_user + tc-export CC + python_fix_shebang genconfig.py +} + +src_install() { + default + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit ${PN}.service + + dodoc *.pdf +} |