From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-crypt/tpm-tools/Manifest | 1 + .../tpm-tools/files/tpm-tools-1.3.8-build.patch | 10 +++++ .../tpm-tools/files/tpm-tools-1.3.8-gold.patch | 10 +++++ app-crypt/tpm-tools/metadata.xml | 14 ++++++ app-crypt/tpm-tools/tpm-tools-1.3.8.ebuild | 52 ++++++++++++++++++++++ 5 files changed, 87 insertions(+) create mode 100644 app-crypt/tpm-tools/Manifest create mode 100644 app-crypt/tpm-tools/files/tpm-tools-1.3.8-build.patch create mode 100644 app-crypt/tpm-tools/files/tpm-tools-1.3.8-gold.patch create mode 100644 app-crypt/tpm-tools/metadata.xml create mode 100644 app-crypt/tpm-tools/tpm-tools-1.3.8.ebuild (limited to 'app-crypt/tpm-tools') diff --git a/app-crypt/tpm-tools/Manifest b/app-crypt/tpm-tools/Manifest new file mode 100644 index 000000000000..91d8e0f0a252 --- /dev/null +++ b/app-crypt/tpm-tools/Manifest @@ -0,0 +1 @@ +DIST tpm-tools-1.3.8.tar.gz 473339 SHA256 66eb4ff095542403db6b4bd4b574e8a5c08084fe4e9e5aa9a829ee84e20bea83 SHA512 727113625645b01f8e77817d7f1cc6a8bf814f96061754fdfefceb125da4eebbea54804d1fec9e36559ffd61801b318bbc327907a3bdd661f872c32f811c7e74 WHIRLPOOL 201677976c97961a20578f7ca1b4dd0a8a9b105a718c0c67c34b9f1de0c75332532c62389711f732c99edda8fe45639dd3c8293df0a62a11f88ed4c9dc987270 diff --git a/app-crypt/tpm-tools/files/tpm-tools-1.3.8-build.patch b/app-crypt/tpm-tools/files/tpm-tools-1.3.8-build.patch new file mode 100644 index 000000000000..928f94f8e695 --- /dev/null +++ b/app-crypt/tpm-tools/files/tpm-tools-1.3.8-build.patch @@ -0,0 +1,10 @@ +--- a/src/tpm_mgmt/tpm_nvread.c 2015-06-07 13:00:30.250314575 +0000 ++++ b/src/tpm_mgmt/tpm_nvread.c 2015-06-07 12:54:45.590302275 +0000 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "tpm_nvcommon.h" + #include "tpm_tspi.h" diff --git a/app-crypt/tpm-tools/files/tpm-tools-1.3.8-gold.patch b/app-crypt/tpm-tools/files/tpm-tools-1.3.8-gold.patch new file mode 100644 index 000000000000..bc52c30f4fcf --- /dev/null +++ b/app-crypt/tpm-tools/files/tpm-tools-1.3.8-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 ++libtpm_unseal_la_LIBADD = -ltspi libtpm_tspi.la -lcrypto diff --git a/app-crypt/tpm-tools/metadata.xml b/app-crypt/tpm-tools/metadata.xml new file mode 100644 index 000000000000..423e312921f2 --- /dev/null +++ b/app-crypt/tpm-tools/metadata.xml @@ -0,0 +1,14 @@ + + + + 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.8.ebuild b/app-crypt/tpm-tools/tpm-tools-1.3.8.ebuild new file mode 100644 index 000000000000..90b2b97a3aed --- /dev/null +++ b/app-crypt/tpm-tools/tpm-tools-1.3.8.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools eutils flag-o-matic + +DESCRIPTION="TrouSerS' support tools for the Trusted Platform Modules" +HOMEPAGE="http://trousers.sourceforge.net" +SRC_URI="mirror://sourceforge/trousers/${P}.tar.gz" + +LICENSE="CPL-1.0" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~m68k ~s390 ~sh x86" +IUSE="nls pkcs11 debug" + +COMMON_DEPEND=" + >=app-crypt/trousers-0.3.0 + dev-libs/openssl + pkcs11? ( dev-libs/opencryptoki ) + " +RDEPEND="${COMMON_DEPEND} + nls? ( virtual/libintl )" +DEPEND="${COMMON_DEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i -r \ + -e '/CFLAGS/s/ -(Werror|m64)//' \ + configure.in || die + epatch "${FILESDIR}/${P}-gold.patch" + epatch "${FILESDIR}/${P}-build.patch" + + eautoreconf +} + +src_configure() { + local myconf + # don't use --enable-pkcs11-support, configure is a mess. + use pkcs11 || myconf+=" --disable-pkcs11-support" + + append-cppflags $(usex debug -DDEBUG -DNDEBUG) + + econf \ + $(use_enable nls) \ + ${myconf} +} + +src_install() { + default + rm -f "${ED}"/usr/lib*/libtpm_unseal.la +} -- cgit v1.2.3-65-gdbad