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 3315B138359 for ; Sun, 6 Sep 2020 20:39:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70E6CE086F; Sun, 6 Sep 2020 20:39:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 54779E086F for ; Sun, 6 Sep 2020 20:39:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 EDDB3340B28 for ; Sun, 6 Sep 2020 20:39:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7BA032F2 for ; Sun, 6 Sep 2020 20:39:35 +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: <1599424766.e1978be7e390b24a4edbccb0db659e6ba7532f34.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-r1.ebuild X-VCS-Directories: sys-auth/yubico-piv-tool/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: e1978be7e390b24a4edbccb0db659e6ba7532f34 X-VCS-Branch: master Date: Sun, 6 Sep 2020 20:39:35 +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: fee55be4-2fe7-4b96-9bb7-30b59d0955df X-Archives-Hash: e2c29c5bff2b5007f0a2ac8104bdc814 commit: e1978be7e390b24a4edbccb0db659e6ba7532f34 Author: Marek Szuba gentoo org> AuthorDate: Sun Sep 6 20:38:16 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Sun Sep 6 20:39:26 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1978be7 sys-auth/yubico-piv-tool: make p11-kit aware of libykcs11 Closes: https://bugs.gentoo.org/701058 Signed-off-by: Marek Szuba gentoo.org> .../yubico-piv-tool-2.1.1-r1.ebuild | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild new file mode 100644 index 00000000000..8065e7bafa7 --- /dev/null +++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.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="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/openssl:0=[-bindist] + sys-apps/pcsc-lite +" +DEPEND="${RDEPEND} + dev-util/gengetopt + sys-apps/help2man + virtual/pkgconfig + test? ( dev-libs/check ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.1-install-man-page.patch + "${FILESDIR}"/${PN}-2.1.1-tests-optional.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 +}