diff options
Diffstat (limited to 'sys-apps/pcsc-lite')
-rw-r--r-- | sys-apps/pcsc-lite/Manifest | 12 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules | 6 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/files/pcsc-lite-1.8.11-polkit-pcscd.patch | 20 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/files/pcscd-init.7 | 22 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/metadata.xml | 32 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild | 108 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild | 108 | ||||
-rw-r--r-- | sys-apps/pcsc-lite/pcsc-lite-1.8.22.ebuild | 108 |
8 files changed, 416 insertions, 0 deletions
diff --git a/sys-apps/pcsc-lite/Manifest b/sys-apps/pcsc-lite/Manifest new file mode 100644 index 000000000000..a818f5dcfab6 --- /dev/null +++ b/sys-apps/pcsc-lite/Manifest @@ -0,0 +1,12 @@ +AUX 99-pcscd-hotplug.rules 358 SHA256 2e9a47146210fbb155eac910e5068cb364fae227627e0e0842ca4a19cf02a45b SHA512 74421fe073cb55f665c4a0350931beae7c252300b4954f69f215334e3e4e6dda927f51837540d24d893ba8ae862e3c1370b694d153508c4186e94959d37f918a WHIRLPOOL 0b11178d114e673dd0b7044e5da508844fc47cee45a5603115c4ed6ee21f283d81f2eedb368e1df1f3447c7d399b4e740367bb69549bd3c98f5b9e696dfb68f6 +AUX pcsc-lite-1.8.11-polkit-pcscd.patch 744 SHA256 23b26775b11c109dd2ff21a798cfafb95111ac07741837e7554eb9a7189c8079 SHA512 4f8b774ec888d51c0ad82431cb9d041be6b69af0bfa2a535c6b7e47afb0056147c08ab9265d7da2259a74347ceba9dba320ad0892d3a25797efc64b79113f4a5 WHIRLPOOL a0ad7472230eecdb20da0bed5eb9efee7aca3b0386a825c49e61a18ce3bbac6636fbca9d97d61db39df3aa84733a7191e121244387e49bae8259b26336295278 +AUX pcscd-init.7 408 SHA256 a30a73bab180997523e45beb3d344bc0ef5bbe774cd806bd112f567b07f032a8 SHA512 e4dac959dbea3d418a3e4012788a3cc7b8aeea295f56f1c3e2f0a599cf469d302f3eaadf05cd0b3c7929a583f8d0b6756177ebe2c497c404b70e9aed7fb7d003 WHIRLPOOL 421c9468494b2a8407587d0d9ad7c340573383579b7a66855151d33a5e7884fcfbe54f79d40ab74ee096a76565f96546abde0108602c0d0bd93d6820d80bced7 +DIST pcsc-lite-1.8.20.tar.bz2 745049 SHA256 ec7d0114016c788c1c09859c84860f6cec6c4595436d23245105154b9c046bb2 SHA512 63fea660d71605ebced5600a59ab5b6a735c4ba3697faf7658d91b8e281a7fb2a2bca6831c8f8c8c87b87a54f7fd03ae818a4c496dcbac0afce523e3b6c606b8 WHIRLPOOL 1c758274a884cf5625d31ed4d56938ee147ba276613c701aee1465b70842a9a73daa92b889835decaaca55707da6be798e3b183aef16a64817d969734d19250a +DIST pcsc-lite-1.8.21.tar.bz2 750879 SHA256 fe3365eb7d4ce0fe891e2b6d6248351c287435ca502103f1f1431b1710e513ad SHA512 bd3740f4444d2201efaa34a312d2a5f6b5808b0b7ff1d5696dce26df67ef198a63a96670d0acac97a6e693b33079afeeeaa6692746875b0ff72d69a2b0835990 WHIRLPOOL 7bc1040262974c94f9c15f48db5370f1ebd6d29f42267cbf73bcbe750974490dcc012f20a56213a17e26f1cb1dbbe2e9f8fbf0fb9c1db80841aa5863ffe4766c +DIST pcsc-lite-1.8.22.tar.bz2 751724 SHA256 6a358f61ed3b66a7f6e1f4e794a94c7be4c81b7a58ec360c33791e8d7d9bd405 SHA512 762eccf6a25040653f563b93bf11262ddc015323d06d759a3472ba80af0489804410ba17c7e5330ccd4b5accc8b7314c80b5e99da278561d3818d8c381e6a025 WHIRLPOOL 39c7b6217fe75da42d062a2618cdb749b78c6a1dd04f60a92c45e974d551782ffa621f78198c600b350da9c7c30666a7e92409b7248b3642bc922f8ab9014036 +EBUILD pcsc-lite-1.8.20.ebuild 3191 SHA256 7dad4e3510efd0e16d59a773f02c35b9c1a2b7321aa017342ffb4bb3ae07a75f SHA512 e0b7db517537b165f4a50dc1cd30f0cf58729012bf9bdf526a50c3987ac0e73885c68d4e073a7538102d1969cb1602da3241d9d6a7ea3f9827b81ea1c65e9e92 WHIRLPOOL e6b45c7f3dc663f8422d8aa8a48570271028acf904bdba0b389606b486b04ce79fee59d1d290dad775ce01f907a7c35d48c8e8a0ffde57f2358efe61386451f2 +EBUILD pcsc-lite-1.8.21.ebuild 3216 SHA256 9d338509e9536c2277db57c2b1b62c477abeeb8f1c5f47f3a4b0a1ebd42b7f23 SHA512 ea8988c6ad6a11d50bf0dcdfc53d6cb142bf6e09155e7f8f000c5f631c578eb8155310408996970bc4ad3fac7af23d30f52b51bd873a57c5cfade93fe73d1c32 WHIRLPOOL 23404218b92a240ce19d644ae0c48bbc37d10315a8ad91e7c8d0379788a88ce4157332cd0b398bc54a8b4ea2271f41053621c88a1324d4b8081a39e839b09ee7 +EBUILD pcsc-lite-1.8.22.ebuild 3223 SHA256 dafb10f2c53473db8389939977c13b85c4ff4718901030dfde39edf6bb5e3f41 SHA512 f343c6af8dfb9c1e06bfaf4f58497f6946d098e3c1dcc4db2e8c28d0c31ae2060d771e0d67c7fba60c139505b7be4d3f228775fa2d6d023411fe97e4a7c90cb6 WHIRLPOOL 8120a2c8981faf033abc95e7f2357ab20df324f9f93164b0d1a85278dae98691ba9087c466a76e7c5b19763895de5ff805ecadfcb8b051506f531f228e99a270 +MISC ChangeLog 6395 SHA256 912a7140d0708d614b80b869e94aa569a62f237bd853a61c9fd71b1359edab89 SHA512 bb4df50e966384eb04788492279c3424d7d2e8694cae1f668ee05d25b7b6dd1ebf01c598ba38781d3f17942a460118a17f1e84e8ba8fc83b1f13715a4a5d3fc2 WHIRLPOOL 9af2a40a4c521ff040b545a8911690ef485efe0934784e58693742ae411f93270d7c7e1c64ca4a5863f5ca9746c0458e9edde9e5d28f759e80143991ec65c5a4 +MISC ChangeLog-2015 28207 SHA256 b31dab1f7a1c1bdef303428db1a473edd20ae2bff480e8e89c3d997eec0db2f0 SHA512 a78a50e69f87f99b32147530d00d3a3193a6ece444aaf6cec6843e0cd3c47a2185e2d34f0bb582f9a94bf44f64d607e59d80f5edf7e4d28d84e3d54969f7863a WHIRLPOOL 0219a49e792f088937cd8208677cec68b9c532ec388e3af20ba712e6ce966723008e2237e10f9e1b88cf0f9a962de38e804656db146ff51c80233795abbeb93e +MISC metadata.xml 1077 SHA256 c2017a8d4069341862246712582099eff835dba057d0bef24d5623f4af1039c4 SHA512 4abc19855a868236dfdcfa6d42fcb901fdf52796e08b589a1413c78b931aee74fd482121ff67da632c2cf2e1ba018ff02f1122f1dac5c2185046f98952efd838 WHIRLPOOL fe32dbc636803d126b46ac2ed16429da44093f773ec0c8f8939d5efe3b9126a2c6bda01ab43acc4bc06edb95d048898ff07310a2bda0f15082525c9a0ec848a4 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..e6ee464344ff --- /dev/null +++ b/sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules @@ -0,0 +1,6 @@ +# Copyright 1999-2010 Gentoo Foundation +# 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", RUN+="/bin/env IN_HOTPLUG=1 /etc/init.d/pcscd --quiet start" diff --git a/sys-apps/pcsc-lite/files/pcsc-lite-1.8.11-polkit-pcscd.patch b/sys-apps/pcsc-lite/files/pcsc-lite-1.8.11-polkit-pcscd.patch new file mode 100644 index 000000000000..e7a7b515820e --- /dev/null +++ b/sys-apps/pcsc-lite/files/pcsc-lite-1.8.11-polkit-pcscd.patch @@ -0,0 +1,20 @@ +Index: pcsc-lite-1.8.11/doc/org.debian.pcsc-lite.policy +=================================================================== +--- pcsc-lite-1.8.11.orig/doc/org.debian.pcsc-lite.policy ++++ pcsc-lite-1.8.11/doc/org.debian.pcsc-lite.policy +@@ -15,6 +15,7 @@ + <allow_inactive>auth_admin</allow_inactive> + <allow_active>yes</allow_active> + </defaults> ++ <annotate key="org.freedesktop.policykit.owner">unix-user:pcscd</annotate> + </action> + + <action id="org.debian.pcsc-lite.access_card"> +@@ -25,6 +26,7 @@ + <allow_inactive>auth_admin</allow_inactive> + <allow_active>yes</allow_active> + </defaults> ++ <annotate key="org.freedesktop.policykit.owner">unix-user:pcscd</annotate> + </action> + + </policyconfig> diff --git a/sys-apps/pcsc-lite/files/pcscd-init.7 b/sys-apps/pcsc-lite/files/pcscd-init.7 new file mode 100644 index 000000000000..f971cdbceaf8 --- /dev/null +++ b/sys-apps/pcsc-lite/files/pcscd-init.7 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +name="PC/SC Daemon" + +pidfile=/run/pcscd/pcscd.pid + +command=/usr/sbin/pcscd +command_args="${EXTRA_OPTS}" + +start_stop_daemon_args="--user pcscd:pcscd" + +depend() { + need localmount + after udev openct dbus + use logger +} + +start_pre() { + checkpath -d -m 0755 -o pcscd:pcscd /run/pcscd +} diff --git a/sys-apps/pcsc-lite/metadata.xml b/sys-apps/pcsc-lite/metadata.xml new file mode 100644 index 000000000000..a91aa068052e --- /dev/null +++ b/sys-apps/pcsc-lite/metadata.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>crypto@gentoo.org</email> + <name>Crypto</name> + </maintainer> + <longdescription> + PC/SC Architecture smartcard middleware library + </longdescription> + + <use> + <flag name="libusb" restrict=">=sys-apps/pcsc-lite-1.8.0"> + Use <pkg>dev-libs/libusb</pkg> detection to hotplug new + smartcard readers. This flag should only be enabled if you're + running a non-Linux kernel or you don't want to use + <pkg>sys-fs/udev</pkg>. + </flag> + + <flag name="udev"> + Use <pkg>sys-fs/udev</pkg> rules to handle devices' permissions + and hotplug support. Unless you know what you're doing do not + disable this flag on Linux kernels. This is provided as an + option for completeness. + </flag> + + <flag name="policykit"> + Uses <pkg>sys-auth/polkit</pkg> to restrict access to smartcard readers or + smartcars to given users. + </flag> + </use> +</pkgmetadata> diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild new file mode 100644 index 000000000000..935b738b30cf --- /dev/null +++ b/sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 systemd udev user multilib-minimal + +DESCRIPTION="PC/SC Architecture smartcard middleware library" +HOMEPAGE="http://pcsclite.alioth.debian.org/" + +STUPID_NUM="4203" +MY_P="${PN}-${PV/_/-}" +SRC_URI="http://alioth.debian.org/download.php/file/${STUPID_NUM}/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" + +# GPL-2 is there for the init script; everything else comes from +# upstream. +LICENSE="BSD ISC MIT GPL-3+ GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +# This is called libusb so that it doesn't fool people in thinking that +# it is _required_ for USB support. Otherwise they'll disable udev and +# that's going to be worse. +IUSE="python libusb policykit selinux +udev" + +REQUIRED_USE="^^ ( udev libusb ) \ + python? ( ${PYTHON_REQUIRED_USE} )" + +# No dependencies need the MULTILIB_DEPS because the libraries are actually +# standalone, the deps are only needed for the daemon itself. +CDEPEND="libusb? ( virtual/libusb:1 ) + udev? ( virtual/udev ) + policykit? ( >=sys-auth/polkit-0.111 ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND} + !<app-crypt/ccid-1.4.1-r1 + !<sys-apps/baselayout-2 + !<sys-apps/openrc-0.11.8 + selinux? ( sec-policy/selinux-pcscd ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.8.11-polkit-pcscd.patch +) + +DOCS=( AUTHORS DRIVERS HELP README SECURITY ChangeLog ) + +pkg_setup() { + use python && python-single-r1_pkg_setup + enewgroup openct # make sure it exists + enewgroup pcscd + enewuser pcscd -1 -1 /run/pcscd pcscd,openct +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-maintainer-mode \ + --enable-usbdropdir="${EPREFIX}/usr/$(get_libdir)/readers/usb" \ + --enable-ipcdir=/run/pcscd \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ + $(multilib_native_use_enable udev libudev) \ + $(multilib_native_use_enable libusb) \ + $(multilib_native_use_enable policykit polkit) +} + +multilib_src_install_all() { + einstalldocs + + newinitd "${FILESDIR}"/pcscd-init.7 pcscd + + if use udev; then + insinto "$(get_udevdir)"/rules.d + doins "${FILESDIR}"/99-pcscd-hotplug.rules + fi + + for f in "${ED}/usr/bin/pcsc-spy"; do + if use python; then + python_fix_shebang "${f}" + else + rm "${f}" + fi + done +} + +pkg_postinst() { + elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in" + elog "the pcscd group, to avoid running as root." + elog "" + elog "This also means you need the newest drivers available so that the" + elog "devices get the proper owner." + elog "" + elog "Furthermore, a conf.d file is no longer installed by default, as" + elog "the default configuration does not require one. If you need to" + elog "pass further options to pcscd, create a file and set the" + elog "EXTRA_OPTS variable." + elog "" + if use udev; then + elog "Hotplug support is provided by udev rules; you only need to tell" + elog "the init system to hotplug it, by setting this variable in" + elog "/etc/rc.conf:" + elog "" + elog " rc_hotplug=\"pcscd\"" + fi +} diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild new file mode 100644 index 000000000000..708ceb1c43a6 --- /dev/null +++ b/sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit python-single-r1 systemd udev user multilib-minimal + +DESCRIPTION="PC/SC Architecture smartcard middleware library" +HOMEPAGE="http://pcsclite.alioth.debian.org/" + +STUPID_NUM="4216" +MY_P="${PN}-${PV/_/-}" +SRC_URI="http://alioth.debian.org/download.php/file/${STUPID_NUM}/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" + +# GPL-2 is there for the init script; everything else comes from +# upstream. +LICENSE="BSD ISC MIT GPL-3+ GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +# This is called libusb so that it doesn't fool people in thinking that +# it is _required_ for USB support. Otherwise they'll disable udev and +# that's going to be worse. +IUSE="python libusb policykit selinux +udev" + +REQUIRED_USE="^^ ( udev libusb ) \ + python? ( ${PYTHON_REQUIRED_USE} )" + +# No dependencies need the MULTILIB_DEPS because the libraries are actually +# standalone, the deps are only needed for the daemon itself. +CDEPEND="libusb? ( virtual/libusb:1 ) + udev? ( virtual/udev ) + policykit? ( >=sys-auth/polkit-0.111 ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND} + !<app-crypt/ccid-1.4.1-r1 + !<sys-apps/baselayout-2 + !<sys-apps/openrc-0.11.8 + selinux? ( sec-policy/selinux-pcscd ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.8.11-polkit-pcscd.patch +) + +DOCS=( AUTHORS DRIVERS HELP README SECURITY ChangeLog ) + +pkg_setup() { + use python && python-single-r1_pkg_setup + enewgroup openct # make sure it exists + enewgroup pcscd + enewuser pcscd -1 -1 /run/pcscd pcscd,openct +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-maintainer-mode \ + --enable-usbdropdir="${EPREFIX}/usr/$(get_libdir)/readers/usb" \ + --enable-ipcdir=/run/pcscd \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ + $(multilib_native_use_enable udev libudev) \ + $(multilib_native_use_enable libusb) \ + $(multilib_native_use_enable policykit polkit) +} + +multilib_src_install_all() { + einstalldocs + + newinitd "${FILESDIR}"/pcscd-init.7 pcscd + + if use udev; then + insinto "$(get_udevdir)"/rules.d + doins "${FILESDIR}"/99-pcscd-hotplug.rules + fi + + for f in "${ED}/usr/bin/pcsc-spy"; do + if use python; then + python_fix_shebang "${f}" + else + rm "${f}" + fi + done +} + +pkg_postinst() { + elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in" + elog "the pcscd group, to avoid running as root." + elog "" + elog "This also means you need the newest drivers available so that the" + elog "devices get the proper owner." + elog "" + elog "Furthermore, a conf.d file is no longer installed by default, as" + elog "the default configuration does not require one. If you need to" + elog "pass further options to pcscd, create a file and set the" + elog "EXTRA_OPTS variable." + elog "" + if use udev; then + elog "Hotplug support is provided by udev rules; you only need to tell" + elog "the init system to hotplug it, by setting this variable in" + elog "/etc/rc.conf:" + elog "" + elog " rc_hotplug=\"pcscd\"" + fi +} diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.8.22.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.8.22.ebuild new file mode 100644 index 000000000000..7f3ea5145333 --- /dev/null +++ b/sys-apps/pcsc-lite/pcsc-lite-1.8.22.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit python-single-r1 systemd udev user multilib-minimal + +DESCRIPTION="PC/SC Architecture smartcard middleware library" +HOMEPAGE="http://pcsclite.alioth.debian.org/" + +STUPID_NUM="4225" +MY_P="${PN}-${PV/_/-}" +SRC_URI="http://alioth.debian.org/download.php/file/${STUPID_NUM}/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" + +# GPL-2 is there for the init script; everything else comes from +# upstream. +LICENSE="BSD ISC MIT GPL-3+ GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +# This is called libusb so that it doesn't fool people in thinking that +# it is _required_ for USB support. Otherwise they'll disable udev and +# that's going to be worse. +IUSE="python libusb policykit selinux +udev" + +REQUIRED_USE="^^ ( udev libusb ) \ + python? ( ${PYTHON_REQUIRED_USE} )" + +# No dependencies need the MULTILIB_DEPS because the libraries are actually +# standalone, the deps are only needed for the daemon itself. +CDEPEND="libusb? ( virtual/libusb:1 ) + udev? ( virtual/udev ) + policykit? ( >=sys-auth/polkit-0.111 ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND} + !<app-crypt/ccid-1.4.1-r1 + !<sys-apps/baselayout-2 + !<sys-apps/openrc-0.11.8 + selinux? ( sec-policy/selinux-pcscd ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.8.11-polkit-pcscd.patch +) + +DOCS=( AUTHORS DRIVERS HELP README SECURITY ChangeLog ) + +pkg_setup() { + use python && python-single-r1_pkg_setup + enewgroup openct # make sure it exists + enewgroup pcscd + enewuser pcscd -1 -1 /run/pcscd pcscd,openct +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-maintainer-mode \ + --enable-usbdropdir="${EPREFIX}/usr/$(get_libdir)/readers/usb" \ + --enable-ipcdir=/run/pcscd \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ + $(multilib_native_use_enable udev libudev) \ + $(multilib_native_use_enable libusb) \ + $(multilib_native_use_enable policykit polkit) +} + +multilib_src_install_all() { + einstalldocs + + newinitd "${FILESDIR}"/pcscd-init.7 pcscd + + if use udev; then + insinto "$(get_udevdir)"/rules.d + doins "${FILESDIR}"/99-pcscd-hotplug.rules + fi + + for f in "${ED}/usr/bin/pcsc-spy"; do + if use python; then + python_fix_shebang "${f}" + else + rm "${f}" + fi + done +} + +pkg_postinst() { + elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in" + elog "the pcscd group, to avoid running as root." + elog "" + elog "This also means you need the newest drivers available so that the" + elog "devices get the proper owner." + elog "" + elog "Furthermore, a conf.d file is no longer installed by default, as" + elog "the default configuration does not require one. If you need to" + elog "pass further options to pcscd, create a file and set the" + elog "EXTRA_OPTS variable." + elog "" + if use udev; then + elog "Hotplug support is provided by udev rules; you only need to tell" + elog "the init system to hotplug it, by setting this variable in" + elog "/etc/rc.conf:" + elog "" + elog " rc_hotplug=\"pcscd\"" + fi +} |