From e9b4951c8bf1f388c351db7c9d0ea0fea57b20c6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Aug 2015 20:09:19 -0700 Subject: [PATCH] sys-apps/nvme-cli: NVM-Express user space tooling for Linux Package-Manager: portage-2.2.20.1 --- sys-apps/nvme-cli/Manifest | 1 + sys-apps/nvme-cli/metadata.xml | 10 +++++++ .../nvme-cli/nvme-cli-0_pre20150821.ebuild | 29 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 sys-apps/nvme-cli/Manifest create mode 100644 sys-apps/nvme-cli/metadata.xml create mode 100644 sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild 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 @@ + + + + + zmedico@gentoo.org + + + linux-nvme/nvme-cli + + 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 +} -- 2.26.2