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