Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 554118 | Differences between
and this patch

Collapse All | Expand All

(-)a/sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules (-1 / +1 lines)
Lines 3-6 Link Here
3
3
4
# We add this here so that it runs after ccid's and ifd-gempc's rules;
4
# We add this here so that it runs after ccid's and ifd-gempc's rules;
5
# if we just added a pcscd-owned device, we hotplug the pcscd service.
5
# if we just added a pcscd-owned device, we hotplug the pcscd service.
6
ACTION=="add", ENV{PCSCD}=="1", GROUP="pcscd", RUN+="/bin/env IN_HOTPLUG=1 /etc/init.d/pcscd --quiet start"
6
ACTION=="add", ENV{PCSCD}=="1", GROUP="pcscd", TAG+="systemd", ENV{SYSTEMD_WANTS}+="pcscd.service", RUN+="pcscd.sh"
(-)a/sys-apps/pcsc-lite/files/pcscd-udev (+14 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# pcscd.sh: udev external RUN script
4
#
5
# based on netifrc net.sh helper
6
# Copyright 2007 Roy Marples <uberlord@gentoo.org>
7
# Distributed under the terms of the GNU General Public License v2
8
9
# make sure openrc is managing services
10
if [ ! -d /run/openrc ]; then
11
	exit 0
12
fi
13
14
IN_HOTPLUG=1 /etc/init.d/pcscd --quiet start
(-)a/sys-apps/pcsc-lite/pcsc-lite-1.8.25.ebuild (-4 / +6 lines)
Lines 69-74 multilib_src_install_all() { Link Here
69
	newinitd "${FILESDIR}"/pcscd-init.7 pcscd
69
	newinitd "${FILESDIR}"/pcscd-init.7 pcscd
70
70
71
	if use udev; then
71
	if use udev; then
72
		exeinto "$(get_udevdir)"
73
		newexe "${FILESDIR}"/pcscd-udev pcscd.sh
74
72
		insinto "$(get_udevdir)"/rules.d
75
		insinto "$(get_udevdir)"/rules.d
73
		doins "${FILESDIR}"/99-pcscd-hotplug.rules
76
		doins "${FILESDIR}"/99-pcscd-hotplug.rules
74
	fi
77
	fi
Lines 95-103 pkg_postinst() { Link Here
95
	elog "EXTRA_OPTS variable."
98
	elog "EXTRA_OPTS variable."
96
	elog ""
99
	elog ""
97
	if use udev; then
100
	if use udev; then
98
		elog "Hotplug support is provided by udev rules; you only need to tell"
101
		elog "Hotplug support is provided by udev rules."
99
		elog "the init system to hotplug it, by setting this variable in"
102
		elog "When using OpenRC you additionally need to tell it to hotplug"
100
		elog "/etc/rc.conf:"
103
		elog "pcscd by setting this variable in /etc/rc.conf:"
101
		elog ""
104
		elog ""
102
		elog "    rc_hotplug=\"pcscd\""
105
		elog "    rc_hotplug=\"pcscd\""
103
	fi
106
	fi
104
- 

Return to bug 554118