public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/libu2f-host/
Date: Sat, 25 Jun 2022 10:07:54 +0000 (UTC)	[thread overview]
Message-ID: <1656151668.bc00377ad62649ab9ad00c42a3c00562b7b82e8f.marecki@gentoo> (raw)

commit:     bc00377ad62649ab9ad00c42a3c00562b7b82e8f
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 09:55:59 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 10:07:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc00377a

app-crypt/libu2f-host: call udev_reload

Also bump EAPI to 8.

Closes: https://bugs.gentoo.org/854246
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)

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
+}


             reply	other threads:[~2022-06-25 10:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-25 10:07 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-16 22:52 [gentoo-commits] repo/gentoo:master commit in: app-crypt/libu2f-host/ Marek Szuba
2022-08-15 22:30 Sam James
2021-09-13 16:26 Marek Szuba
2021-09-13 16:26 Marek Szuba
2021-08-10  0:22 Göktürk Yüksek
2020-10-15  1:09 Sam James
2019-12-26 12:56 Georgy Yakovlev
2019-09-13 12:58 Michał Górny
2019-06-08 19:10 Göktürk Yüksek
2019-06-08 18:13 Agostino Sarubbo
2019-06-07 20:14 Mikle Kolyada
2019-06-05 20:05 Göktürk Yüksek
2019-06-05 20:05 Göktürk Yüksek
2018-10-05 13:24 Alexys Jacob
2017-12-19 21:45 Thomas Deutschmann
2017-12-14  5:50 Jason Zaman
2017-12-08 20:39 Thomas Deutschmann
2017-02-04  1:31 Alon Bar-Lev
2016-10-09 13:48 Diego Elio Pettenò
2016-06-28 21:22 Göktürk Yüksek
2016-03-19 13:54 Manuel Rüger
2016-02-18 22:05 Manuel Rüger
2016-02-18 21:58 Manuel Rüger
2016-01-02 14:54 Patrice Clement
2015-09-13 14:44 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1656151668.bc00377ad62649ab9ad00c42a3c00562b7b82e8f.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox