Accepting request 625188 from Base:System
- Add basic udev rules for smartcards to be used with scdaemon, taken from debian: * scdaemon.udev OBS-URL: https://build.opensuse.org/request/show/625188 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpg2?expand=0&rev=130
This commit is contained in:
parent
cd58797a77
commit
212147741a
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 25 05:50:42 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Add basic udev rules for smartcards to be used with
|
||||||
|
scdaemon, taken from debian:
|
||||||
|
* scdaemon.udev
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 13 07:13:12 UTC 2018 - astieger@suse.com
|
Fri Jul 13 07:13:12 UTC 2018 - astieger@suse.com
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ Source: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
|
|||||||
Source2: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
|
Source2: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
|
||||||
# https://www.gnupg.org/signature_key.html
|
# https://www.gnupg.org/signature_key.html
|
||||||
Source3: %{name}.keyring
|
Source3: %{name}.keyring
|
||||||
|
Source4: scdaemon.udev
|
||||||
Source99: %{name}.changes
|
Source99: %{name}.changes
|
||||||
Patch4: gnupg-2.0.9-langinfo.patch
|
Patch4: gnupg-2.0.9-langinfo.patch
|
||||||
Patch5: gnupg-2.2.8-files-are-digests.patch
|
Patch5: gnupg-2.2.8-files-are-digests.patch
|
||||||
@ -128,6 +129,8 @@ rm -rf %{buildroot}/%{_datadir}/locale/en@{bold,}quot
|
|||||||
# install scdaemon to %{_bindir} (bnc#863645)
|
# install scdaemon to %{_bindir} (bnc#863645)
|
||||||
mv %{buildroot}%{_libdir}/scdaemon %{buildroot}%{_bindir}
|
mv %{buildroot}%{_libdir}/scdaemon %{buildroot}%{_bindir}
|
||||||
mv %{buildroot}%{_libdir}/dirmngr_ldap %{buildroot}%{_bindir}
|
mv %{buildroot}%{_libdir}/dirmngr_ldap %{buildroot}%{_bindir}
|
||||||
|
# install udev rules for scdaemon
|
||||||
|
install -Dm 0644 %{SOURCE4} %{buildroot}%{_udevrulesdir}/60-scdaemon.rules
|
||||||
# install legacy tools
|
# install legacy tools
|
||||||
install -m 755 tools/gpg-zip %{buildroot}/%{_bindir}
|
install -m 755 tools/gpg-zip %{buildroot}/%{_bindir}
|
||||||
# install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
|
# install -m 755 tools/gpgsplit %{buildroot}/%{_bindir}
|
||||||
@ -142,6 +145,7 @@ install -m 755 tools/gpg-zip %{buildroot}/%{_bindir}
|
|||||||
#%endif
|
#%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%udev_rules_update
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnupg.info.gz
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -160,6 +164,7 @@ install -m 755 tools/gpg-zip %{buildroot}/%{_bindir}
|
|||||||
%{_sbindir}/addgnupghome
|
%{_sbindir}/addgnupghome
|
||||||
%{_sbindir}/applygnupgdefaults
|
%{_sbindir}/applygnupgdefaults
|
||||||
%{_sbindir}/g13-syshelp
|
%{_sbindir}/g13-syshelp
|
||||||
|
%{_udevrulesdir}/60-scdaemon.rules
|
||||||
%{_datadir}/gnupg
|
%{_datadir}/gnupg
|
||||||
%dir %{_sysconfdir}/gnupg
|
%dir %{_sysconfdir}/gnupg
|
||||||
%config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf
|
%config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf
|
||||||
|
65
scdaemon.udev
Normal file
65
scdaemon.udev
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# do not edit this file, it will be overwritten on update
|
||||||
|
|
||||||
|
SUBSYSTEM!="usb", GOTO="gnupg_rules_end"
|
||||||
|
ACTION!="add", GOTO="gnupg_rules_end"
|
||||||
|
|
||||||
|
# USB SmartCard Readers
|
||||||
|
## Cherry GmbH (XX33, ST2000)
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="046a", ATTR{idProduct}=="0005", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="046a", ATTR{idProduct}=="0010", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="046a", ATTR{idProduct}=="003e", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## SCM Microsystems, Inc (SCR331-DI, SCR335, SCR3320, SCR331, SCR3310 and SPR532)
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="04e6", ATTR{idProduct}=="5111", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="04e6", ATTR{idProduct}=="5115", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="04e6", ATTR{idProduct}=="5116", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="04e6", ATTR{idProduct}=="5117", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="04e6", ATTR{idProduct}=="e001", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="04e6", ATTR{idProduct}=="e003", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Omnikey AG (CardMan 3821, CardMan 6121)
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="076b", ATTR{idProduct}=="3821", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="076b", ATTR{idProduct}=="6622", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Gemalto
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="08e6", ATTR{idProduct}=="3437", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="08e6", ATTR{idProduct}=="3438", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="08e6", ATTR{idProduct}=="3478", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="08e6", ATTR{idProduct}=="34c2", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="08e6", ATTR{idProduct}=="34ec", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Reiner (SCT cyberJack)
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0c4b", ATTR{idProduct}=="0500", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Kobil (KAAN)
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0d46", ATTR{idProduct}=="2012", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## VASCO (DIGIPASS 920)
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1a44", ATTR{idProduct}=="0920", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Crypto Stick
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="20a0", ATTR{idProduct}=="4107", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Nitrokey
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="20a0", ATTR{idProduct}=="4108", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="20a0", ATTR{idProduct}=="4109", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="20a0", ATTR{idProduct}=="4211", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Gnuk Token
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="234b", ATTR{idProduct}=="0000", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Alcor Micro Corp cardreader (in ThinkPad X250)
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="058f", ATTR{idProduct}=="9540", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Fujitsu Siemens
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0bf8", ATTR{idProduct}=="1006", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Yubico
|
||||||
|
# Yubikey NEO OTP+CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0111", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
# Yubikey NEO CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0112", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
# Yubikey NEO U2F+CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0115", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
# Yubikey NEO OTP+U2F+CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0116", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
# Yubikey 4 CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0404", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
# Yubikey 4 OTP+CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0405", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
# Yubikey 4 U2F+CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0406", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
# Yubikey 4 OTP+U2F+CCID
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0407", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
## Trustica Cryptoucan
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", ATTR{idProduct}=="81e6", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg"
|
||||||
|
|
||||||
|
LABEL="gnupg_rules_end"
|
Loading…
Reference in New Issue
Block a user