Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mcelog/, app-admin/mcelog/files/
Date: Mon, 28 Dec 2020 19:04:02
Message-Id: 1609181644.761856488fbf78bd1b4c237ccba2b645060ca7c5.bkohler@gentoo
1 commit: 761856488fbf78bd1b4c237ccba2b645060ca7c5
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 18:54:04 2020 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 18:54:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76185648
7
8 app-admin/mcelog: drop old
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
12
13 app-admin/mcelog/files/mcelog.service | 10 ------
14 app-admin/mcelog/mcelog-173.ebuild | 58 -----------------------------------
15 2 files changed, 68 deletions(-)
16
17 diff --git a/app-admin/mcelog/files/mcelog.service b/app-admin/mcelog/files/mcelog.service
18 deleted file mode 100644
19 index 4bd553012c9..00000000000
20 --- a/app-admin/mcelog/files/mcelog.service
21 +++ /dev/null
22 @@ -1,10 +0,0 @@
23 -[Unit]
24 -Description=Machine Check Exception Logging Daemon
25 -After=syslog.target
26 -
27 -[Service]
28 -ExecStart=/usr/sbin/mcelog --ignorenodev --daemon --foreground
29 -StandardOutput=syslog
30 -
31 -[Install]
32 -WantedBy=multi-user.target
33
34 diff --git a/app-admin/mcelog/mcelog-173.ebuild b/app-admin/mcelog/mcelog-173.ebuild
35 deleted file mode 100644
36 index c298cf56224..00000000000
37 --- a/app-admin/mcelog/mcelog-173.ebuild
38 +++ /dev/null
39 @@ -1,58 +0,0 @@
40 -# Copyright 1999-2020 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=6
44 -
45 -inherit linux-info systemd toolchain-funcs
46 -
47 -DESCRIPTION="A tool to log and decode Machine Check Exceptions"
48 -HOMEPAGE="http://mcelog.org/"
49 -SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 -
51 -LICENSE="GPL-2"
52 -SLOT="0"
53 -KEYWORDS="amd64 x86"
54 -IUSE="selinux"
55 -
56 -RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
57 -
58 -# TODO: add mce-inject to the tree to support test phase
59 -RESTRICT="test"
60 -
61 -pkg_pretend() {
62 - if [[ ${MERGE_TYPE} != buildonly ]]; then
63 - local CONFIG_CHECK="~X86_MCE"
64 - kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
65 - check_extra_config
66 - fi
67 -}
68 -
69 -src_prepare() {
70 - eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
71 - "${FILESDIR}"/${PN}-129-debugflags.patch
72 - eapply_user
73 - tc-export CC
74 -}
75 -
76 -src_install() {
77 - default
78 -
79 - insinto /etc/cron.daily
80 - newins ${PN}.cron ${PN}
81 -
82 - insinto /etc/logrotate.d/
83 - newins ${PN}.logrotate ${PN}
84 -
85 - newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
86 - systemd_dounit "${FILESDIR}"/${PN}.service
87 -
88 - dodoc *.pdf
89 -}
90 -
91 -pkg_postinst() {
92 - einfo "The default configuration set is now installed in /etc/${PN}"
93 - einfo "you might want to edit those files."
94 - einfo
95 - einfo "A sample cronjob is installed into /etc/cron.daily"
96 - einfo "without executable bit (system service is the preferred method now)"
97 -}