diff options
author | Ben Kohler <bkohler@gentoo.org> | 2021-01-09 08:40:03 -0600 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2021-01-09 08:40:16 -0600 |
commit | 688a82986cf62d841c233663b4ee57ae7d675368 (patch) | |
tree | 04a004b8ba3c3adc98045d388ff71d8e13375ee9 /app-admin | |
parent | sys-apps/superdiag: drop old version (diff) | |
download | gentoo-688a82986cf62d841c233663b4ee57ae7d675368.tar.gz gentoo-688a82986cf62d841c233663b4ee57ae7d675368.tar.bz2 gentoo-688a82986cf62d841c233663b4ee57ae7d675368.zip |
app-admin/mcelog: bump to 175
Package-Manager: Portage-3.0.12, Repoman-3.0.2
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-175.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest index 2d317924d4f6..6c453cac6e4e 100644 --- a/app-admin/mcelog/Manifest +++ b/app-admin/mcelog/Manifest @@ -1,2 +1,3 @@ DIST mcelog-173.tar.gz 313098 BLAKE2B f9ddcd85294bdcb1d9e8e888040af94e5e17f4902efb47788b69737bb3408e59014481f822ea083947725f75b7db21250f4c645e7b409a6c23ce7a9ce3708a62 SHA512 fd83828d19f889e3cbb2ffda8fca95f3097644161bfe2ede1fd7600718fa56d343cd985b831eb643dc613a453730e07847de0f05fb14b4a03a8dcd73281199e8 DIST mcelog-174.tar.gz 313473 BLAKE2B 6ffbf6f53e4a08d0dbec04f6cfd96e6b564de5e85acc1f933856e317a26898ae002f19c3b948d9e6dfc56fa3de944045a7cc31e16f53a9c40bd872d4e4ad8a60 SHA512 fcca5f9b54d1f6889ab33d7a172a7ce1e89b4bb8c4b88d589e491068cba49518bd47a3d8886b70ac1b9693bef9e312640cbc64434d8679401bf2d1beda809448 +DIST mcelog-175.tar.gz 315350 BLAKE2B a324af0f4961fb0f6f2af1b198e07a34c24fb5874edd550ca9bdfe452d84cf48d9565530a290a3cdba51eb4ad57f3bbe3d3c9b2beb6d3411195d6dccdb9dfd64 SHA512 992789817a3963a3f118121149bf9b217609f54d85a71c2adb671728cf04777ccb062033df68793afff5fb6a0080b50b4e6fa89cbcd0970d92ca4246155ea13a diff --git a/app-admin/mcelog/mcelog-175.ebuild b/app-admin/mcelog/mcelog-175.ebuild new file mode 100644 index 000000000000..0fceee0d5f22 --- /dev/null +++ b/app-admin/mcelog/mcelog-175.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)" +} |