mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/pcsc-lite: fix udev rule for pcscd hotplug, #902847
Closes: https://bugs.gentoo.org/902847 Closes: https://github.com/gentoo/gentoo/pull/36964 Signed-off-by: Thibaud CANALE <thican@thican.net> Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
committed by
David Seifert
parent
513ddc0221
commit
823568f4fe
@@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# We add this here so that it runs after ccid's and ifd-gempc's rules;
|
||||
# if we just added a pcscd-owned device, we hotplug the pcscd service.
|
||||
ACTION=="add", ENV{PCSCD}=="1", GROUP="pcscd", TAG+="systemd", ENV{SYSTEMD_WANTS}+="pcscd.service", RUN+="pcscd.sh"
|
||||
ACTION=="add", ENV{ID_SMARTCARD_READER}=="1", GROUP="pcscd", TAG+="systemd", ENV{SYSTEMD_WANTS}+="pcscd.service", RUN+="pcscd.sh"
|
||||
@@ -70,7 +70,7 @@ multilib_src_install_all() {
|
||||
newexe "${FILESDIR}"/pcscd-udev pcscd.sh
|
||||
|
||||
insinto "$(get_udevdir)"/rules.d
|
||||
newins "${FILESDIR}"/99-pcscd-hotplug-r1.rules 99-pcscd-hotplug.rules
|
||||
newins "${FILESDIR}"/99-pcscd-hotplug-r2.rules 99-pcscd-hotplug.rules
|
||||
fi
|
||||
|
||||
python_fix_shebang "${ED}"/usr/bin/pcsc-spy
|
||||
@@ -70,7 +70,7 @@ multilib_src_install_all() {
|
||||
newexe "${FILESDIR}"/pcscd-udev pcscd.sh
|
||||
|
||||
insinto "$(get_udevdir)"/rules.d
|
||||
newins "${FILESDIR}"/99-pcscd-hotplug-r1.rules 99-pcscd-hotplug.rules
|
||||
newins "${FILESDIR}"/99-pcscd-hotplug-r2.rules 99-pcscd-hotplug.rules
|
||||
fi
|
||||
|
||||
python_fix_shebang "${ED}"/usr/bin/pcsc-spy
|
||||
Reference in New Issue
Block a user