summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-02 03:39:33 +0100
committerSam James <sam@gentoo.org>2021-08-02 04:17:08 +0100
commitd41bfcd493770555e529637b956a8d51ae4823ff (patch)
treeb2034aa52864333e3e15ed35ea7ec29f88cffa5b /sys-apps
parentsys-apps/edac-utils: add myself as a maintainer (diff)
downloadgentoo-d41bfcd493770555e529637b956a8d51ae4823ff.tar.gz
gentoo-d41bfcd493770555e529637b956a8d51ae4823ff.tar.bz2
gentoo-d41bfcd493770555e529637b956a8d51ae4823ff.zip
sys-apps/edac-utils: update EAPI 5 -> 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/edac-utils/edac-utils-0.18.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-apps/edac-utils/edac-utils-0.18.ebuild b/sys-apps/edac-utils/edac-utils-0.18.ebuild
index 86bafa9ff0dc..c4aa0a9e04cf 100644
--- a/sys-apps/edac-utils/edac-utils-0.18.ebuild
+++ b/sys-apps/edac-utils/edac-utils-0.18.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
DESCRIPTION="Userspace helper for Linux kernel EDAC drivers"
HOMEPAGE="https://github.com/grondo/edac-utils"
@@ -17,6 +17,8 @@ RDEPEND="${DEPEND}
sys-apps/dmidecode"
src_prepare() {
+ default
+
sed -i \
-e 's|-Werror||' \
configure || die
@@ -34,13 +36,13 @@ src_install() {
# We don't need this init.d file
# Modules should be loaded by adding them to /etc/conf.d/modules
# The rest is done via the udev-rule
- rm -rf "${D}/etc/init.d"
+ rm -rf "${ED}/etc/init.d" || die
find "${ED}" -name '*.la' -delete || die
}
pkg_postinst() {
- elog "There must be an entry for your mainboard in /etc/edac/labels.db"
+ 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"