1 |
commit: 226b13f9d283269dab5641890ff0e7145ea55975 |
2 |
Author: Amy Liffey <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 6 17:18:29 2022 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 6 17:18:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=226b13f9 |
7 |
|
8 |
app-crypt/acr38u: udev rules without calling udev_reload |
9 |
|
10 |
Closes: https://bugs.gentoo.org/854234 |
11 |
Submitted-by: Vincent Hardy <vincent.hardy.be <AT> gmail.com> |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Amy Liffey <amynka <AT> gentoo.org> |
14 |
|
15 |
app-crypt/acr38u/acr38u-1.7.11-r4.ebuild | 56 ++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/acr38u/acr38u-1.7.11-r4.ebuild b/app-crypt/acr38u/acr38u-1.7.11-r4.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000000..2af122979701 |
21 |
--- /dev/null |
22 |
+++ b/app-crypt/acr38u/acr38u-1.7.11-r4.ebuild |
23 |
@@ -0,0 +1,56 @@ |
24 |
+# Copyright 1999-2022 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=8 |
28 |
+ |
29 |
+inherit autotools toolchain-funcs udev |
30 |
+ |
31 |
+MY_P=ACR38_LINUX_$(ver_cut 1)00$(ver_cut 2)$(ver_cut 3)_P |
32 |
+ |
33 |
+SLOT="0" |
34 |
+LICENSE="LGPL-2.1" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+DESCRIPTION="Non CCID driver for ACR38 AC1038-based Smart Card Reader" |
37 |
+ |
38 |
+#SRC_URI="http://www.acs.com.hk/drivers/eng/${MY_P}.tar.bz2" |
39 |
+# tarball release is encapsuled in a .zip file :-( |
40 |
+# http://www.acs.com.hk/drivers/eng/ACR38_Driver_Lnx_101_P.zip |
41 |
+# This drivers is not maintained by ACS anymore. |
42 |
+SRC_URI="https://www.linuxunderground.be/${MY_P}.tar.bz2" |
43 |
+HOMEPAGE="https://www.acs.com.hk" |
44 |
+ |
45 |
+# Make this safe from collisions, require a version of pcsc-lite that |
46 |
+# uses libusb-1.0 and use the wrapper library instead. |
47 |
+# Changed back from dev-libs/libusb-compat to virtual/libusb:0 because |
48 |
+# libusb-compat is marked stable and primary in the virtual. -ssuominen |
49 |
+RDEPEND=">=sys-apps/pcsc-lite-1.6.4 |
50 |
+ virtual/libusb:0" |
51 |
+DEPEND="${RDEPEND}" |
52 |
+BDEPEND="virtual/pkgconfig" |
53 |
+ |
54 |
+S="${WORKDIR}/${MY_P}" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${P}-build.patch |
58 |
+) |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ eautoreconf |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ default |
67 |
+ find "${D}" -name '*.la' -delete || die |
68 |
+ |
69 |
+ # note: for eudev support this pkg may always need to install rules to /usr |
70 |
+ udev_newrules "${FILESDIR}/${PV}-bis.rules" 92-pcscd-acr38u.rules |
71 |
+} |
72 |
+ |
73 |
+pkg_postinst() { |
74 |
+ udev_reload |
75 |
+} |
76 |
+ |
77 |
+pkg_postrm() { |
78 |
+ udev_reload |
79 |
+} |