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