diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-02 21:45:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-02 21:45:28 +0100 |
commit | 2018227e9344edb9da15fc6a4a8298086cc2aa77 (patch) | |
tree | c18e1c09e605e94e2a1e93345ad25746cc9e14b9 /app-crypt/tpm2-totp | |
parent | 6f8038813c460b4f0572d5ef595cdfa94af3a94d (diff) |
gentoo resync : 02.06.2019
Diffstat (limited to 'app-crypt/tpm2-totp')
-rw-r--r-- | app-crypt/tpm2-totp/Manifest | 4 | ||||
-rw-r--r-- | app-crypt/tpm2-totp/files/tpm2-totp-0.1.1-build.patch | 70 | ||||
-rw-r--r-- | app-crypt/tpm2-totp/metadata.xml | 11 | ||||
-rw-r--r-- | app-crypt/tpm2-totp/tpm2-totp-0.1.1.ebuild | 38 |
4 files changed, 123 insertions, 0 deletions
diff --git a/app-crypt/tpm2-totp/Manifest b/app-crypt/tpm2-totp/Manifest new file mode 100644 index 000000000000..52ea402b8f78 --- /dev/null +++ b/app-crypt/tpm2-totp/Manifest @@ -0,0 +1,4 @@ +AUX tpm2-totp-0.1.1-build.patch 2384 BLAKE2B 55acd1b8b8c3425542e7207653598b3c2854c84699d3b40f5f64d75e67a51868a5a8b1aca960124694ceaf3793a3f7a2f3dc51e1a3a71418502625c35785e033 SHA512 7330fccd400be74952652515b5c90a49d91e4b70a4488df18b4e34402ce03bcf2e480223a6b70d5f98b23e7fe0e8b38aa8d46012752a881498f2c804a96481f6 +DIST tpm2-totp-0.1.1.tar.gz 357787 BLAKE2B c7a24b30c155cfd5387180a2c8584497327eadd701068aa5eb3c385bbadf26f448f88c238849fbf68c4e7265f01d3783b3aa50a912070df1c2fd4485310f2299 SHA512 33a4af16a292ddd674a399bf12ce0b355d95de7014e8be11816a1d88edfd36ae222a8b7508f3aa1be3b46c7e04bf2712ee4839cf9f4f83fc308cb4f639ec5b9f +EBUILD tpm2-totp-0.1.1.ebuild 722 BLAKE2B 2df2c7d4102da1a0d119260d802d76af2705ced973d1108b2309485407cf29805117c97009dcf47286ea97536d3eff7c13eff7057eec94a339f396ced5518c65 SHA512 961b438f32a367ef19b161355bd0e3157ec7a0ebb8fc77032a92531cd6cb5d9ab971443e47ba44035930f274efb3d5ea6b899982f41958815ce0c9c516c759d9 +MISC metadata.xml 328 BLAKE2B 7578cd490eb3c3614ff8a237bbb177830c3fc068579d7cf1e78099a718513b1120435bcb5256232ae6b2042e3282e05751fac4a16193511f450d397965822317 SHA512 c58e6858b8d127eacc0b4b3f1e5639e2d8358c7411461b90f0d6c26c556383390b12627c71fbbce3469d3b7342653393e5af804ecef02a0545961d17ca988c08 diff --git a/app-crypt/tpm2-totp/files/tpm2-totp-0.1.1-build.patch b/app-crypt/tpm2-totp/files/tpm2-totp-0.1.1-build.patch new file mode 100644 index 000000000000..232b4f9e8682 --- /dev/null +++ b/app-crypt/tpm2-totp/files/tpm2-totp-0.1.1-build.patch @@ -0,0 +1,70 @@ +From 2652497a15572d2484f57fee8be252d0d5fe4f8c Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Fri, 31 May 2019 01:39:29 +0300 +Subject: [PATCH] build: add --disable-defaultflags + +Align with tpm2-tss to allow downstream to provide flags. + +Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> +--- + configure.ac | 42 +++++++++++++++++++++++++----------------- + 1 file changed, 25 insertions(+), 17 deletions(-) + +https://github.com/tpm2-software/tpm2-totp/pull/39 + +diff --git a/configure.ac b/configure.ac +index baf596b..ac11e1e 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -47,23 +47,31 @@ AC_SUBST([LIBEXECDIR]) + + AC_CONFIG_FILES([Makefile dist/tpm2-totp.pc dist/dracut/module-setup.sh dist/initcpio/install/plymouth-tpm2-totp]) + +-AX_ADD_COMPILER_FLAG([-std=c99]) +-AX_ADD_COMPILER_FLAG([-Wall]) +-AX_ADD_COMPILER_FLAG([-Wextra]) +-AX_ADD_COMPILER_FLAG([-Wformat-security]) +-AX_ADD_COMPILER_FLAG([-Werror]) +-AX_ADD_COMPILER_FLAG([-fstack-protector-all]) +-AX_ADD_COMPILER_FLAG([-fpic]) +-AX_ADD_COMPILER_FLAG([-fPIC]) +- +-# work around GCC bug #53119 +-# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 +-AX_ADD_COMPILER_FLAG([-Wno-missing-braces]) +- +-AX_ADD_LINK_FLAG([-Wl,--no-undefined]) +-AX_ADD_LINK_FLAG([-Wl,-z,noexecstack]) +-AX_ADD_LINK_FLAG([-Wl,-z,now]) +-AX_ADD_LINK_FLAG([-Wl,-z,relro]) ++AC_ARG_ENABLE([defaultflags], ++ [AS_HELP_STRING([--disable-defaultflags], ++ [Disable default preprocessor, compiler, and linker flags.])], ++ [enable_defaultflags=$enableval], ++ [enable_defaultflags=yes]) ++AS_IF([test "x$enable_defaultflags" = "xyes"], ++ [ ++ AX_ADD_COMPILER_FLAG([-std=c99]) ++ AX_ADD_COMPILER_FLAG([-Wall]) ++ AX_ADD_COMPILER_FLAG([-Wextra]) ++ AX_ADD_COMPILER_FLAG([-Wformat-security]) ++ AX_ADD_COMPILER_FLAG([-Werror]) ++ AX_ADD_COMPILER_FLAG([-fstack-protector-all]) ++ AX_ADD_COMPILER_FLAG([-fpic]) ++ AX_ADD_COMPILER_FLAG([-fPIC]) ++ ++ # work around GCC bug #53119 ++ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 ++ AX_ADD_COMPILER_FLAG([-Wno-missing-braces]) ++ ++ AX_ADD_LINK_FLAG([-Wl,--no-undefined]) ++ AX_ADD_LINK_FLAG([-Wl,-z,noexecstack]) ++ AX_ADD_LINK_FLAG([-Wl,-z,now]) ++ AX_ADD_LINK_FLAG([-Wl,-z,relro]) ++ ]) + + AX_CODE_COVERAGE + m4_ifdef([_AX_CODE_COVERAGE_RULES], +-- +2.21.0 + diff --git a/app-crypt/tpm2-totp/metadata.xml b/app-crypt/tpm2-totp/metadata.xml new file mode 100644 index 000000000000..0509d4663725 --- /dev/null +++ b/app-crypt/tpm2-totp/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="github">tpm2-software/tpm2-totp</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-crypt/tpm2-totp/tpm2-totp-0.1.1.ebuild b/app-crypt/tpm2-totp/tpm2-totp-0.1.1.ebuild new file mode 100644 index 000000000000..8b2622c25865 --- /dev/null +++ b/app-crypt/tpm2-totp/tpm2-totp-0.1.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Attest the trustworthiness of a device against a human using time-based OTP" +HOMEPAGE="https://github.com/tpm2-software/tpm2-totp" +SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=app-crypt/tpm2-tss-2.0:= + media-gfx/qrencode:=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-build.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --disable-defaultflags +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} |