aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-10-08 11:39:39 +0000
committerAisha Tammy <gentoo@aisha.cc>2020-10-08 19:47:42 +0000
commit17c413694487055c1557d0eb001ea4f6adae99ee (patch)
tree03e0678585db5e77b3e5d06f20f5951c61a23c49 /dev-util
parentsci-libs/libflame-amd: fast dla computation library (diff)
downloadsci-17c413694487055c1557d0eb001ea4f6adae99ee.tar.gz
sci-17c413694487055c1557d0eb001ea4f6adae99ee.tar.bz2
sci-17c413694487055c1557d0eb001ea4f6adae99ee.zip
dev-util/ndctl: nvdimm controller for kernel
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/ndctl/Manifest1
-rw-r--r--dev-util/ndctl/metadata.xml12
-rw-r--r--dev-util/ndctl/ndctl-70.ebuild60
-rw-r--r--dev-util/ndctl/ndctl-9999.ebuild60
4 files changed, 133 insertions, 0 deletions
diff --git a/dev-util/ndctl/Manifest b/dev-util/ndctl/Manifest
new file mode 100644
index 000000000..834b4a198
--- /dev/null
+++ b/dev-util/ndctl/Manifest
@@ -0,0 +1 @@
+DIST ndctl-70.tar.gz 328631 BLAKE2B 0b8634fb185dae1e9ba708863d0bf309e806856b7ccdb94a6e55937f2c29b6bcbaea7ebf781f86eed8e7ead9e44d05fccef24f944ac1bab77b59957746969da6 SHA512 3ad44efd56f0ef156716f4db5b6c18241e8c5cf52f3b3a3455012f3006d21dd3e2c63a83aa7f7ac8113d61fa8419b80d6182195dff5d176272af63a2d85cb487
diff --git a/dev-util/ndctl/metadata.xml b/dev-util/ndctl/metadata.xml
new file mode 100644
index 000000000..e97c4322a
--- /dev/null
+++ b/dev-util/ndctl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gentoo@aisha.cc</email>
+ <name>Aisha Tammy</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/ndctl/ndctl-70.ebuild b/dev-util/ndctl/ndctl-70.ebuild
new file mode 100644
index 000000000..60cc559bf
--- /dev/null
+++ b/dev-util/ndctl/ndctl-70.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools bash-completion-r1 linux-info systemd
+
+DESCRIPTION="utility for managing the nvdimm sub-system in the linux kernel"
+HOMEPAGE="https://pmem.io"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/pmem/ndctl"
+else
+ SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+RESTRICT="test"
+
+RDEPEND="
+ dev-libs/json-c
+ sys-apps/keyutils
+ sys-apps/kmod
+ sys-apps/util-linux
+ virtual/udev
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-text/asciidoc
+ app-text/xmlto
+ virtual/pkgconfig
+"
+
+CONFIG_CHECK="~BLK_DEV_RAM_DAX ~FS_DAX ~X86_PMEM_LEGACY ~LIBNVDIMM ~BLK_DEV_PMEM \
+~ARCH_HAS_PMEM_API ~TRANSPARENT_HUGEPAGE ~MEMORY_HOTPLUG ~MEMORY_HOTREMOVE \
+~ZONE_DEVICE ~FS_DAX_PMD"
+
+src_prepare() {
+ "${S}"/git-version-gen
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-asciidoctor \
+ --without-bash \
+ --without-systemd \
+ --with-keyutils
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dobashcomp contrib/${PN}
+ systemd_dounit ${PN}/ndctl-monitor.service
+}
diff --git a/dev-util/ndctl/ndctl-9999.ebuild b/dev-util/ndctl/ndctl-9999.ebuild
new file mode 100644
index 000000000..60cc559bf
--- /dev/null
+++ b/dev-util/ndctl/ndctl-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools bash-completion-r1 linux-info systemd
+
+DESCRIPTION="utility for managing the nvdimm sub-system in the linux kernel"
+HOMEPAGE="https://pmem.io"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/pmem/ndctl"
+else
+ SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+RESTRICT="test"
+
+RDEPEND="
+ dev-libs/json-c
+ sys-apps/keyutils
+ sys-apps/kmod
+ sys-apps/util-linux
+ virtual/udev
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-text/asciidoc
+ app-text/xmlto
+ virtual/pkgconfig
+"
+
+CONFIG_CHECK="~BLK_DEV_RAM_DAX ~FS_DAX ~X86_PMEM_LEGACY ~LIBNVDIMM ~BLK_DEV_PMEM \
+~ARCH_HAS_PMEM_API ~TRANSPARENT_HUGEPAGE ~MEMORY_HOTPLUG ~MEMORY_HOTREMOVE \
+~ZONE_DEVICE ~FS_DAX_PMD"
+
+src_prepare() {
+ "${S}"/git-version-gen
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-asciidoctor \
+ --without-bash \
+ --without-systemd \
+ --with-keyutils
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dobashcomp contrib/${PN}
+ systemd_dounit ${PN}/ndctl-monitor.service
+}