Github messages for voidlinux
 help / color / mirror / Atom feed
From: jcgruenhage <jcgruenhage@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Add udev rules and INSTALL.msg to gnupg2-scdaemon.
Date: Wed, 13 Jul 2022 19:05:14 +0200	[thread overview]
Message-ID: <20220713170514.Imtm4gmr6nc2Gcy9Dvh2zn1WYfTwv6dAxlRfmYDFrvE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38037@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1567 bytes --]

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages gnupg-smartcard-udev-rules-0.0.20220713_1
https://github.com/void-linux/void-packages/pull/38037

Add udev rules and INSTALL.msg to gnupg2-scdaemon.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


This fixes #38034. There's an `INSTALL.msg` for `gnupg2-scdaemon`, informing users of the potential breakage, and for those not using pcscd, a fix is included by shipping the new udev rules.

Still draft because it depends on https://github.com/void-linux/void-docs/pull/691

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38037.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnupg-smartcard-udev-rules-0.0.20220713_1-38037.patch --]
[-- Type: text/x-diff, Size: 4517 bytes --]

From c764fbad2483e59dc087243dc35ece7c24ae7db6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Wed, 13 Jul 2022 16:28:51 +0200
Subject: [PATCH] gnupg: add smartcard udev rules and INSTALL.msg

---
 srcpkgs/gnupg/files/60-scdaemon.rules         | 37 +++++++++++++++++++
 .../files/gnupg2-scdaemon-README.voidlinux    |  1 +
 srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg     |  5 +++
 srcpkgs/gnupg/template                        |  4 +-
 4 files changed, 46 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/gnupg/files/60-scdaemon.rules
 create mode 120000 srcpkgs/gnupg/files/gnupg2-scdaemon-README.voidlinux
 create mode 100644 srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg

diff --git a/srcpkgs/gnupg/files/60-scdaemon.rules b/srcpkgs/gnupg/files/60-scdaemon.rules
new file mode 100644
index 000000000000..fa3698e7d6a2
--- /dev/null
+++ b/srcpkgs/gnupg/files/60-scdaemon.rules
@@ -0,0 +1,37 @@
+SUBSYSTEM!="usb", GOTO="gnupg_rules_end"
+ACTION!="add", GOTO="gnupg_rules_end"
+
+# USB SmartCard Readers
+## Cherry GmbH (XX33, ST2000)
+ATTRS{idVendor}=="046a", ATTRS{idProduct}=="0005|0010|003e", GROUP="plugdev", TAG+="uaccess"
+## SCM Microsystems, Inc (SCR331-DI, SCR335, SCR3320, SCR331, SCR3310 and SPR532)
+ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5111|5115|5116|5117|e001|e003", GROUP="plugdev", TAG+="uaccess"
+## Omnikey AG (CardMan 3821, CardMan 6121)
+ATTRS{idVendor}=="076b", ATTRS{idProduct}=="3821|6622", GROUP="plugdev", TAG+="uaccess"
+## Gemalto
+ATTRS{idVendor}=="08e6", ATTRS{idProduct}=="3437|3438|3478|34c2|34ec", GROUP="plugdev", TAG+="uaccess"
+## Reiner (SCT cyberJack)
+ATTRS{idVendor}=="0c4b", ATTRS{idProduct}=="0500", GROUP="plugdev", TAG+="uaccess"
+## Kobil (KAAN)
+ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="2012", GROUP="plugdev", TAG+="uaccess"
+## VASCO (DIGIPASS 920)
+ATTRS{idVendor}=="1a44", ATTRS{idProduct}=="0920", GROUP="plugdev", TAG+="uaccess"
+## Crypto Stick
+ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="4107", GROUP="plugdev", TAG+="uaccess"
+## Nitrokey
+ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="4108|4109|4211", GROUP="plugdev", TAG+="uaccess"
+## Librem Key
+ATTRS{idVendor}=="316d", ATTRS{idProduct}=="4c4b", GROUP="plugdev", TAG+="uaccess"
+## Gnuk Token
+ATTRS{product}=="Gnuk Token", GROUP="plugdev", TAG+="uaccess"
+ATTRS{idVendor}=="234b", ATTRS{idProduct}=="0000|2440", GROUP="plugdev", TAG+="uaccess"
+## Alcor Micro Corp cardreader (in ThinkPad X250)
+ATTRS{idVendor}=="058f", ATTRS{idProduct}=="9540", GROUP="plugdev", TAG+="uaccess"
+## Fujitsu Siemens
+ATTRS{idVendor}=="0bf8", ATTRS{idProduct}=="1006", GROUP="plugdev", TAG+="uaccess"
+## Yubico (YubiKey Neo/4/5)
+ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0111|0112|0115|0116|0404|0405|0406|0407", GROUP="plugdev", TAG+="uaccess"
+## Trustica Cryptoucan
+ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="81e6", GROUP="plugdev", TAG+="uaccess"
+
+LABEL="gnupg_rules_end"
diff --git a/srcpkgs/gnupg/files/gnupg2-scdaemon-README.voidlinux b/srcpkgs/gnupg/files/gnupg2-scdaemon-README.voidlinux
new file mode 120000
index 000000000000..7375d3340695
--- /dev/null
+++ b/srcpkgs/gnupg/files/gnupg2-scdaemon-README.voidlinux
@@ -0,0 +1 @@
+../gnupg2-scdaemon.INSTALL.msg
\ No newline at end of file
diff --git a/srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg b/srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg
new file mode 100644
index 000000000000..f23483eeafdc
--- /dev/null
+++ b/srcpkgs/gnupg/gnupg2-scdaemon.INSTALL.msg
@@ -0,0 +1,5 @@
+GnuPG 2.3 changes the behaviour of scdaemon. While GnuPG 2.2 had a fallback to
+PC/SC when the internal CCID driver didn't work, the fallback now has to be
+explicitly configured by disabling the internal CCID driver. If you've not
+explicitly enabled pcscd, you shouldn't need to do anything. For more details,
+see https://docs.voidlinux.org/config/gnupg.html
diff --git a/srcpkgs/gnupg/template b/srcpkgs/gnupg/template
index f16d68e0c541..79a37000021c 100644
--- a/srcpkgs/gnupg/template
+++ b/srcpkgs/gnupg/template
@@ -1,7 +1,7 @@
 # Template file for 'gnupg'
 pkgname=gnupg
 version=2.3.7
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="$(vopt_enable ldap)
  --with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr
@@ -49,5 +49,7 @@ gnupg2-scdaemon_package() {
 	pkg_install() {
 		vmove usr/libexec/scdaemon
 		vmove usr/share/man/man1/scdaemon.1
+		vinstall ${FILESDIR}/60-scdaemon.rules 644 /usr/lib/udev/rules.d
+		vdoc ${FILESDIR}/gnupg2-scdaemon-README.voidlinux README.voidlinux
 	}
 }

  parent reply	other threads:[~2022-07-13 17:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-13 12:03 [PR PATCH] New package: gnupg-smartcard-udev-rules-0.0.20220713 jcgruenhage
2022-07-13 12:04 ` [PR PATCH] [Updated] " jcgruenhage
2022-07-13 12:09 ` jcgruenhage
2022-07-13 12:09 ` [PR REVIEW] " jcgruenhage
2022-07-13 14:30 ` [PR PATCH] [Updated] " jcgruenhage
2022-07-13 15:15 ` Add gnupg-smartcard-udev-rules and add INSTALL.msg to gnupg2-scdaemon jcgruenhage
2022-07-13 15:18 ` jcgruenhage
2022-07-13 15:28 ` ahesford
2022-07-13 15:45 ` 0x5c
2022-07-13 16:03 ` [PR PATCH] [Updated] " jcgruenhage
2022-07-13 16:09 ` [PR PATCH] [Updated] Add udev rules and " jcgruenhage
2022-07-13 16:38 ` [PR REVIEW] " classabbyamp
2022-07-13 16:39 ` classabbyamp
2022-07-13 16:58 ` jcgruenhage
2022-07-13 16:59 ` classabbyamp
2022-07-13 17:00 ` [PR PATCH] [Updated] " jcgruenhage
2022-07-13 17:05 ` jcgruenhage [this message]
2022-07-13 17:13 ` 0x5c
2022-07-13 17:15 ` [PR PATCH] [Merged]: " classabbyamp
2022-07-13 17:19 ` 0x5c

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=20220713170514.Imtm4gmr6nc2Gcy9Dvh2zn1WYfTwv6dAxlRfmYDFrvE@z \
    --to=jcgruenhage@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).