1 |
commit: 7f07faec40be083164bf9df8021defd7bd72541b |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Aug 24 06:01:42 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 24 06:15:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7f07faec |
7 |
|
8 |
sys-kernel/ummunotify: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-kernel/ummunotify/Manifest | 1 + |
13 |
sys-kernel/ummunotify/metadata.xml | 19 +++++++++++++ |
14 |
sys-kernel/ummunotify/ummunotify-2.ebuild | 44 +++++++++++++++++++++++++++++++ |
15 |
3 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/sys-kernel/ummunotify/Manifest b/sys-kernel/ummunotify/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..d7f5a2d25 |
20 |
--- /dev/null |
21 |
+++ b/sys-kernel/ummunotify/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST ummunotify-2.tar.gz 326619 BLAKE2B 4ac329368b688eebb5ab9d064703de90e47112b169cd9448b3f6e0daa7717bdd4d1e957c75f5f87f1d30c08564c929ef50d7fe83f633b95f2abbd13014c1c48c SHA512 0650ec6dd01de97822121a720bff8cb65deaf2ec67de03a52507f47d0cfb169000dd40172f73aef7fbb83735eb8e35aed4da9c20ce5ee4ee6607a12baae7ca0f |
24 |
|
25 |
diff --git a/sys-kernel/ummunotify/metadata.xml b/sys-kernel/ummunotify/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..f0e49c1ab |
28 |
--- /dev/null |
29 |
+++ b/sys-kernel/ummunotify/metadata.xml |
30 |
@@ -0,0 +1,19 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <longdescription lang="en"> |
35 |
+Ummunotify relays MMU notifier events to userspace. This is useful |
36 |
+for libraries that need to track the memory mapping of applications; |
37 |
+for example, MPI implementations using RDMA want to cache memory |
38 |
+registrations for performance, but tracking all possible crazy cases |
39 |
+such as when, say, the FORTRAN runtime frees memory is impossible |
40 |
+without kernel help. |
41 |
+ </longdescription> |
42 |
+ <maintainer type="person"> |
43 |
+ <email>lssndrbarbieri@×××××.com</email> |
44 |
+ <name>Alessandro Barbieri</name> |
45 |
+ </maintainer> |
46 |
+ <upstream> |
47 |
+ <remote-id type="github">Portals4/ummunotify</remote-id> |
48 |
+ </upstream> |
49 |
+</pkgmetadata> |
50 |
|
51 |
diff --git a/sys-kernel/ummunotify/ummunotify-2.ebuild b/sys-kernel/ummunotify/ummunotify-2.ebuild |
52 |
new file mode 100644 |
53 |
index 000000000..3b5fc4b6e |
54 |
--- /dev/null |
55 |
+++ b/sys-kernel/ummunotify/ummunotify-2.ebuild |
56 |
@@ -0,0 +1,44 @@ |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+MAX_KV_MAJ="4" |
63 |
+MAX_KV_MIN="13" |
64 |
+MYP="${PN}-v${PV}" |
65 |
+ |
66 |
+inherit linux-info linux-mod |
67 |
+ |
68 |
+DESCRIPTION="Userspace support for MMU notifications" |
69 |
+HOMEPAGE=" |
70 |
+ https://lkml.org/lkml/2010/4/22/172 |
71 |
+ https://github.com/Portals4/ummunotify |
72 |
+" |
73 |
+SRC_URI="https://github.com/Portals4/ummunotify/raw/master/${MYP}.tar.gz -> ${P}.tar.gz" |
74 |
+S="${WORKDIR}/${MYP}" |
75 |
+ |
76 |
+LICENSE="GPL-2" |
77 |
+SLOT="0" |
78 |
+KEYWORDS="~amd64" |
79 |
+ |
80 |
+DOCS=( Documentation/ummunotify.txt README ) |
81 |
+ |
82 |
+MODULE_NAMES="ummunot(misc:${S}/driver:${S}/driver)" |
83 |
+BUILD_TARGETS="all" |
84 |
+ |
85 |
+pkg_pretend() { |
86 |
+ # https://github.com/Portals4/ummunotify/issues/1 |
87 |
+ if kernel_is -ge ${MAX_KV_MAJ} ${MAX_KV_MIN}; then |
88 |
+ eerror "Unsupported kernel version" |
89 |
+ die |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ linux-mod_src_compile || die |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ einstalldocs |
99 |
+ linux-mod_src_install || die |
100 |
+} |