Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/edac-utils/
Date: Thu, 29 Dec 2022 22:54:45
Message-Id: 1672354470.783b363773d46f2a90236d1b0fe42dad0159d4cd.sam@gentoo
1 commit: 783b363773d46f2a90236d1b0fe42dad0159d4cd
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 22:54:08 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 22:54:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=783b3637
7
8 sys-apps/edac-utils: update EAPI 7 -> 8; add pkg_pretend warning
9
10 See 2a2a9c4d140ad55ec9aa64a2f0695b90402f8ad2.
11
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 sys-apps/edac-utils/edac-utils-0.18-r2.ebuild | 64 +++++++++++++++++++++++++++
15 1 file changed, 64 insertions(+)
16
17 diff --git a/sys-apps/edac-utils/edac-utils-0.18-r2.ebuild b/sys-apps/edac-utils/edac-utils-0.18-r2.ebuild
18 new file mode 100644
19 index 000000000000..0562dd9fe509
20 --- /dev/null
21 +++ b/sys-apps/edac-utils/edac-utils-0.18-r2.ebuild
22 @@ -0,0 +1,64 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +inherit autotools systemd
29 +
30 +DESCRIPTION="Userspace helper for Linux kernel EDAC drivers"
31 +HOMEPAGE="https://github.com/grondo/edac-utils"
32 +SRC_URI="https://github.com/grondo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~arm64"
37 +IUSE="debug"
38 +
39 +DEPEND="sys-fs/sysfsutils"
40 +RDEPEND="${DEPEND}
41 + sys-apps/dmidecode"
42 +
43 +PATCHES=(
44 + "${FILESDIR}"/${P}-mitac-hawk.patch
45 +)
46 +
47 +pkg_pretend() {
48 + ewarn "edac-utils can't handle the interface newer kernels use to report"
49 + ewarn "EDAC events, so it may miss some (or all) events which occur."
50 + ewarn "See app-admin/rasdaemon's README for technical details."
51 + ewarn "Consider using app-admin/rasdaemon instead."
52 +}
53 +
54 +src_prepare() {
55 + default
56 +
57 + # Needed to refresh libtool and friends to not call CC directly
58 + # bug #725540
59 + eautoreconf
60 +}
61 +
62 +src_configure() {
63 + econf \
64 + --disable-static \
65 + $(use_enable debug)
66 +}
67 +
68 +src_install() {
69 + default
70 +
71 + # Dump the inappropriate-for-us bundled init script
72 + rm -rf "${ED}/etc/init.d" || die
73 +
74 + # Install our own
75 + newinitd "${FILESDIR}"/edac.init edac
76 + systemd_dounit "${FILESDIR}"/edac.service
77 +
78 + find "${ED}" -name '*.la' -delete || die
79 +}
80 +
81 +pkg_postinst() {
82 + elog "There must be an entry for your mainboard in ${EROOT}/etc/edac/labels.db"
83 + elog "in case you want nice labels in /sys/module/*_edac/"
84 + elog "Run the following command to check whether such an entry is already available:"
85 + elog " edac-ctl --print-labels"
86 +}