summaryrefslogtreecommitdiff
path: root/app-crypt/tpm-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-crypt/tpm-tools
reinit the tree, so we can have metadata
Diffstat (limited to 'app-crypt/tpm-tools')
-rw-r--r--app-crypt/tpm-tools/Manifest6
-rw-r--r--app-crypt/tpm-tools/files/tpm-tools-1.3.9-gold.patch10
-rw-r--r--app-crypt/tpm-tools/metadata.xml17
-rw-r--r--app-crypt/tpm-tools/tpm-tools-1.3.9.ebuild55
4 files changed, 88 insertions, 0 deletions
diff --git a/app-crypt/tpm-tools/Manifest b/app-crypt/tpm-tools/Manifest
new file mode 100644
index 000000000000..8496817a49dd
--- /dev/null
+++ b/app-crypt/tpm-tools/Manifest
@@ -0,0 +1,6 @@
+AUX tpm-tools-1.3.9-gold.patch 451 SHA256 6c52d134a917dc80aa50dc6a524ce80c1691663dad39ecfb3bf3ca5ee2abbc2d SHA512 7f9473a456c5901c28ec0394158e43b3d8cc3a9a994e5be5d1a45b20f5360f2f0b7778eb93246964192e19fdd140ee5b50d1852500c9aface2824d83c6907c41 WHIRLPOOL 744c17371dd3a54d78445a04bbcdc0864ba97b12f8ecc4a6eb4cc7afad406a70f745ef48fd098e275f4670d6037f61c023345c2399aafbfe88fc25c5fe9f02c0
+DIST tpm-tools-1.3.9.tar.gz 484023 SHA256 ea126c5cd2ada56beb5118a141a498053f2d85f56263d215784f0ed86fff4213 SHA512 460e56031aa65ede6b7aebf0c594d4093d870fb46f7c453c429e53cca442d4c7797ac29b519bca28d42133bc6d7701cdf938adbdf11f8be841157d4f4a3e17ca WHIRLPOOL 96760809fb5f2029f51a4051621cb4dd3a39af08d2ecb091619f848d541b2bd1d6f5e9cbd2606fcde2fb55c554cb3baf74c8b58ec29660d95c42bfad178bd96c
+EBUILD tpm-tools-1.3.9.ebuild 1063 SHA256 7b4550a5eaed6789fc1729bccb0199cb67b79889fe65e0ef1e25ae465914c38b SHA512 a6b15b03b9d4018932080890b5bf9f156e600e8b89a033b895d0be5a6d304571acbd601775886293db542800f76d2805b613298f01a802a2ecbca4a9ba2c9120 WHIRLPOOL 92f83ce049bb2e7b016f576c6e0cab6c849a58c2c21c98179533e42756466d12d5b7958e04f1bdd481b242702eb460c909b0703a2864b7350077038a47c29859
+MISC ChangeLog 3297 SHA256 988df9d3b3689b8d0b8b31920c7249aa6f64e61bd70683fb95f5cc90133ebfc4 SHA512 a9c4750db4d382397c48bb78c27bcdef1c748b321ade41dbc4a26de2ae4af518c57c068d4bc2d05ad5a4a95d4d0eb84699ccbcabc87f9bc2d1df1062d0e74c62 WHIRLPOOL 2e3f225ef9ca615b3ff79cf5c418f3aa3ae8b6f209d07cece334144f80423a9aaf5389278e1e9597a8f905f45c8ac394eec7feeda6523be0cc4f77e8d85108bc
+MISC ChangeLog-2015 4564 SHA256 55fdf46e5325eb598ec4f6b409e95a4ce8116e1dc217ee16eda6c22a7d606dda SHA512 12b99fc7f70a35f99bd0c5a0a4ffc3d2e6211a610fe87eeb7c44130c771453c99f619b815c539d75a21f64069d5f8a74f8629fd957ca8053be6392bccf448fb2 WHIRLPOOL 435c1dd957b2d83522b1f46673054dfb692363b51ef12cc382617cc899af6349c812aa5b4d0d84a1e05947f6c3470aee451013a6d6510d58ce5de049e2d1d0b8
+MISC metadata.xml 515 SHA256 4123a210fc80587b9aaedbb4efe808966c42c9d8d6791a1a64d523b118a2bd84 SHA512 5aea8cabd5ae0a00b4a49717efaf8ed6d6363131ff8bdc2a9167108297d32dee72c5419bbc84ae9ba1263d515dff2aa092b991c8411771a2b8c361bcf000258a WHIRLPOOL 5baf378031ba20696d9d05df78edd9bb4b92e766b720f60f1cbb920f55ebd025a70dc11753af8b7c67f76817e18f7362b039181c04b6ad52b33ba8b80faeb4c9
diff --git a/app-crypt/tpm-tools/files/tpm-tools-1.3.9-gold.patch b/app-crypt/tpm-tools/files/tpm-tools-1.3.9-gold.patch
new file mode 100644
index 000000000000..1745c690e570
--- /dev/null
+++ b/app-crypt/tpm-tools/files/tpm-tools-1.3.9-gold.patch
@@ -0,0 +1,10 @@
+diff --git a/lib/Makefile.am b/lib/Makefile.am
+index cef6a2f..d7092a7 100644
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -80,4 +80,4 @@ endif
+ # Unseal library - for addition to existing apps, counter part of seal cmd
+ libtpm_unseal_la_SOURCES = tpm_unseal.c
+ libtpm_unseal_la_LDFLAGS = -shared -version-info 1:0:0
+-libtpm_unseal_la_LIBADD = -ltspi libtpm_tspi.la @INTLLIBS@
++libtpm_unseal_la_LIBADD = -ltspi libtpm_tspi.la -lcrypto @INTLLIBS@
diff --git a/app-crypt/tpm-tools/metadata.xml b/app-crypt/tpm-tools/metadata.xml
new file mode 100644
index 000000000000..31ebf3b6ac32
--- /dev/null
+++ b/app-crypt/tpm-tools/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>crypto@gentoo.org</email>
+ <name>Crypto</name>
+ </maintainer>
+ <use>
+ <flag name="pkcs11">
+ Build Token data management utilities based on OpenCryptoki's
+ (<pkg>dev-libs/opencryptoki</pkg>) PKCS#11 implementation.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">trousers</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-crypt/tpm-tools/tpm-tools-1.3.9.ebuild b/app-crypt/tpm-tools/tpm-tools-1.3.9.ebuild
new file mode 100644
index 000000000000..ff712c720ce9
--- /dev/null
+++ b/app-crypt/tpm-tools/tpm-tools-1.3.9.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools flag-o-matic ltprune
+
+DESCRIPTION="TrouSerS' support tools for the Trusted Platform Modules"
+HOMEPAGE="http://trousers.sourceforge.net"
+SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm arm64 ~m68k ~s390 ~sh x86"
+IUSE="libressl nls pkcs11 debug"
+
+COMMON_DEPEND="
+ >=app-crypt/trousers-0.3.0
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ pkcs11? ( dev-libs/opencryptoki )
+ "
+RDEPEND="${COMMON_DEPEND}
+ nls? ( virtual/libintl )"
+DEPEND="${COMMON_DEPEND}
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gold.patch"
+)
+
+S="${WORKDIR}"
+
+src_prepare() {
+ default
+
+ sed -i -r \
+ -e '/CFLAGS/s/ -m64//' \
+ configure.ac || die
+
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags $(usex debug -DDEBUG -DNDEBUG)
+
+ econf \
+ $(use_enable nls) \
+ $(use pkcs11 || echo --disable-pkcs11-support)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}