From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D94D9138334 for ; Tue, 25 Sep 2018 12:01:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37286E0A5C; Tue, 25 Sep 2018 12:01:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02D37E0A5C for ; Tue, 25 Sep 2018 12:01:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8CB0A335C5B for ; Tue, 25 Sep 2018 12:01:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D70673CB for ; Tue, 25 Sep 2018 12:01:52 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1537876903.01149efff6d5d1131ae7bec755c9b80ea4210048.bkohler@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mcelog/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/mcelog/Manifest app-admin/mcelog/mcelog-161.ebuild X-VCS-Directories: app-admin/mcelog/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: 01149efff6d5d1131ae7bec755c9b80ea4210048 X-VCS-Branch: master Date: Tue, 25 Sep 2018 12:01:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ec3c6bae-b5ed-4f64-85c6-9dd91d860283 X-Archives-Hash: 8833df28ead7b87709bfae1bed149373 commit: 01149efff6d5d1131ae7bec755c9b80ea4210048 Author: Ben Kohler gentoo org> AuthorDate: Tue Sep 25 12:01:24 2018 +0000 Commit: Ben Kohler gentoo org> CommitDate: Tue Sep 25 12:01:43 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01149eff app-admin/mcelog: bump to 161 Package-Manager: Portage-2.3.50, Repoman-2.3.11 app-admin/mcelog/Manifest | 1 + app-admin/mcelog/mcelog-161.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest index fff18657442..aea877a1775 100644 --- a/app-admin/mcelog/Manifest +++ b/app-admin/mcelog/Manifest @@ -1,2 +1,3 @@ DIST mcelog-154.tar.gz 297148 BLAKE2B 80b2b6b13222d0194d63516607b3132e2146894189e2c3c793c953dc43705a5b386ecb76ae3c8b7b345f8d440f547b3e566b16bf0802d17188cce978e1ad2fc1 SHA512 8a160aaa8a0ed736cb81082321e199e6a6e4f7f6528915752af545db28918e89dcb6bf321a92472d776c61914d08c613900273b3d265a375684e3212547abe38 DIST mcelog-160.tar.gz 307762 BLAKE2B da2c4b7fd2a7e69ff75aa8df4f96616b180b94b0b2f82fdfd4bbcf11515e58585cd371a36c6aaa205c87f627893fa11f165c51ead58d01c89875e76325a56efa SHA512 b31d7bd97b45a11997cff9ce5af534ced56658557544d6c812b0b284fdf40efc6a6cc48f5a6bb80a396273c5b1c870005f7c6dea92445639b0e4642edcee9520 +DIST mcelog-161.tar.gz 308227 BLAKE2B cd208cce2685b779a2cac6d347b890d5bff5f07d2e7165c1d078f914aefcc26bef2ab968ec6baac4410134d8188dd73e4f3d77f13603307f8c6b592554146497 SHA512 af38fcc1cc9621d6cfbda2b9acc7698cddbe631690bf394398978bdafd0d98075539012827ca876cef3f64cc56a00d31d0bd0f4fe2ea9171eb41bf0163e35f0e diff --git a/app-admin/mcelog/mcelog-161.ebuild b/app-admin/mcelog/mcelog-161.ebuild new file mode 100644 index 00000000000..87b3afeab5c --- /dev/null +++ b/app-admin/mcelog/mcelog-161.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 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 "${FILESDIR}"/${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)" +}