diff options
Diffstat (limited to 'app-crypt/libu2f-host')
-rw-r--r-- | app-crypt/libu2f-host/Manifest | 1 | ||||
-rw-r--r-- | app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/app-crypt/libu2f-host/Manifest b/app-crypt/libu2f-host/Manifest index d4efeb619b1f..7f4808fd9919 100644 --- a/app-crypt/libu2f-host/Manifest +++ b/app-crypt/libu2f-host/Manifest @@ -1,4 +1,5 @@ AUX libu2f-host-1.1.10-json-boolean.patch 1101 BLAKE2B c603290ae3f34ac9c6eccbee080ac83d7fcea2dfad69f1088de39cc35165fe7333acafee0aac53c9d973fd0b266bb822a1a68f48e64a492dbb5440976c2ecaf3 SHA512 e8b516d797bbb136fe51c367248be6d1035de409156a35ce55c9e871b236178c610e36f5859121e7fddae28e17c44db9bfa21ce4584acb3c45c6f68fbaba46e2 DIST libu2f-host-1.1.10.tar.xz 471676 BLAKE2B 5066eaaaeda3b8c015afa8946f0af3b1b90a34488d4c71811c0d8f57a3ed2e4c8cb3d82d2df147dcf13ac3c384522d22f25894ac3a2d994a75b288891a67640a SHA512 91c5bf3994f1d3c9bd144f54b14b0404d839c15bef3c318619decdf1bd37214bcff33927af78a9826ff7d0bc9907c912a0e31104ae68d3a727a8436f2a1dbf7a +EBUILD libu2f-host-1.1.10-r1.ebuild 1046 BLAKE2B b4de90e961c5bcb303fc9c414e3d7f8ba107741063770b068301c08bec54308643e2ec024de3680bf3ce665cf1f07d5402c2dabcaf53ff80499fa7fa67a89fe8 SHA512 bab94b575027d9245e29aa927a64e02c415535f941ee22f67eb755cabc46ce884dc271ae74384d1defc0c416b29923f097d93c2791ef18049bf2f04c65407f6d EBUILD libu2f-host-1.1.10.ebuild 1044 BLAKE2B a1db95597cf045d25dd886289c476a27b7bf696f62e7796df6225ee5aa875020fdb5c70c4aa3c2f56447167fac6a700a7b13d35f9a2528b97e27930aafbfa0cb SHA512 2aba85c68c6b90e8a4606d9d704a16b09cdf9bd57fdf9ceb161d439b9b9ca1414fd98d92df5446a56ebbacc2aa234cc8d75e2f2055f1c99136e08a6835432bc3 MISC metadata.xml 532 BLAKE2B ee0715bb0c5c993605e314456f9e2cf6aad97cec45e38836dbbcd51d557ee65da536c7f49fd04029e24d1d72d0011ef496346017cb8854b436d9ddc38efd3262 SHA512 c3dc0519b09376c82fa5bb589765ae5b88b680025224b22da23da508216253112ef66b6e0e14c1aebf79a7f67d88a6500f2106386a8f4eead97a79ef55204112 diff --git a/app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild b/app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild new file mode 100644 index 000000000000..c49ed0d65a11 --- /dev/null +++ b/app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info udev + +DESCRIPTION="Yubico Universal 2nd Factor (U2F) Host C Library" +HOMEPAGE="https://developers.yubico.com/libu2f-host/" +SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="systemd" + +DEPEND="dev-libs/hidapi + dev-libs/json-c:=" +# The U2F device node will be owned by group 'plugdev' +# in non-systemd configurations +RDEPEND="${DEPEND} + !systemd? ( acct-group/plugdev ) + systemd? ( sys-apps/systemd[acl] )" +BDEPEND="virtual/pkgconfig" + +CONFIG_CHECK="~HIDRAW" + +PATCHES=( "${FILESDIR}/${P}-json-boolean.patch" ) + +src_install() { + default + if use kernel_linux; then + udev_dorules 70-u2f.rules + fi + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + udev_reload + + if ! use systemd; then + elog "Users must be a member of the 'plugdev' group" + elog "to be able to access U2F devices" + fi +} + +pkg_postrm() { + udev_reload +} |