Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/ndctl/
Date: Thu, 08 Oct 2020 19:48:11
Message-Id: 1602186462.17c413694487055c1557d0eb001ea4f6adae99ee.epsilon-0@gentoo
1 commit: 17c413694487055c1557d0eb001ea4f6adae99ee
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Thu Oct 8 11:39:39 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Oct 8 19:47:42 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=17c41369
7
8 dev-util/ndctl: nvdimm controller for kernel
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 dev-util/ndctl/metadata.xml | 12 ++++++++
14 dev-util/ndctl/ndctl-70.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++
15 dev-util/ndctl/ndctl-9999.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++
16 3 files changed, 132 insertions(+)
17
18 diff --git a/dev-util/ndctl/metadata.xml b/dev-util/ndctl/metadata.xml
19 new file mode 100644
20 index 000000000..e97c4322a
21 --- /dev/null
22 +++ b/dev-util/ndctl/metadata.xml
23 @@ -0,0 +1,12 @@
24 +<?xml version="1.0" encoding="UTF-8"?>
25 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
26 +<pkgmetadata>
27 + <maintainer type="person">
28 + <email>gentoo@×××××.cc</email>
29 + <name>Aisha Tammy</name>
30 + </maintainer>
31 + <maintainer type="project">
32 + <email>sci@g.o</email>
33 + <name>Gentoo Science Project</name>
34 + </maintainer>
35 +</pkgmetadata>
36
37 diff --git a/dev-util/ndctl/ndctl-70.ebuild b/dev-util/ndctl/ndctl-70.ebuild
38 new file mode 100644
39 index 000000000..60cc559bf
40 --- /dev/null
41 +++ b/dev-util/ndctl/ndctl-70.ebuild
42 @@ -0,0 +1,60 @@
43 +# Copyright 1999-2020 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=7
47 +
48 +inherit autotools bash-completion-r1 linux-info systemd
49 +
50 +DESCRIPTION="utility for managing the nvdimm sub-system in the linux kernel"
51 +HOMEPAGE="https://pmem.io"
52 +
53 +if [[ ${PV} == 9999 ]]; then
54 + inherit git-r3
55 + EGIT_REPO_URI="https://github.com/pmem/ndctl"
56 +else
57 + SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
58 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
59 +fi
60 +
61 +LICENSE="LGPL-2.1"
62 +SLOT="0"
63 +RESTRICT="test"
64 +
65 +RDEPEND="
66 + dev-libs/json-c
67 + sys-apps/keyutils
68 + sys-apps/kmod
69 + sys-apps/util-linux
70 + virtual/udev
71 +"
72 +DEPEND="${RDEPEND}"
73 +BDEPEND="
74 + app-text/asciidoc
75 + app-text/xmlto
76 + virtual/pkgconfig
77 +"
78 +
79 +CONFIG_CHECK="~BLK_DEV_RAM_DAX ~FS_DAX ~X86_PMEM_LEGACY ~LIBNVDIMM ~BLK_DEV_PMEM \
80 +~ARCH_HAS_PMEM_API ~TRANSPARENT_HUGEPAGE ~MEMORY_HOTPLUG ~MEMORY_HOTREMOVE \
81 +~ZONE_DEVICE ~FS_DAX_PMD"
82 +
83 +src_prepare() {
84 + "${S}"/git-version-gen
85 + default
86 + eautoreconf
87 +}
88 +
89 +src_configure() {
90 + econf \
91 + --disable-asciidoctor \
92 + --without-bash \
93 + --without-systemd \
94 + --with-keyutils
95 +}
96 +
97 +src_install() {
98 + emake DESTDIR="${D}" install
99 +
100 + dobashcomp contrib/${PN}
101 + systemd_dounit ${PN}/ndctl-monitor.service
102 +}
103
104 diff --git a/dev-util/ndctl/ndctl-9999.ebuild b/dev-util/ndctl/ndctl-9999.ebuild
105 new file mode 100644
106 index 000000000..60cc559bf
107 --- /dev/null
108 +++ b/dev-util/ndctl/ndctl-9999.ebuild
109 @@ -0,0 +1,60 @@
110 +# Copyright 1999-2020 Gentoo Authors
111 +# Distributed under the terms of the GNU General Public License v2
112 +
113 +EAPI=7
114 +
115 +inherit autotools bash-completion-r1 linux-info systemd
116 +
117 +DESCRIPTION="utility for managing the nvdimm sub-system in the linux kernel"
118 +HOMEPAGE="https://pmem.io"
119 +
120 +if [[ ${PV} == 9999 ]]; then
121 + inherit git-r3
122 + EGIT_REPO_URI="https://github.com/pmem/ndctl"
123 +else
124 + SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
125 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
126 +fi
127 +
128 +LICENSE="LGPL-2.1"
129 +SLOT="0"
130 +RESTRICT="test"
131 +
132 +RDEPEND="
133 + dev-libs/json-c
134 + sys-apps/keyutils
135 + sys-apps/kmod
136 + sys-apps/util-linux
137 + virtual/udev
138 +"
139 +DEPEND="${RDEPEND}"
140 +BDEPEND="
141 + app-text/asciidoc
142 + app-text/xmlto
143 + virtual/pkgconfig
144 +"
145 +
146 +CONFIG_CHECK="~BLK_DEV_RAM_DAX ~FS_DAX ~X86_PMEM_LEGACY ~LIBNVDIMM ~BLK_DEV_PMEM \
147 +~ARCH_HAS_PMEM_API ~TRANSPARENT_HUGEPAGE ~MEMORY_HOTPLUG ~MEMORY_HOTREMOVE \
148 +~ZONE_DEVICE ~FS_DAX_PMD"
149 +
150 +src_prepare() {
151 + "${S}"/git-version-gen
152 + default
153 + eautoreconf
154 +}
155 +
156 +src_configure() {
157 + econf \
158 + --disable-asciidoctor \
159 + --without-bash \
160 + --without-systemd \
161 + --with-keyutils
162 +}
163 +
164 +src_install() {
165 + emake DESTDIR="${D}" install
166 +
167 + dobashcomp contrib/${PN}
168 + systemd_dounit ${PN}/ndctl-monitor.service
169 +}