diff options
author | Sam James <sam@gentoo.org> | 2022-12-29 22:54:08 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-29 22:54:30 +0000 |
commit | 783b363773d46f2a90236d1b0fe42dad0159d4cd (patch) | |
tree | 08248817899332b748ed930f00891ad0c19c4d16 /sys-apps/edac-utils | |
parent | profiles: mark sys-apps/edac-utils as deprecated (diff) | |
download | gentoo-783b363773d46f2a90236d1b0fe42dad0159d4cd.tar.gz gentoo-783b363773d46f2a90236d1b0fe42dad0159d4cd.tar.bz2 gentoo-783b363773d46f2a90236d1b0fe42dad0159d4cd.zip |
sys-apps/edac-utils: update EAPI 7 -> 8; add pkg_pretend warning
See 2a2a9c4d140ad55ec9aa64a2f0695b90402f8ad2.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/edac-utils')
-rw-r--r-- | sys-apps/edac-utils/edac-utils-0.18-r2.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sys-apps/edac-utils/edac-utils-0.18-r2.ebuild b/sys-apps/edac-utils/edac-utils-0.18-r2.ebuild new file mode 100644 index 000000000000..0562dd9fe509 --- /dev/null +++ b/sys-apps/edac-utils/edac-utils-0.18-r2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd + +DESCRIPTION="Userspace helper for Linux kernel EDAC drivers" +HOMEPAGE="https://github.com/grondo/edac-utils" +SRC_URI="https://github.com/grondo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="debug" + +DEPEND="sys-fs/sysfsutils" +RDEPEND="${DEPEND} + sys-apps/dmidecode" + +PATCHES=( + "${FILESDIR}"/${P}-mitac-hawk.patch +) + +pkg_pretend() { + ewarn "edac-utils can't handle the interface newer kernels use to report" + ewarn "EDAC events, so it may miss some (or all) events which occur." + ewarn "See app-admin/rasdaemon's README for technical details." + ewarn "Consider using app-admin/rasdaemon instead." +} + +src_prepare() { + default + + # Needed to refresh libtool and friends to not call CC directly + # bug #725540 + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use_enable debug) +} + +src_install() { + default + + # Dump the inappropriate-for-us bundled init script + rm -rf "${ED}/etc/init.d" || die + + # Install our own + newinitd "${FILESDIR}"/edac.init edac + systemd_dounit "${FILESDIR}"/edac.service + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + elog "There must be an entry for your mainboard in ${EROOT}/etc/edac/labels.db" + elog "in case you want nice labels in /sys/module/*_edac/" + elog "Run the following command to check whether such an entry is already available:" + elog " edac-ctl --print-labels" +} |