Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pcsc-lite/
Date: Tue, 03 Apr 2018 21:45:04
Message-Id: 1522791893.007b022fd5f958b6e33cb3c7b3be72cd3ff22d5a.alonbl@gentoo
1 commit: 007b022fd5f958b6e33cb3c7b3be72cd3ff22d5a
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 21:44:28 2018 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 21:44:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=007b022f
7
8 sys-apps/pcsc-lite: cleanup
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sys-apps/pcsc-lite/Manifest | 2 -
13 sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild | 108 -----------------------------
14 sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild | 108 -----------------------------
15 3 files changed, 218 deletions(-)
16
17 diff --git a/sys-apps/pcsc-lite/Manifest b/sys-apps/pcsc-lite/Manifest
18 index 72971604076..fc57135823c 100644
19 --- a/sys-apps/pcsc-lite/Manifest
20 +++ b/sys-apps/pcsc-lite/Manifest
21 @@ -1,3 +1 @@
22 -DIST pcsc-lite-1.8.20.tar.bz2 745049 BLAKE2B 211b463c63b25f1dab629e8c32ccc6f19f28baf7b62029610dc9c2163ba2392f9ffa3d17671ae93c35e0ae3768a82ed5a5f245b8d3ea5f4c46013a07896a00b5 SHA512 63fea660d71605ebced5600a59ab5b6a735c4ba3697faf7658d91b8e281a7fb2a2bca6831c8f8c8c87b87a54f7fd03ae818a4c496dcbac0afce523e3b6c606b8
23 -DIST pcsc-lite-1.8.21.tar.bz2 750879 BLAKE2B dc12fbef1e91a649c1df77603788f3b8eb9f4d3a38f40d54c8d5ea16135312f48d92c4d5706b667ac0db5491467881a8b557a9c56bb14b168c28d06e6e731642 SHA512 bd3740f4444d2201efaa34a312d2a5f6b5808b0b7ff1d5696dce26df67ef198a63a96670d0acac97a6e693b33079afeeeaa6692746875b0ff72d69a2b0835990
24 DIST pcsc-lite-1.8.22.tar.bz2 751724 BLAKE2B d11ca9588449ea8508550b60aad2d2bb6a140c02a86287f6d972ced97fdc8a5db80d542624cbaebdda564192217186c79c30b046cb7d6f6c7a450d91c0f1c9fb SHA512 762eccf6a25040653f563b93bf11262ddc015323d06d759a3472ba80af0489804410ba17c7e5330ccd4b5accc8b7314c80b5e99da278561d3818d8c381e6a025
25
26 diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild
27 deleted file mode 100644
28 index 435f3790d8a..00000000000
29 --- a/sys-apps/pcsc-lite/pcsc-lite-1.8.20.ebuild
30 +++ /dev/null
31 @@ -1,108 +0,0 @@
32 -# Copyright 1999-2017 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI="6"
36 -PYTHON_COMPAT=( python2_7 )
37 -
38 -inherit python-single-r1 systemd udev user multilib-minimal
39 -
40 -DESCRIPTION="PC/SC Architecture smartcard middleware library"
41 -HOMEPAGE="https://pcsclite.alioth.debian.org/"
42 -
43 -STUPID_NUM="4203"
44 -MY_P="${PN}-${PV/_/-}"
45 -SRC_URI="https://alioth.debian.org/download.php/file/${STUPID_NUM}/${MY_P}.tar.bz2"
46 -S="${WORKDIR}/${MY_P}"
47 -
48 -# GPL-2 is there for the init script; everything else comes from
49 -# upstream.
50 -LICENSE="BSD ISC MIT GPL-3+ GPL-2"
51 -SLOT="0"
52 -KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
53 -
54 -# This is called libusb so that it doesn't fool people in thinking that
55 -# it is _required_ for USB support. Otherwise they'll disable udev and
56 -# that's going to be worse.
57 -IUSE="python libusb policykit selinux +udev"
58 -
59 -REQUIRED_USE="^^ ( udev libusb ) \
60 - python? ( ${PYTHON_REQUIRED_USE} )"
61 -
62 -# No dependencies need the MULTILIB_DEPS because the libraries are actually
63 -# standalone, the deps are only needed for the daemon itself.
64 -CDEPEND="libusb? ( virtual/libusb:1 )
65 - udev? ( virtual/udev )
66 - policykit? ( >=sys-auth/polkit-0.111 )
67 - python? ( ${PYTHON_DEPS} )"
68 -DEPEND="${CDEPEND}
69 - virtual/pkgconfig"
70 -RDEPEND="${CDEPEND}
71 - !<app-crypt/ccid-1.4.1-r1
72 - !<sys-apps/baselayout-2
73 - !<sys-apps/openrc-0.11.8
74 - selinux? ( sec-policy/selinux-pcscd )
75 -"
76 -
77 -PATCHES=(
78 - "${FILESDIR}"/${PN}-1.8.11-polkit-pcscd.patch
79 -)
80 -
81 -DOCS=( AUTHORS DRIVERS HELP README SECURITY ChangeLog )
82 -
83 -pkg_setup() {
84 - use python && python-single-r1_pkg_setup
85 - enewgroup openct # make sure it exists
86 - enewgroup pcscd
87 - enewuser pcscd -1 -1 /run/pcscd pcscd,openct
88 -}
89 -
90 -multilib_src_configure() {
91 - ECONF_SOURCE="${S}" econf \
92 - --disable-maintainer-mode \
93 - --enable-usbdropdir="${EPREFIX}/usr/$(get_libdir)/readers/usb" \
94 - --enable-ipcdir=/run/pcscd \
95 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
96 - $(multilib_native_use_enable udev libudev) \
97 - $(multilib_native_use_enable libusb) \
98 - $(multilib_native_use_enable policykit polkit)
99 -}
100 -
101 -multilib_src_install_all() {
102 - einstalldocs
103 -
104 - newinitd "${FILESDIR}"/pcscd-init.7 pcscd
105 -
106 - if use udev; then
107 - insinto "$(get_udevdir)"/rules.d
108 - doins "${FILESDIR}"/99-pcscd-hotplug.rules
109 - fi
110 -
111 - for f in "${ED}/usr/bin/pcsc-spy"; do
112 - if use python; then
113 - python_fix_shebang "${f}"
114 - else
115 - rm "${f}"
116 - fi
117 - done
118 -}
119 -
120 -pkg_postinst() {
121 - elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in"
122 - elog "the pcscd group, to avoid running as root."
123 - elog ""
124 - elog "This also means you need the newest drivers available so that the"
125 - elog "devices get the proper owner."
126 - elog ""
127 - elog "Furthermore, a conf.d file is no longer installed by default, as"
128 - elog "the default configuration does not require one. If you need to"
129 - elog "pass further options to pcscd, create a file and set the"
130 - elog "EXTRA_OPTS variable."
131 - elog ""
132 - if use udev; then
133 - elog "Hotplug support is provided by udev rules; you only need to tell"
134 - elog "the init system to hotplug it, by setting this variable in"
135 - elog "/etc/rc.conf:"
136 - elog ""
137 - elog " rc_hotplug=\"pcscd\""
138 - fi
139 -}
140
141 diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild
142 deleted file mode 100644
143 index 582b0f6a87f..00000000000
144 --- a/sys-apps/pcsc-lite/pcsc-lite-1.8.21.ebuild
145 +++ /dev/null
146 @@ -1,108 +0,0 @@
147 -# Copyright 1999-2017 Gentoo Foundation
148 -# Distributed under the terms of the GNU General Public License v2
149 -
150 -EAPI="6"
151 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
152 -
153 -inherit python-single-r1 systemd udev user multilib-minimal
154 -
155 -DESCRIPTION="PC/SC Architecture smartcard middleware library"
156 -HOMEPAGE="https://pcsclite.alioth.debian.org/"
157 -
158 -STUPID_NUM="4216"
159 -MY_P="${PN}-${PV/_/-}"
160 -SRC_URI="https://alioth.debian.org/download.php/file/${STUPID_NUM}/${MY_P}.tar.bz2"
161 -S="${WORKDIR}/${MY_P}"
162 -
163 -# GPL-2 is there for the init script; everything else comes from
164 -# upstream.
165 -LICENSE="BSD ISC MIT GPL-3+ GPL-2"
166 -SLOT="0"
167 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
168 -
169 -# This is called libusb so that it doesn't fool people in thinking that
170 -# it is _required_ for USB support. Otherwise they'll disable udev and
171 -# that's going to be worse.
172 -IUSE="python libusb policykit selinux +udev"
173 -
174 -REQUIRED_USE="^^ ( udev libusb ) \
175 - python? ( ${PYTHON_REQUIRED_USE} )"
176 -
177 -# No dependencies need the MULTILIB_DEPS because the libraries are actually
178 -# standalone, the deps are only needed for the daemon itself.
179 -CDEPEND="libusb? ( virtual/libusb:1 )
180 - udev? ( virtual/udev )
181 - policykit? ( >=sys-auth/polkit-0.111 )
182 - python? ( ${PYTHON_DEPS} )"
183 -DEPEND="${CDEPEND}
184 - virtual/pkgconfig"
185 -RDEPEND="${CDEPEND}
186 - !<app-crypt/ccid-1.4.1-r1
187 - !<sys-apps/baselayout-2
188 - !<sys-apps/openrc-0.11.8
189 - selinux? ( sec-policy/selinux-pcscd )
190 -"
191 -
192 -PATCHES=(
193 - "${FILESDIR}"/${PN}-1.8.11-polkit-pcscd.patch
194 -)
195 -
196 -DOCS=( AUTHORS DRIVERS HELP README SECURITY ChangeLog )
197 -
198 -pkg_setup() {
199 - use python && python-single-r1_pkg_setup
200 - enewgroup openct # make sure it exists
201 - enewgroup pcscd
202 - enewuser pcscd -1 -1 /run/pcscd pcscd,openct
203 -}
204 -
205 -multilib_src_configure() {
206 - ECONF_SOURCE="${S}" econf \
207 - --disable-maintainer-mode \
208 - --enable-usbdropdir="${EPREFIX}/usr/$(get_libdir)/readers/usb" \
209 - --enable-ipcdir=/run/pcscd \
210 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
211 - $(multilib_native_use_enable udev libudev) \
212 - $(multilib_native_use_enable libusb) \
213 - $(multilib_native_use_enable policykit polkit)
214 -}
215 -
216 -multilib_src_install_all() {
217 - einstalldocs
218 -
219 - newinitd "${FILESDIR}"/pcscd-init.7 pcscd
220 -
221 - if use udev; then
222 - insinto "$(get_udevdir)"/rules.d
223 - doins "${FILESDIR}"/99-pcscd-hotplug.rules
224 - fi
225 -
226 - for f in "${ED}/usr/bin/pcsc-spy"; do
227 - if use python; then
228 - python_fix_shebang "${f}"
229 - else
230 - rm "${f}"
231 - fi
232 - done
233 -}
234 -
235 -pkg_postinst() {
236 - elog "Starting from version 1.6.5, pcsc-lite will start as user nobody in"
237 - elog "the pcscd group, to avoid running as root."
238 - elog ""
239 - elog "This also means you need the newest drivers available so that the"
240 - elog "devices get the proper owner."
241 - elog ""
242 - elog "Furthermore, a conf.d file is no longer installed by default, as"
243 - elog "the default configuration does not require one. If you need to"
244 - elog "pass further options to pcscd, create a file and set the"
245 - elog "EXTRA_OPTS variable."
246 - elog ""
247 - if use udev; then
248 - elog "Hotplug support is provided by udev rules; you only need to tell"
249 - elog "the init system to hotplug it, by setting this variable in"
250 - elog "/etc/rc.conf:"
251 - elog ""
252 - elog " rc_hotplug=\"pcscd\""
253 - fi
254 -}