aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-10-08 21:38:18 +0000
committerAisha Tammy <gentoo@aisha.cc>2020-10-08 21:38:39 +0000
commit7ca2fc18982ff0984489dd82f9bc1ac808b8b45a (patch)
tree847df9564db1741865e2c8b39c8128e336ac5cc4 /sys-apps/ndctl
parentsci-libs/blis-amd: optimized blis for AMD CPUs (diff)
downloadsci-7ca2fc18982ff0984489dd82f9bc1ac808b8b45a.tar.gz
sci-7ca2fc18982ff0984489dd82f9bc1ac808b8b45a.tar.bz2
sci-7ca2fc18982ff0984489dd82f9bc1ac808b8b45a.zip
sys-apps/ndctl: move package from dev-util
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'sys-apps/ndctl')
-rw-r--r--sys-apps/ndctl/Manifest1
-rw-r--r--sys-apps/ndctl/metadata.xml12
-rw-r--r--sys-apps/ndctl/ndctl-70.ebuild60
-rw-r--r--sys-apps/ndctl/ndctl-9999.ebuild60
4 files changed, 133 insertions, 0 deletions
diff --git a/sys-apps/ndctl/Manifest b/sys-apps/ndctl/Manifest
new file mode 100644
index 000000000..834b4a198
--- /dev/null
+++ b/sys-apps/ndctl/Manifest
@@ -0,0 +1 @@
+DIST ndctl-70.tar.gz 328631 BLAKE2B 0b8634fb185dae1e9ba708863d0bf309e806856b7ccdb94a6e55937f2c29b6bcbaea7ebf781f86eed8e7ead9e44d05fccef24f944ac1bab77b59957746969da6 SHA512 3ad44efd56f0ef156716f4db5b6c18241e8c5cf52f3b3a3455012f3006d21dd3e2c63a83aa7f7ac8113d61fa8419b80d6182195dff5d176272af63a2d85cb487
diff --git a/sys-apps/ndctl/metadata.xml b/sys-apps/ndctl/metadata.xml
new file mode 100644
index 000000000..e97c4322a
--- /dev/null
+++ b/sys-apps/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/sys-apps/ndctl/ndctl-70.ebuild b/sys-apps/ndctl/ndctl-70.ebuild
new file mode 100644
index 000000000..60cc559bf
--- /dev/null
+++ b/sys-apps/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/sys-apps/ndctl/ndctl-9999.ebuild b/sys-apps/ndctl/ndctl-9999.ebuild
new file mode 100644
index 000000000..60cc559bf
--- /dev/null
+++ b/sys-apps/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
+}