summaryrefslogtreecommitdiff
path: root/sys-block/ndctl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
commitd99093fb4bb5652015c06274d64083daa2439e4f (patch)
treecf61513204d97974179580065e85df5c8009087c /sys-block/ndctl
parent463397cf1e064185110fe57c568d73f99a06f5d1 (diff)
gentoo resync : 03.03.2021
Diffstat (limited to 'sys-block/ndctl')
-rw-r--r--sys-block/ndctl/Manifest3
-rw-r--r--sys-block/ndctl/metadata.xml8
-rw-r--r--sys-block/ndctl/ndctl-71.1-r1.ebuild65
3 files changed, 76 insertions, 0 deletions
diff --git a/sys-block/ndctl/Manifest b/sys-block/ndctl/Manifest
new file mode 100644
index 000000000000..3911cd3f4d0c
--- /dev/null
+++ b/sys-block/ndctl/Manifest
@@ -0,0 +1,3 @@
+DIST ndctl-71.1.tar.gz 330512 BLAKE2B 582f29fb649f33a48b5412bfefc15de2b1f765b27251d1b8a472d8c7705d671acbd6bf646f737baf8556d8fda39db68242f44e11225d7305e95f5d2ec5931f31 SHA512 92fb06ca64455775ce0b89ba0846f70235e02fe3502e2a8a55a858f76f87cb90ae98f5bf01620e5884f667ea78ee2bee2cd9e7a85ffa8f8d9c456e9282ca9ebc
+EBUILD ndctl-71.1-r1.ebuild 1204 BLAKE2B d29233d2a53bba510d941469339cf7ccd8278357c4b0a2abb6791da0c499125d52ee08321300224a493bb2d74046dc65f22f4d08977d21cac1134424cd27714a SHA512 0484b3f1f1c69e677836913762b5deeb2698e2140053081988c0229856378b0d03fbfef66376a093dfcbd323057924c7323c2dd3b5c2a823156f6679ae46c9e4
+MISC metadata.xml 249 BLAKE2B 9e4529cdac0a55f14c36fde3fa54e30645a61a73d58e83ce460edf84d729bb3cd4cdc3e52d588690945508bc7d253b1edfb7734ebee94a88b75fee249a043c84 SHA512 ecad16da7f98e9b1cb1882147e6d8b7d541e4839d92fc26f3db1bea69ed633637da9259947b2b78d204a11d0edd3daa84f173613b6dc19110b5406c6fddfa7f0
diff --git a/sys-block/ndctl/metadata.xml b/sys-block/ndctl/metadata.xml
new file mode 100644
index 000000000000..cee379b15409
--- /dev/null
+++ b/sys-block/ndctl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-block/ndctl/ndctl-71.1-r1.ebuild b/sys-block/ndctl/ndctl-71.1-r1.ebuild
new file mode 100644
index 000000000000..1ba6ed6f2b16
--- /dev/null
+++ b/sys-block/ndctl/ndctl-71.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools bash-completion-r1
+
+DESCRIPTION="Helper tools and libraries for managing non-volatile memory on Linux"
+HOMEPAGE="https://github.com/pmem/ndctl"
+SRC_URI="https://github.com/pmem/ndctl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1 MIT CC0-1.0"
+SLOT="0/6"
+KEYWORDS="~amd64 ~x86"
+IUSE="bash-completion systemd test"
+
+DEPEND="
+ dev-libs/json-c:=
+ sys-apps/keyutils:=
+ sys-apps/kmod:=
+ sys-apps/util-linux:=
+ virtual/libudev:=
+ systemd? ( sys-apps/systemd:= )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ app-text/asciidoc
+ app-text/xmlto
+ sys-devel/libtool
+ virtual/pkgconfig
+"
+
+RESTRICT="!test? ( test )"
+
+# tests require root access
+RESTRICT+=" test"
+
+DOCS=(
+ README.md
+ CONTRIBUTING.md
+)
+
+src_prepare() {
+ default
+ printf 'm4_define([GIT_VERSION], [%s])' "${PV}" > version.m4 || die
+ sed -e '/git-version-gen/ d' -i Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with bash-completion bash) \
+ $(use_with systemd) \
+ --disable-asciidoctor
+}
+
+src_test() {
+ emake check
+}
+
+src_install() {
+ default
+
+ use bash-completion && bashcomp_alias ndctl daxctl
+}