1 |
commit: d4b9861c1f0a2be57ab2d04d1b666a272b2a8856 |
2 |
Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be> |
3 |
AuthorDate: Fri Sep 24 09:44:47 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 24 23:30:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4b9861c |
7 |
|
8 |
app-crypt/coolkey: revbump: fix configure error and CFLAGS manipulation |
9 |
|
10 |
One of the patches (0004-Bug-fixups.patch) in the patch tarball |
11 |
addresses an error in configure.in, but without a call to |
12 |
(e)autoreconf, the configure script remained unchanged. |
13 |
|
14 |
Also, change the CFLAGS argument to emake to a proper append-flags call |
15 |
(there is some C++ code in there as well). |
16 |
|
17 |
Signed-off-by: Christophe Lermytte <gentoo <AT> lermytte.be> |
18 |
Thanks-to: Sam James <sam <AT> gentoo.org> |
19 |
Closes: https://bugs.gentoo.org/745285 |
20 |
Closes: https://github.com/gentoo/gentoo/pull/22387 |
21 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
22 |
|
23 |
app-crypt/coolkey/coolkey-1.1.0-r8.ebuild | 90 +++++++++++++++++++++++++++++++ |
24 |
1 file changed, 90 insertions(+) |
25 |
|
26 |
diff --git a/app-crypt/coolkey/coolkey-1.1.0-r8.ebuild b/app-crypt/coolkey/coolkey-1.1.0-r8.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2fdee697e0b |
29 |
--- /dev/null |
30 |
+++ b/app-crypt/coolkey/coolkey-1.1.0-r8.ebuild |
31 |
@@ -0,0 +1,90 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit flag-o-matic |
38 |
+ |
39 |
+PATCHVER="003" |
40 |
+ |
41 |
+DESCRIPTION="Linux Driver support for the CoolKey and CAC products" |
42 |
+HOMEPAGE="https://directory.fedora.redhat.com/wiki/CoolKey" |
43 |
+SRC_URI="https://directory.fedora.redhat.com/download/coolkey/${P}.tar.gz |
44 |
+ mirror://gentoo/${P}-patches-${PATCHVER}.tar.gz" |
45 |
+ |
46 |
+LICENSE="LGPL-2.1" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
49 |
+IUSE="debug" |
50 |
+ |
51 |
+RDEPEND=">=sys-apps/pcsc-lite-1.6.4 |
52 |
+ dev-libs/nss[utils] |
53 |
+ sys-libs/zlib" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ >=app-crypt/ccid-1.4.0" |
56 |
+BDEPEND="virtual/pkgconfig" |
57 |
+ |
58 |
+PATCHES=( |
59 |
+ "${WORKDIR}/${PN}-patches" |
60 |
+) |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ pk="pk11install" |
64 |
+ dbdir="/etc/pki/nssdb" |
65 |
+ ck_mod_name="CoolKey PKCS #11 Module" |
66 |
+ |
67 |
+ if ! [[ -x $dbdir ]]; then |
68 |
+ ewarn "No /etc/pki/nssdb found; check under \$HOME/.pki and" |
69 |
+ ewarn "follow the suggested commands using the correct path." |
70 |
+ fi |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ eautoreconf |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ append-flags -fno-strict-aliasing |
80 |
+ econf \ |
81 |
+ --enable-pk11install \ |
82 |
+ $(use_enable debug) |
83 |
+} |
84 |
+ |
85 |
+src_compile() { |
86 |
+ emake -j1 |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ emake DESTDIR="${D}" install -j1 |
91 |
+ einstalldocs |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ if [[ -x $dbdir ]]; then |
96 |
+ if ! $(modutil -rawlist -dbdir $dbdir | grep libcoolkeypk11); then |
97 |
+ elog "You still need to install libcoolkey in your PKCS11 library:" |
98 |
+ elog "$pk -p $dbdir 'name=$ck_mod_name library=libcoolkeypk11.so'" |
99 |
+ |
100 |
+ fi |
101 |
+ else |
102 |
+ elog "" |
103 |
+ elog "You still need to setup your PKCS11 library, or at least" |
104 |
+ elog "find where it is (perhaps \$HOME/.pki/nssdb). Once you" |
105 |
+ elog "find it, use 'modutil -rawlist -dbdir \$db' to look for" |
106 |
+ elog "libcoolkeypk11.so, and if not found, add it using:" |
107 |
+ elog "" |
108 |
+ elog "$pk -p \$db 'name=$ck_mod_name library=libcoolkeypk11.so'" |
109 |
+ elog "" |
110 |
+ elog "where \$db is the full path to your pki/nssdb directory." |
111 |
+ elog "" |
112 |
+ fi |
113 |
+} |
114 |
+ |
115 |
+pkg_postrm() { |
116 |
+ if [[ -x $dbdir ]]; then |
117 |
+ if $(modutil -rawlist -dbdir $dbdir | grep libcoolkeypk11); then |
118 |
+ elog "You should remove libcoolkey from your PKCS11 library." |
119 |
+ fi |
120 |
+ fi |
121 |
+} |