diff options
author | Ben Kohler <bkohler@gentoo.org> | 2021-01-07 15:53:18 -0600 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2021-01-07 15:53:42 -0600 |
commit | a6686c82c22a0fc316cdfa69938f1f51fc30bd40 (patch) | |
tree | 2a316e0196bef546347eb95df80c290f362846f2 /app-admin/mcelog | |
parent | app-crypt/rhash: Version bump to 1.4.1 (diff) | |
download | gentoo-a6686c82c22a0fc316cdfa69938f1f51fc30bd40.tar.gz gentoo-a6686c82c22a0fc316cdfa69938f1f51fc30bd40.tar.bz2 gentoo-a6686c82c22a0fc316cdfa69938f1f51fc30bd40.zip |
app-admin/mcelog: bump to 174
Package-Manager: Portage-3.0.12, Repoman-3.0.2
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-174.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest index 0e469fe06124..2d317924d4f6 100644 --- a/app-admin/mcelog/Manifest +++ b/app-admin/mcelog/Manifest @@ -1 +1,2 @@ DIST mcelog-173.tar.gz 313098 BLAKE2B f9ddcd85294bdcb1d9e8e888040af94e5e17f4902efb47788b69737bb3408e59014481f822ea083947725f75b7db21250f4c645e7b409a6c23ce7a9ce3708a62 SHA512 fd83828d19f889e3cbb2ffda8fca95f3097644161bfe2ede1fd7600718fa56d343cd985b831eb643dc613a453730e07847de0f05fb14b4a03a8dcd73281199e8 +DIST mcelog-174.tar.gz 313473 BLAKE2B 6ffbf6f53e4a08d0dbec04f6cfd96e6b564de5e85acc1f933856e317a26898ae002f19c3b948d9e6dfc56fa3de944045a7cc31e16f53a9c40bd872d4e4ad8a60 SHA512 fcca5f9b54d1f6889ab33d7a172a7ce1e89b4bb8c4b88d589e491068cba49518bd47a3d8886b70ac1b9693bef9e312640cbc64434d8679401bf2d1beda809448 diff --git a/app-admin/mcelog/mcelog-174.ebuild b/app-admin/mcelog/mcelog-174.ebuild new file mode 100644 index 000000000000..0fceee0d5f22 --- /dev/null +++ b/app-admin/mcelog/mcelog-174.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info 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 )" + +# 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 +} + +src_install() { + default + + insinto /etc/cron.daily + newins ${PN}.cron ${PN} + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit ${PN}.service + + dodoc *.pdf +} + +pkg_postinst() { + einfo "The default configuration set is now installed in /etc/${PN}" + einfo "you might want to edit those files." + einfo + einfo "A sample cronjob is installed into /etc/cron.daily" + einfo "without executable bit (system service is the preferred method now)" +} |