diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-09-13 13:01:20 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-09-13 13:02:38 +0200 |
commit | 3badac5a347d8a7dd489c4546d907bf2ff028ffb (patch) | |
tree | 5bc8d826c1f94d8cef4f5b3580e2cab1ae5959b2 /sys-auth | |
parent | net-mail/dovecot: Call eautoreconf (diff) | |
download | gentoo-3badac5a347d8a7dd489c4546d907bf2ff028ffb.tar.gz gentoo-3badac5a347d8a7dd489c4546d907bf2ff028ffb.tar.bz2 gentoo-3badac5a347d8a7dd489c4546d907bf2ff028ffb.zip |
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 <marecki@gentoo.org>
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
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 000000000000..a7a762e6a8df --- /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 +} |