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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4457C158091 for ; Wed, 15 Jun 2022 09:53:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CE49E0874; Wed, 15 Jun 2022 09:53:27 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 654BBE0874 for ; Wed, 15 Jun 2022 09:53:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B574341E5A for ; Wed, 15 Jun 2022 09:53:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1508B7F for ; Wed, 15 Jun 2022 09:53:25 +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: <1655286787.4b8d933eca47b522ab4d30f9474a153143b9d615.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/ykpers/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/ykpers/ykpers-1.20.0-r1.ebuild X-VCS-Directories: sys-auth/ykpers/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 4b8d933eca47b522ab4d30f9474a153143b9d615 X-VCS-Branch: master Date: Wed, 15 Jun 2022 09:53:25 +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: 971185eb-7eb7-485b-b93e-ab1ecdb7b248 X-Archives-Hash: c9d6fa043c764daf5768d37bb75319e9 commit: 4b8d933eca47b522ab4d30f9474a153143b9d615 Author: Marek Szuba gentoo org> AuthorDate: Wed Jun 15 09:28:46 2022 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Jun 15 09:53:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b8d933e sys-auth/ykpers: general overhaul Update to EAPI 8, drop IUSE=static-libs, call udev_reload, cosmetics. Closes: https://bugs.gentoo.org/851906 Signed-off-by: Marek Szuba gentoo.org> sys-auth/ykpers/ykpers-1.20.0-r1.ebuild | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/sys-auth/ykpers/ykpers-1.20.0-r1.ebuild b/sys-auth/ykpers/ykpers-1.20.0-r1.ebuild new file mode 100644 index 000000000000..839ecf070e7e --- /dev/null +++ b/sys-auth/ykpers/ykpers-1.20.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools udev + +MY_PN="yubikey-personalization" + +DESCRIPTION="Library and tool for personalization of Yubico's YubiKey" +HOMEPAGE="https://github.com/Yubico/yubikey-personalization" +SRC_URI="https://github.com/Yubico/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND="dev-libs/json-c:= + >=sys-auth/libyubikey-1.6 + virtual/libusb:1" +DEPEND="${RDEPEND}" +BDEPEND="app-text/asciidoc + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.20.0-fix-gcc10-fno-common.patch + "${FILESDIR}"/${PN}-1.20.0-json-boolean.patch +) + +DOCS=( doc/. AUTHORS NEWS README ) + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --libdir=/usr/$(get_libdir) + --localstatedir=/var + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + udev_dorules 69-yubikey.rules + + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}