1 |
commit: cb47408a7db26f7d7ccdf308ca8e313d32dd7fe4 |
2 |
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 16:39:11 2022 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 16:42:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb47408a |
7 |
|
8 |
app-emulation/vendor-reset: add 0.1.1_pre20220902 |
9 |
|
10 |
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org> |
11 |
|
12 |
app-emulation/vendor-reset/Manifest | 1 + |
13 |
.../vendor-reset-0.1.1_pre20220902.ebuild | 46 ++++++++++++++++++++++ |
14 |
2 files changed, 47 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/vendor-reset/Manifest b/app-emulation/vendor-reset/Manifest |
17 |
index 3d837e82ee92..17660f5bb12e 100644 |
18 |
--- a/app-emulation/vendor-reset/Manifest |
19 |
+++ b/app-emulation/vendor-reset/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST vendor-reset-0.1.0.tar.gz 12718324 BLAKE2B 762ec8bc289b572ab8f8ecc3fa233e3c78c48c48a261c58ce1be9c10356a55957e0bd8fd01e3143443be74236bf9ed540b84d332788c67aa949599ccc5a564d3 SHA512 ed4dcb1a71fa8901732e729d37b501ac105cc2c93d0666e44c08e311d99a244027339d5709a9305ff992ca2acb2f337793cdb1f9369197911985cd20d6f3139f |
22 |
+DIST vendor-reset-0.1.1_pre20220902.tar.gz 12724563 BLAKE2B 6d1aa45216a4a72981fc766ba7541873902272a27b5eebc08f7b2627f186d6236c3b6f576f997e35a3a9a3bb4b0c5f6a285585522e7c0eb86b446808e2de501b SHA512 27bc02fdbc7d0339c0f706e1ec8406bc47f163fca6d6471dd7ad92272a384ab7319f6180641177f90a38c11aee2def52ae408a2165438980b7fc3aea10f88b4e |
23 |
|
24 |
diff --git a/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20220902.ebuild b/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20220902.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..d0f34c496d9c |
27 |
--- /dev/null |
28 |
+++ b/app-emulation/vendor-reset/vendor-reset-0.1.1_pre20220902.ebuild |
29 |
@@ -0,0 +1,46 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit linux-mod |
36 |
+ |
37 |
+if [[ ${PV} == *9999* ]]; then |
38 |
+ EGIT_REPO_URI="https://github.com/gnif/vendor-reset.git" |
39 |
+ EGIT_BRANCH="master" |
40 |
+ inherit git-r3 |
41 |
+else |
42 |
+ KEYWORDS="~amd64" |
43 |
+ EGIT_COMMIT="7d43285a5054e4b2b18dbba771b57d365943a0f7" |
44 |
+ SRC_URI="https://github.com/gnif/vendor-reset/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="Linux kernel vendor specific hardware reset module" |
48 |
+HOMEPAGE="https://github.com/gnif/vendor-reset" |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+ |
52 |
+DEPEND="" |
53 |
+RDEPEND="${DEPEND}" |
54 |
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}" |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ local CONFIG_CHECK="FTRACE KPROBES PCI_QUIRKS KALLSYMS FUNCTION_TRACER" |
58 |
+ linux-mod_pkg_setup |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ set_arch_to_kernel |
63 |
+ default |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ set_arch_to_kernel |
68 |
+ emake \ |
69 |
+ DESTDIR="${ED}" \ |
70 |
+ INSTALL_MOD_PATH="${ED}" \ |
71 |
+ install |
72 |
+ |
73 |
+ insinto /etc/modules-load.d/ |
74 |
+ newins "${FILESDIR}"/modload.conf vendor-reset.conf |
75 |
+} |