From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6098E138359 for ; Sun, 13 Sep 2020 11:02:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CB2CE0869; Sun, 13 Sep 2020 11:02:50 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5FB50E0869 for ; Sun, 13 Sep 2020 11:02:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C55EA335D49 for ; Sun, 13 Sep 2020 11:02:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35F612EE for ; Sun, 13 Sep 2020 11:02:47 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1599994958.3badac5a347d8a7dd489c4546d907bf2ff028ffb.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/yubico-piv-tool/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild X-VCS-Directories: sys-auth/yubico-piv-tool/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 3badac5a347d8a7dd489c4546d907bf2ff028ffb X-VCS-Branch: master Date: Sun, 13 Sep 2020 11:02:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5fe0236f-830c-433f-89ea-ef01301fdb97 X-Archives-Hash: 9b7c3158803b418e4e1c199196b286de commit: 3badac5a347d8a7dd489c4546d907bf2ff028ffb Author: Marek Szuba gentoo org> AuthorDate: Sun Sep 13 11:01:20 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Sun Sep 13 11:02:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3badac5a sys-auth/yubico-piv-tool: support IUSE=libressl Builds and tests fine, upstream officially fixed LibreSSL compatibility in 2.1.0. Closes: https://bugs.gentoo.org/741987 Signed-off-by: Marek Szuba gentoo.org> .../yubico-piv-tool-2.1.1-r2.ebuild | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild new file mode 100644 index 00000000000..a7a762e6a8d --- /dev/null +++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Command line tool for the YubiKey PIV application" +SRC_URI="https://github.com/Yubico/yubico-piv-tool/archive/yubico-piv-tool-${PV}.tar.gz" +HOMEPAGE="https://developers.yubico.com/yubico-piv-tool/ https://github.com/Yubico/yubico-piv-tool" + +LICENSE="BSD-2" +SLOT="0/1" +KEYWORDS="~amd64" +IUSE="libressl test" + +RESTRICT="!test? ( test )" + +RDEPEND="sys-apps/pcsc-lite + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0=[-bindist] )" +DEPEND="${RDEPEND} + test? ( dev-libs/check )" +BDEPEND="dev-util/gengetopt + sys-apps/help2man + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.1-install-man-page.patch + "${FILESDIR}"/${PN}-2.1.1-tests-optional.patch + "${FILESDIR}"/${PN}-2.1.1-ykcs11-threads.patch +) + +S="${WORKDIR}/${PN}-${P}" + +src_configure() { + local mycmakeargs=( + -DBUILD_STATIC_LIB=OFF + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + echo "module: ${EPREFIX}/usr/$(get_libdir)/libykcs11.so" > ${PN}.module \ + || die "Failed to generate p11-kit module configuration" + insinto /usr/share/p11-kit/modules + doins ${PN}.module +}