diff options
author | Ben Kohler <bkohler@gentoo.org> | 2022-06-30 11:14:26 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2022-06-30 11:14:36 -0500 |
commit | 562ad899d67fbbce3083efc5567613a4e5730cc7 (patch) | |
tree | ddb6f50262dc8d3560724cb3794a14f9d54fcf6e /app-admin | |
parent | sys-apps/kmscon: add 9.0.0 (diff) | |
download | gentoo-562ad899d67fbbce3083efc5567613a4e5730cc7.tar.gz gentoo-562ad899d67fbbce3083efc5567613a4e5730cc7.tar.bz2 gentoo-562ad899d67fbbce3083efc5567613a4e5730cc7.zip |
app-admin/mcelog: add 183
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/mcelog/Manifest | 1 | ||||
-rw-r--r-- | app-admin/mcelog/mcelog-183.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest index db417ba9409a..38a457f6d202 100644 --- a/app-admin/mcelog/Manifest +++ b/app-admin/mcelog/Manifest @@ -1,2 +1,3 @@ DIST mcelog-181.tar.gz 314690 BLAKE2B 4e182c84ae15abf3673e0210940830c66377b275e05c0bf88ff2199ef1b87bf1e9bcff12ebd9c07e5af00d763369c96aae37c274174563fb3ae0db7bbd7306de SHA512 70f0a923bfc0a941b2a70501dd89b8634be52f51c98ab482b212e337684620165f71420205bd779039fe7704e230eb35e47c77802109242dc401803613393bb9 DIST mcelog-182.tar.gz 314857 BLAKE2B fc0716a468ce3eb4fd08806913c7e5e7481f0181f1217bf6e7bc6d675651dd04adac3cd0927428a6f88b15ddd919fbb1c26a4cfd977c3d902906fc09170bb1b3 SHA512 546fd30d16b00efb79e0df49c4c2d7cff08280762f04c4f67c3ceed500dcd19ba63a6eeb55f6ee444f9bbae04431745eb8aa3ded609c10e6be69cf5dd7722443 +DIST mcelog-183.tar.gz 314338 BLAKE2B f1a9999e938fc6fdb22407b08f54b07bfe45d5dd3660c5b9b6d757a6a0becb811130aa0240fbc7aa0ede0334095c80e2d28dce3b1b3940068c918bcf960d4ae7 SHA512 fc9a3fe5eeaedc7957af99fcb91ca16e4a6ea2467fa36e8ffc2152a717f3bd018aa68c67aaaa6e5c12b740d740555013f0d198cb1a3d050817b0e5f7bf3e18cf diff --git a/app-admin/mcelog/mcelog-183.ebuild b/app-admin/mcelog/mcelog-183.ebuild new file mode 100644 index 000000000000..b95ec9cf6b31 --- /dev/null +++ b/app-admin/mcelog/mcelog-183.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..10} ) + +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 +} |