Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pcsc-lite/
Date: Wed, 01 Jan 2020 16:19:29
Message-Id: 1577895562.8b9d24573beadefe72b7a6ead4feb2b9f82aa6f0.zlogene@gentoo
1 commit: 8b9d24573beadefe72b7a6ead4feb2b9f82aa6f0
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 1 16:19:11 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 1 16:19:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b9d2457
7
8 sys-apps/pcsc-lite: Drop old
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 sys-apps/pcsc-lite/pcsc-lite-1.8.25.ebuild | 104 -----------------------------
14 1 file changed, 104 deletions(-)
15
16 diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.8.25.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.8.25.ebuild
17 deleted file mode 100644
18 index 77ffad5c232..00000000000
19 --- a/sys-apps/pcsc-lite/pcsc-lite-1.8.25.ebuild
20 +++ /dev/null
21 @@ -1,104 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
27 -
28 -inherit python-single-r1 systemd udev user multilib-minimal
29 -
30 -DESCRIPTION="PC/SC Architecture smartcard middleware library"
31 -HOMEPAGE="https://pcsclite.apdu.fr/"
32 -
33 -SRC_URI="https://pcsclite.apdu.fr/files/${P}.tar.bz2"
34 -
35 -# GPL-2 is there for the init script; everything else comes from
36 -# upstream.
37 -LICENSE="BSD ISC MIT GPL-3+ GPL-2"
38 -SLOT="0"
39 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
40 -
41 -# This is called libusb so that it doesn't fool people in thinking that
42 -# it is _required_ for USB support. Otherwise they'll disable udev and
43 -# that's going to be worse.
44 -IUSE="python libusb policykit selinux systemd +udev"
45 -
46 -REQUIRED_USE="^^ ( udev libusb )
47 - python? ( ${PYTHON_REQUIRED_USE} )"
48 -
49 -# No dependencies need the MULTILIB_DEPS because the libraries are actually
50 -# standalone, the deps are only needed for the daemon itself.
51 -DEPEND="libusb? ( virtual/libusb:1 )
52 - udev? ( virtual/udev )
53 - policykit? ( >=sys-auth/polkit-0.111 )
54 - python? ( ${PYTHON_DEPS} )"
55 -RDEPEND="${DEPEND}
56 - !<app-crypt/ccid-1.4.1-r1
57 - !<sys-apps/baselayout-2
58 - !<sys-apps/openrc-0.11.8
59 - selinux? ( sec-policy/selinux-pcscd )"
60 -BDEPEND="virtual/pkgconfig"
61 -
62 -PATCHES=(
63 - "${FILESDIR}"/${PN}-1.8.11-polkit-pcscd.patch
64 -)
65 -
66 -DOCS=( AUTHORS HELP README SECURITY ChangeLog )
67 -
68 -pkg_setup() {
69 - use python && python-single-r1_pkg_setup
70 - enewgroup openct # make sure it exists
71 - enewgroup pcscd
72 - enewuser pcscd -1 -1 /run/pcscd pcscd,openct
73 -}
74 -
75 -multilib_src_configure() {
76 - ECONF_SOURCE="${S}" econf \
77 - --disable-maintainer-mode \
78 - --enable-usbdropdir="${EPREFIX}/usr/$(get_libdir)/readers/usb" \
79 - --enable-ipcdir=/run/pcscd \
80 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
81 - $(multilib_native_use_enable systemd libsystemd) \
82 - $(multilib_native_use_enable udev libudev) \
83 - $(multilib_native_use_enable libusb) \
84 - $(multilib_native_use_enable policykit polkit)
85 -}
86 -
87 -multilib_src_install_all() {
88 - einstalldocs
89 -
90 - newinitd "${FILESDIR}"/pcscd-init.7 pcscd
91 -
92 - if use udev; then
93 - insinto "$(get_udevdir)"/rules.d
94 - doins "${FILESDIR}"/99-pcscd-hotplug.rules
95 - fi
96 -
97 - for f in "${ED}/usr/bin/pcsc-spy"; do
98 - if use python; then
99 - python_fix_shebang "${f}"
100 - else
101 - rm "${f}" || die
102 - fi
103 - done
104 -}
105 -
106 -pkg_postinst() {
107 - elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in"
108 - elog "the pcscd group, to avoid running as root."
109 - elog ""
110 - elog "This also means you need the newest drivers available so that the"
111 - elog "devices get the proper owner."
112 - elog ""
113 - elog "Furthermore, a conf.d file is no longer installed by default, as"
114 - elog "the default configuration does not require one. If you need to"
115 - elog "pass further options to pcscd, create a file and set the"
116 - elog "EXTRA_OPTS variable."
117 - elog ""
118 - if use udev; then
119 - elog "Hotplug support is provided by udev rules; you only need to tell"
120 - elog "the init system to hotplug it, by setting this variable in"
121 - elog "/etc/rc.conf:"
122 - elog ""
123 - elog " rc_hotplug=\"pcscd\""
124 - fi
125 -}