diff options
author | 2010-12-04 02:08:39 +0000 | |
---|---|---|
committer | 2010-12-04 02:08:39 +0000 | |
commit | 9d15c37f68762e36169656d3eb6279c76b7a47f7 (patch) | |
tree | 3fc07b16902561ff62c35c37cf440b9dc9e05fa6 /sys-apps/pcsc-lite/files | |
parent | Bumped phonon-vlc to the 0.3.1 release. (diff) | |
download | historical-9d15c37f68762e36169656d3eb6279c76b7a47f7.tar.gz historical-9d15c37f68762e36169656d3eb6279c76b7a47f7.tar.bz2 historical-9d15c37f68762e36169656d3eb6279c76b7a47f7.zip |
Version bump; since upstream is working around init script craziness over Ubuntu and other binary distributions, we apply our own workaround by running pcscd as nobody:pcscd and hotplug it via udev. This version also drops HAL support entirely.
Package-Manager: portage-2.2.0_alpha6/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/pcsc-lite/files')
-rw-r--r-- | sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules | 8 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/files/pcscd-init.3 | 33 |
2 files changed, 41 insertions, 0 deletions
diff --git a/sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules b/sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules new file mode 100644 index 000000000000..83a1a28c6270 --- /dev/null +++ b/sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules @@ -0,0 +1,8 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules,v 1.1 2010/12/04 02:08:39 flameeyes Exp $ + +# 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", GROUP=="pcscd", RUN+="/bin/env IN_HOTPLUG=1 /etc/init.d/pcscd --quiet start" diff --git a/sys-apps/pcsc-lite/files/pcscd-init.3 b/sys-apps/pcsc-lite/files/pcscd-init.3 new file mode 100644 index 000000000000..7d872ccef416 --- /dev/null +++ b/sys-apps/pcsc-lite/files/pcscd-init.3 @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.3,v 1.1 2010/12/04 02:08:39 flameeyes Exp $ + +depend() { + need localmount +} + +start() { + if ! [ -d /var/run/pcscd ]; then + mkdir -p /var/run/pcscd + fi + + chgrp pcscd /var/run/pcscd + chmod 0775 /var/run/pcscd + + ebegin "Starting pcscd" + start-stop-daemon --start \ + --exec /usr/sbin/pcscd \ + --pidfile /var/run/pcscd/pcscd.pid \ + --chuid nobody:pcscd \ + -- ${EXTRA_OPTS} + eend $? +} + +stop() { + ebegin "Stopping pcscd" + start-stop-daemon --stop \ + --exec /usr/sbin/pcscd \ + --pidfile /var/run/pcscd/pcscd.pid + eend $? +} |