From 5c36bb11ccc16d668bac6054a35f29a31c38777f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Mon, 27 Nov 2017 19:50:39 +0100 Subject: Add app-crypt/tpm-tools --- app-crypt/tpm-tools/Manifest | 1 + .../tpm-tools/files/tpm-tools-1.3.9-gold.patch | 10 ++++ app-crypt/tpm-tools/metadata.xml | 17 +++++++ app-crypt/tpm-tools/tpm-tools-1.3.9.1.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 app-crypt/tpm-tools/Manifest create mode 100644 app-crypt/tpm-tools/files/tpm-tools-1.3.9-gold.patch create mode 100644 app-crypt/tpm-tools/metadata.xml create mode 100644 app-crypt/tpm-tools/tpm-tools-1.3.9.1.ebuild (limited to 'app-crypt') diff --git a/app-crypt/tpm-tools/Manifest b/app-crypt/tpm-tools/Manifest new file mode 100644 index 0000000..052155e --- /dev/null +++ b/app-crypt/tpm-tools/Manifest @@ -0,0 +1 @@ +DIST tpm-tools-1.3.9.1.tar.gz 482859 SHA256 9cb714e2650826e2e932f65bc0ba9d61b927dc5fea47f2c2a2b64f0fdfcbfa68 SHA512 63a9c0e761cd890cc0a218de79a9c0169e151aba7824c19bf6b7ec894cf41c4950de1f63bd849aa93a4bdff36cf0fe557bc17113912b6d77f57f2bf1190b6a08 WHIRLPOOL 6f3cdca0ab461748f1b0a94924a6f9ac47aa38fa1d60d1806e98323d8d68ec7813f993b3dd5b80016a9eae75ccf9242d85654f524c1548d185ceaf12ce740884 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 0000000..1745c69 --- /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 0000000..31ebf3b --- /dev/null +++ b/app-crypt/tpm-tools/metadata.xml @@ -0,0 +1,17 @@ + + + + + crypto@gentoo.org + Crypto + + + + Build Token data management utilities based on OpenCryptoki's + (dev-libs/opencryptoki) PKCS#11 implementation. + + + + trousers + + diff --git a/app-crypt/tpm-tools/tpm-tools-1.3.9.1.ebuild b/app-crypt/tpm-tools/tpm-tools-1.3.9.1.ebuild new file mode 100644 index 0000000..ff712c7 --- /dev/null +++ b/app-crypt/tpm-tools/tpm-tools-1.3.9.1.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 +} -- cgit v1.2.3