summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2022-12-05 20:55:15 -0500
committerNick Sarnie <sarnex@gentoo.org>2022-12-05 20:58:51 -0500
commite9e5a76e9db897b85f87d705f30040858ccb66e4 (patch)
tree95cd9eb2338f8b920c28e1c6b33993e7ae0917d8 /app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205.ebuild
parentwww-apps/icingaweb2: stabilize 2.11.2 for amd64, x86 (diff)
downloadgentoo-e9e5a76e9db897b85f87d705f30040858ccb66e4.tar.gz
gentoo-e9e5a76e9db897b85f87d705f30040858ccb66e4.tar.bz2
gentoo-e9e5a76e9db897b85f87d705f30040858ccb66e4.zip
app-emulation/vendor-reset: Version bump, bugfix
Closes: https://bugs.gentoo.org/778890 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205.ebuild')
-rw-r--r--app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205.ebuild b/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205.ebuild
new file mode 100644
index 000000000000..ceaaa99a4a5f
--- /dev/null
+++ b/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20221205.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-mod
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/gnif/vendor-reset.git"
+ EGIT_BRANCH="master"
+ inherit git-r3
+else
+ KEYWORDS="~amd64"
+ EGIT_COMMIT="4b466e92a2d9f76ce1082cde982c7be0be91e248"
+ SRC_URI="https://github.com/gnif/vendor-reset/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="Linux kernel vendor specific hardware reset module"
+HOMEPAGE="https://github.com/gnif/vendor-reset"
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+
+PATCHES=( "${FILESDIR}/Respect-eselect-kernel.patch" )
+
+pkg_setup() {
+ local CONFIG_CHECK="FTRACE KPROBES PCI_QUIRKS KALLSYMS FUNCTION_TRACER"
+ linux-mod_pkg_setup
+ export KV_FULL=${KV_FULL}
+ export KERNEL_DIR=${KERNEL_DIR}
+}
+
+src_compile() {
+ set_arch_to_kernel
+ default
+}
+
+src_install() {
+ set_arch_to_kernel
+ emake \
+ DESTDIR="${ED}" \
+ INSTALL_MOD_PATH="${ED}" \
+ install
+
+ insinto /etc/modules-load.d/
+ newins "${FILESDIR}"/modload.conf vendor-reset.conf
+}