public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-block/sedutil/files/, sys-block/sedutil/
@ 2016-05-17  2:54 Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2016-05-17  2:54 UTC (permalink / raw
  To: gentoo-commits

commit:     05919779f2a6a519a43ec0c3ecbdb8f43ea57abd
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue May 17 01:46:00 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue May 17 02:53:46 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05919779

sys-block/sedutil: new package for Chromium OS

 sys-block/sedutil/Manifest            |  1 +
 sys-block/sedutil/files/nvme.h        | 90 +++++++++++++++++++++++++++++++++++
 sys-block/sedutil/metadata.xml        | 10 ++++
 sys-block/sedutil/sedutil-1.12.ebuild | 46 ++++++++++++++++++
 4 files changed, 147 insertions(+)

diff --git a/sys-block/sedutil/Manifest b/sys-block/sedutil/Manifest
new file mode 100644
index 0000000..5662aa3
--- /dev/null
+++ b/sys-block/sedutil/Manifest
@@ -0,0 +1 @@
+DIST sedutil-1.12.tar.gz 214066 SHA256 5509d4279cfb316f33730c5cb06f8162ae212c7f4d31d206642d67cc8be245c1 SHA512 f17fbb5a6d71d5bdd59d0fc85eed11036a8e365545133bc1374a733ce1975d6c8dd2cdc500bd46cffbec1f2bef621a98ca392e0dd314734c1ef12c073d70b0de WHIRLPOOL 299e35256de3c49a717fff727f45a1aaeeb2f65e1e3fb8afc4ba0af1626101e0f95618f182a32d90fee6278d980670df2c444219346fb6783fbe630d11209970

diff --git a/sys-block/sedutil/files/nvme.h b/sys-block/sedutil/files/nvme.h
new file mode 100644
index 0000000..448aca0
--- /dev/null
+++ b/sys-block/sedutil/files/nvme.h
@@ -0,0 +1,90 @@
+/* stub to deal with renamed/neutered nvme.h header */
+
+#include <linux/types.h>
+#include <linux/nvme_ioctl.h>
+
+struct nvme_id_power_state {
+	__le16			max_power;	/* centiwatts */
+	__u8			rsvd2;
+	__u8			flags;
+	__le32			entry_lat;	/* microseconds */
+	__le32			exit_lat;	/* microseconds */
+	__u8			read_tput;
+	__u8			read_lat;
+	__u8			write_tput;
+	__u8			write_lat;
+	__le16			idle_power;
+	__u8			idle_scale;
+	__u8			rsvd19;
+	__le16			active_power;
+	__u8			active_work_scale;
+	__u8			rsvd23[9];
+};
+
+enum {
+	NVME_PS_FLAGS_MAX_POWER_SCALE	= 1 << 0,
+	NVME_PS_FLAGS_NON_OP_STATE	= 1 << 1,
+};
+
+struct nvme_id_ctrl {
+	__le16			vid;
+	__le16			ssvid;
+	char			sn[20];
+	char			mn[40];
+	char			fr[8];
+	__u8			rab;
+	__u8			ieee[3];
+	__u8			mic;
+	__u8			mdts;
+	__le16			cntlid;
+	__le32			ver;
+	__u8			rsvd84[172];
+	__le16			oacs;
+	__u8			acl;
+	__u8			aerl;
+	__u8			frmw;
+	__u8			lpa;
+	__u8			elpe;
+	__u8			npss;
+	__u8			avscc;
+	__u8			apsta;
+	__le16			wctemp;
+	__le16			cctemp;
+	__u8			rsvd270[242];
+	__u8			sqes;
+	__u8			cqes;
+	__u8			rsvd514[2];
+	__le32			nn;
+	__le16			oncs;
+	__le16			fuses;
+	__u8			fna;
+	__u8			vwc;
+	__le16			awun;
+	__le16			awupf;
+	__u8			nvscc;
+	__u8			rsvd531;
+	__le16			acwu;
+	__u8			rsvd534[2];
+	__le32			sgls;
+	__u8			rsvd540[1508];
+	struct nvme_id_power_state	psd[32];
+	__u8			vs[1024];
+};
+
+enum nvme_admin_opcode {
+	nvme_admin_delete_sq		= 0x00,
+	nvme_admin_create_sq		= 0x01,
+	nvme_admin_get_log_page		= 0x02,
+	nvme_admin_delete_cq		= 0x04,
+	nvme_admin_create_cq		= 0x05,
+	nvme_admin_identify		= 0x06,
+	nvme_admin_abort_cmd		= 0x08,
+	nvme_admin_set_features		= 0x09,
+	nvme_admin_get_features		= 0x0a,
+	nvme_admin_async_event		= 0x0c,
+	nvme_admin_activate_fw		= 0x10,
+	nvme_admin_download_fw		= 0x11,
+	nvme_admin_format_nvm		= 0x80,
+	nvme_admin_security_send	= 0x81,
+	nvme_admin_security_recv	= 0x82,
+};

diff --git a/sys-block/sedutil/metadata.xml b/sys-block/sedutil/metadata.xml
new file mode 100644
index 0000000..d42fdfa
--- /dev/null
+++ b/sys-block/sedutil/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 type="project">
+	<email>base-system@gentoo.org</email>
+</maintainer>
+<upstream>
+	<remote-id type="github">Drive-Trust-Alliance/sedutil</remote-id>
+</upstream>
+</pkgmetadata>

diff --git a/sys-block/sedutil/sedutil-1.12.ebuild b/sys-block/sedutil/sedutil-1.12.ebuild
new file mode 100644
index 0000000..7e65008
--- /dev/null
+++ b/sys-block/sedutil/sedutil-1.12.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+DESCRIPTION="The Drive Trust Alliance Self Encrypting Drive Utility"
+HOMEPAGE="https://github.com/Drive-Trust-Alliance/sedutil"
+SRC_URI="https://github.com/Drive-Trust-Alliance/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+	# https://github.com/Drive-Trust-Alliance/sedutil/pull/49
+	find -name '*.mk' -exec sed -E -i 's: -(Werror|g|O[0-9]?) : :g' {} + || die
+	mkdir linux/linux || die
+	cp "${FILESDIR}"/nvme.h linux/linux/ || die
+}
+
+src_configure() {
+	case $(tc-arch) in
+	x86)   sedutil_arch="Release_i686" ;;
+	amd64) sedutil_arch="Release_x86_64" ;;
+	*)     die "unsupported architecture" ;;
+	esac
+}
+
+src_compile() {
+	emake \
+		-C "linux/CLI" \
+		V=1 \
+		CONF="${sedutil_arch}" \
+		CC="$(tc-getCC)" \
+		CXX="$(tc-getCXX)" \
+		CFLAGS="${CFLAGS}" \
+		CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+	dobin "linux/CLI/dist/${sedutil_arch}/GNU-Linux/sedutil-cli"
+	dodoc README.md
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-block/sedutil/files/, sys-block/sedutil/
@ 2017-11-07 10:00 Lars Wendler
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Wendler @ 2017-11-07 10:00 UTC (permalink / raw
  To: gentoo-commits

commit:     c7887bb5bc242b85ee4df2441e7e75d9bbd3871f
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  7 09:50:16 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Nov  7 10:00:48 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7887bb5

sys-block/sedutil: Removed old.

Package-Manager: Portage-2.3.13, Repoman-2.3.4

 sys-block/sedutil/Manifest            |  1 -
 sys-block/sedutil/files/nvme.h        | 90 -----------------------------------
 sys-block/sedutil/sedutil-1.12.ebuild | 49 -------------------
 3 files changed, 140 deletions(-)

diff --git a/sys-block/sedutil/Manifest b/sys-block/sedutil/Manifest
index caeacb3a4ee..1490eaa3d9c 100644
--- a/sys-block/sedutil/Manifest
+++ b/sys-block/sedutil/Manifest
@@ -1,3 +1,2 @@
-DIST sedutil-1.12.tar.gz 214066 SHA256 5509d4279cfb316f33730c5cb06f8162ae212c7f4d31d206642d67cc8be245c1 SHA512 f17fbb5a6d71d5bdd59d0fc85eed11036a8e365545133bc1374a733ce1975d6c8dd2cdc500bd46cffbec1f2bef621a98ca392e0dd314734c1ef12c073d70b0de WHIRLPOOL 299e35256de3c49a717fff727f45a1aaeeb2f65e1e3fb8afc4ba0af1626101e0f95618f182a32d90fee6278d980670df2c444219346fb6783fbe630d11209970
 DIST sedutil-1.15.1.tar.gz 297551 SHA256 9259466b4f73af276153c5245834a56f48f8721ea7263611b5d5e8326bc43d9e SHA512 9708ef307b457fad2f45735b044685ac6731c353af428c49ff0e312190f3bdc521bcfa71a9e1239d9ffe637d18293a99b09b7e001df96494cdce53f5442750f1 WHIRLPOOL 03152fc3440a8dfdc59c3bd3c679b38bc583e77984b38d3cbbece80f86ebd933adb0c5ee6f4ab510a0769143bb1e4578faf3132f88f984f5cda4a58f42ae56e4
 DIST sedutil-1.15.tar.gz 295399 SHA256 6711fa34c95a96066570e2b1bca05fc7ecd825e817fd675683db76a58fa4d797 SHA512 f4071d510db8227c7a4e37e1055993436cd8469e584cdb9d2bf507e006570c103b9e19353733f4ba6631226856c9d2aa8817c134febf96750318cffc935707da WHIRLPOOL 4e417269dbea3f7e971240fedc627a80fc1ccc80bc1a664d472fd2bdc13ba774adb46d49b8ac9ff83cad2141c84858038d7e150edc035414c9414faab53eb2db

diff --git a/sys-block/sedutil/files/nvme.h b/sys-block/sedutil/files/nvme.h
deleted file mode 100644
index 448aca0279f..00000000000
--- a/sys-block/sedutil/files/nvme.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/* stub to deal with renamed/neutered nvme.h header */
-
-#include <linux/types.h>
-#include <linux/nvme_ioctl.h>
-
-struct nvme_id_power_state {
-	__le16			max_power;	/* centiwatts */
-	__u8			rsvd2;
-	__u8			flags;
-	__le32			entry_lat;	/* microseconds */
-	__le32			exit_lat;	/* microseconds */
-	__u8			read_tput;
-	__u8			read_lat;
-	__u8			write_tput;
-	__u8			write_lat;
-	__le16			idle_power;
-	__u8			idle_scale;
-	__u8			rsvd19;
-	__le16			active_power;
-	__u8			active_work_scale;
-	__u8			rsvd23[9];
-};
-
-enum {
-	NVME_PS_FLAGS_MAX_POWER_SCALE	= 1 << 0,
-	NVME_PS_FLAGS_NON_OP_STATE	= 1 << 1,
-};
-
-struct nvme_id_ctrl {
-	__le16			vid;
-	__le16			ssvid;
-	char			sn[20];
-	char			mn[40];
-	char			fr[8];
-	__u8			rab;
-	__u8			ieee[3];
-	__u8			mic;
-	__u8			mdts;
-	__le16			cntlid;
-	__le32			ver;
-	__u8			rsvd84[172];
-	__le16			oacs;
-	__u8			acl;
-	__u8			aerl;
-	__u8			frmw;
-	__u8			lpa;
-	__u8			elpe;
-	__u8			npss;
-	__u8			avscc;
-	__u8			apsta;
-	__le16			wctemp;
-	__le16			cctemp;
-	__u8			rsvd270[242];
-	__u8			sqes;
-	__u8			cqes;
-	__u8			rsvd514[2];
-	__le32			nn;
-	__le16			oncs;
-	__le16			fuses;
-	__u8			fna;
-	__u8			vwc;
-	__le16			awun;
-	__le16			awupf;
-	__u8			nvscc;
-	__u8			rsvd531;
-	__le16			acwu;
-	__u8			rsvd534[2];
-	__le32			sgls;
-	__u8			rsvd540[1508];
-	struct nvme_id_power_state	psd[32];
-	__u8			vs[1024];
-};
-
-enum nvme_admin_opcode {
-	nvme_admin_delete_sq		= 0x00,
-	nvme_admin_create_sq		= 0x01,
-	nvme_admin_get_log_page		= 0x02,
-	nvme_admin_delete_cq		= 0x04,
-	nvme_admin_create_cq		= 0x05,
-	nvme_admin_identify		= 0x06,
-	nvme_admin_abort_cmd		= 0x08,
-	nvme_admin_set_features		= 0x09,
-	nvme_admin_get_features		= 0x0a,
-	nvme_admin_async_event		= 0x0c,
-	nvme_admin_activate_fw		= 0x10,
-	nvme_admin_download_fw		= 0x11,
-	nvme_admin_format_nvm		= 0x80,
-	nvme_admin_security_send	= 0x81,
-	nvme_admin_security_recv	= 0x82,
-};

diff --git a/sys-block/sedutil/sedutil-1.12.ebuild b/sys-block/sedutil/sedutil-1.12.ebuild
deleted file mode 100644
index 4f808a65ebe..00000000000
--- a/sys-block/sedutil/sedutil-1.12.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit toolchain-funcs
-
-DESCRIPTION="The Drive Trust Alliance Self Encrypting Drive Utility"
-HOMEPAGE="https://github.com/Drive-Trust-Alliance/sedutil"
-SRC_URI="https://github.com/Drive-Trust-Alliance/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-src_prepare() {
-	# https://github.com/Drive-Trust-Alliance/sedutil/pull/49
-	find -name '*.mk' -exec sed -E -i 's: -(Werror|g|O[0-9]?) : :g' {} + || die
-	# https://github.com/Drive-Trust-Alliance/sedutil/issues/52
-	if has_version '>=sys-kernel/linux-headers-4.4' ; then
-		mkdir linux/linux || die
-		cp "${FILESDIR}"/nvme.h linux/linux/ || die
-	fi
-}
-
-src_configure() {
-	case $(tc-arch) in
-	x86)   sedutil_arch="Release_i686" ;;
-	amd64) sedutil_arch="Release_x86_64" ;;
-	*)     die "unsupported architecture" ;;
-	esac
-}
-
-src_compile() {
-	emake \
-		-C "linux/CLI" \
-		V=1 \
-		CONF="${sedutil_arch}" \
-		CC="$(tc-getCC)" \
-		CXX="$(tc-getCXX)" \
-		CFLAGS="${CFLAGS}" \
-		CXXFLAGS="${CXXFLAGS}"
-}
-
-src_install() {
-	dobin "linux/CLI/dist/${sedutil_arch}/GNU-Linux/sedutil-cli"
-	dodoc README.md
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-07 10:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-07 10:00 [gentoo-commits] repo/gentoo:master commit in: sys-block/sedutil/files/, sys-block/sedutil/ Lars Wendler
  -- strict thread matches above, loose matches on Subject: below --
2016-05-17  2:54 Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox