summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-07-20 13:58:38 +0200
committerLars Wendler <polynomial-c@gentoo.org>2017-07-20 14:06:32 +0200
commit74f6f29805ae12a7849d1ccc3bff664e2ee837e7 (patch)
tree2022e9b754f61461d4e51cf04b1187c433d670c7 /sys-block
parentprofiles/arch/arm64: mask pstoedit[emf] (diff)
downloadgentoo-74f6f29805ae12a7849d1ccc3bff664e2ee837e7.tar.gz
gentoo-74f6f29805ae12a7849d1ccc3bff664e2ee837e7.tar.bz2
gentoo-74f6f29805ae12a7849d1ccc3bff664e2ee837e7.zip
sys-block/sedutil: Bump to version 1.15
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/sedutil/Manifest1
-rw-r--r--sys-block/sedutil/sedutil-1.15.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/sys-block/sedutil/Manifest b/sys-block/sedutil/Manifest
index 5662aa36fc41..eb8b8d49155c 100644
--- a/sys-block/sedutil/Manifest
+++ b/sys-block/sedutil/Manifest
@@ -1 +1,2 @@
DIST sedutil-1.12.tar.gz 214066 SHA256 5509d4279cfb316f33730c5cb06f8162ae212c7f4d31d206642d67cc8be245c1 SHA512 f17fbb5a6d71d5bdd59d0fc85eed11036a8e365545133bc1374a733ce1975d6c8dd2cdc500bd46cffbec1f2bef621a98ca392e0dd314734c1ef12c073d70b0de WHIRLPOOL 299e35256de3c49a717fff727f45a1aaeeb2f65e1e3fb8afc4ba0af1626101e0f95618f182a32d90fee6278d980670df2c444219346fb6783fbe630d11209970
+DIST sedutil-1.15.tar.gz 295399 SHA256 6711fa34c95a96066570e2b1bca05fc7ecd825e817fd675683db76a58fa4d797 SHA512 f4071d510db8227c7a4e37e1055993436cd8469e584cdb9d2bf507e006570c103b9e19353733f4ba6631226856c9d2aa8817c134febf96750318cffc935707da WHIRLPOOL 4e417269dbea3f7e971240fedc627a80fc1ccc80bc1a664d472fd2bdc13ba774adb46d49b8ac9ff83cad2141c84858038d7e150edc035414c9414faab53eb2db
diff --git a/sys-block/sedutil/sedutil-1.15.ebuild b/sys-block/sedutil/sedutil-1.15.ebuild
new file mode 100644
index 000000000000..058b0ec518c8
--- /dev/null
+++ b/sys-block/sedutil/sedutil-1.15.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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() {
+ default
+ # https://github.com/Drive-Trust-Alliance/sedutil/pull/49
+ find -name '*.mk' -exec sed -E -i 's: -(Werror|g|O[0-9]?) : :g' {} + || 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
+}