summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-08-27 20:09:19 -0700
committerZac Medico <zmedico@gentoo.org>2015-08-27 20:10:18 -0700
commite9b4951c8bf1f388c351db7c9d0ea0fea57b20c6 (patch)
treea53e4a33e8dacc5694dcae2c9ffa442979a0f18d /sys-apps/nvme-cli
parentapp-editors/qwriter: EAPI bump (diff)
downloadgentoo-e9b4951c8bf1f388c351db7c9d0ea0fea57b20c6.tar.gz
gentoo-e9b4951c8bf1f388c351db7c9d0ea0fea57b20c6.tar.bz2
gentoo-e9b4951c8bf1f388c351db7c9d0ea0fea57b20c6.zip
sys-apps/nvme-cli: NVM-Express user space tooling for Linux
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sys-apps/nvme-cli')
-rw-r--r--sys-apps/nvme-cli/Manifest1
-rw-r--r--sys-apps/nvme-cli/metadata.xml10
-rw-r--r--sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild29
3 files changed, 40 insertions, 0 deletions
diff --git a/sys-apps/nvme-cli/Manifest b/sys-apps/nvme-cli/Manifest
new file mode 100644
index 000000000000..86de946fcb52
--- /dev/null
+++ b/sys-apps/nvme-cli/Manifest
@@ -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
index 000000000000..43fbe3170f0a
--- /dev/null
+++ b/sys-apps/nvme-cli/metadata.xml
@@ -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
index 000000000000..56a32344df46
--- /dev/null
+++ b/sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild
@@ -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
+}