sys-apps/nvme-cli: NVM-Express user space tooling for Linux
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Aug 2015 03:09:19 +0000 (20:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Aug 2015 03:10:18 +0000 (20:10 -0700)
Package-Manager: portage-2.2.20.1

sys-apps/nvme-cli/Manifest [new file with mode: 0644]
sys-apps/nvme-cli/metadata.xml [new file with mode: 0644]
sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild [new file with mode: 0644]

diff --git a/sys-apps/nvme-cli/Manifest b/sys-apps/nvme-cli/Manifest
new file mode 100644 (file)
index 0000000..86de946
--- /dev/null
@@ -0,0 +1 @@
+DIST nvme-cli-0_pre20150821.tar.gz 106218 SHA256 3da0e1907203fff9da50e6a474a0c2081a05bd2688fa364c6fc90bf84125c5b6 SHA512 7a88c3f7e52adbba01c01e02064402f9bf27dc79c060d9510a8e9dbe7dbe5097aa2823470cf1264f416ff3484719ba2a01a30017dbaa6b66258aa6a9f1023325 WHIRLPOOL 94b18ff536fb2079218b984b60a4555cfb278a5a0fed1385940d90b8cf9fa10b21e99f886466318f77eb2c907ea2887de1ede0199cab2c1cdf92e252c1c9d8a5
diff --git a/sys-apps/nvme-cli/metadata.xml b/sys-apps/nvme-cli/metadata.xml
new file mode 100644 (file)
index 0000000..43fbe31
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer>
+    <email>zmedico@gentoo.org</email>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">linux-nvme/nvme-cli</remote-id>
+  </upstream>
+</pkgmetadata>
diff --git a/sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild b/sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild
new file mode 100644 (file)
index 0000000..56a3234
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="NVM-Express user space tooling for Linux"
+HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
+EGIT_COMMIT="709571d77bf618921fd719253da677742c673d06"
+SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="sys-libs/libcap"
+DEPEND="${RDEPEND}"
+S=${WORKDIR}/${PN}-${EGIT_COMMIT}
+
+src_prepare() {
+       sed 's|-m64 \(-std=gnu99\) -O2 -g \(-pthread -D_GNU_SOURCE -D_REENTRANT -Wall\) -Werror|\1 \2|' \
+               -i Makefile || die
+       sed 's|/usr/local|$(DESTDIR)/$(PREFIX)/share|' \
+               -i Documentation/Makefile || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX=/usr install
+}