1 |
commit: b4e5401ead897c9f4de51e39a0f7c98f98e5ea31 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 01:02:47 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 01:02:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e5401e |
7 |
|
8 |
app-crypt/gnupg: drop versions |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-crypt/gnupg/Manifest | 10 -- |
13 |
.../gnupg-2.2.35-status-messages-garbled.patch | 45 ------ |
14 |
.../gnupg-2.3.6-status-messages-garbled.patch | 45 ------ |
15 |
app-crypt/gnupg/gnupg-2.2.35-r1.ebuild | 160 -------------------- |
16 |
app-crypt/gnupg/gnupg-2.2.35.ebuild | 159 -------------------- |
17 |
app-crypt/gnupg/gnupg-2.2.36.ebuild | 159 -------------------- |
18 |
app-crypt/gnupg/gnupg-2.2.37.ebuild | 159 -------------------- |
19 |
app-crypt/gnupg/gnupg-2.2.38.ebuild | 165 --------------------- |
20 |
app-crypt/gnupg/gnupg-2.3.6-r1.ebuild | 165 --------------------- |
21 |
app-crypt/gnupg/gnupg-2.3.6.ebuild | 164 -------------------- |
22 |
10 files changed, 1231 deletions(-) |
23 |
|
24 |
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest |
25 |
index 1ae533ed4a9a..fdb506e83ca5 100644 |
26 |
--- a/app-crypt/gnupg/Manifest |
27 |
+++ b/app-crypt/gnupg/Manifest |
28 |
@@ -1,14 +1,4 @@ |
29 |
-DIST gnupg-2.2.35.tar.bz2 7262687 BLAKE2B 18b5965151ded3b3f28d139824e14d7a6f1673c5192ec5f5a80366a6d5f2e04ed7fa035e2bff105e1752753584f992626ccc9ea8840c2bfa39ffe7ca39b81f7f SHA512 ad9f8d10890b7fafb15a7422e2cebaf0f85ce7cf5f880f4edd8d1dec46aa73c01f9096e601f6edd665f8684d1f5892634991a400e00b3185e6b201f549004d3e |
30 |
-DIST gnupg-2.2.35.tar.bz2.sig 119 BLAKE2B d95323703c12c9474b21fa91ddb70d4d4d464c794223e21f6ae5d4de955f07a5cabde50612e977168ea6071c4b12be3262cbafe9bcaa8e9a0b009318c0ff6718 SHA512 9043894730520e974e7bc17e0f95419c319fbcd514f102faf644e2f5580e238719cecb8b5e778ecf20f9212ee2554206eb0686e8b5fce7f8c556146657660fe2 |
31 |
-DIST gnupg-2.2.36.tar.bz2 7273805 BLAKE2B 82f26f48380632ddffedacb5e7cff653aec7bea2cf90d88184e0ddeb4053bd2b0ed1ee7addeceb684ffcbf07ccc2cba699172d78e5ab023af2e3d777fbb702b0 SHA512 2d14000a0e8b36688d5e89372a1ef5f8a526b2724715377323d1f9abd23122aa9d0ab2c0988063c397f969afefbf205aedb7205915fd751c539336e680d8462a |
32 |
-DIST gnupg-2.2.36.tar.bz2.sig 119 BLAKE2B ad6dc03c34f6c0d13080ef0bdea2db152c12ea4f129783ba1b0b7f237965b8eeec22b2e79fcf42657dafdd20cae558d781b07378bed78386979a0b4c4ef4a49b SHA512 4ad3f9041aa1fbffaab3cc4aa0df038a67dc8eb200492cdd96259dcf1e0005cb39d6e6245280f1a2a8d4db9f686381e2b0f5bb80c412edbdbcb3fc11dca044c5 |
33 |
-DIST gnupg-2.2.37.tar.bz2 7285172 BLAKE2B 40606f996aea3d26e28989466861bf486b8bf95e38d23377c0745b85f4817988f794fa07cbb1d5b8b7ae1da3c8bd5fcee5fabb1998b2fc1aa0b0e3ea4351575b SHA512 b56c47002948fd28fc9d5c23b46f5522e4210ed61c17f491c3b3fab5fab8893da33b1f8ff55a3bbef6367ff92b10c141c1f24d8350c37a0e756d2bdfbe86d7be |
34 |
-DIST gnupg-2.2.37.tar.bz2.sig 119 BLAKE2B b5166f574a35223eeadf056d6bc3e8bcbd02fad766713afba28e20d4d431fcf123b5566527274923fede092c1e48efefd32b825644583f016bf3db119af03209 SHA512 8a1c34a5cd6afa3a263669922bc43217274f796634dc14b54558e1361f5e38680c6897e402a5289ccbe08c91efa3647bccd741fa09f3259174b8dabf86ecbc6f |
35 |
-DIST gnupg-2.2.38.tar.bz2 7290509 BLAKE2B 249fd6502a1607d1881fd97e4a97a1a3557da26929b67424bafcf29b5ef1588c9295347c5be497a8485dd61755bfe40b4f0232e0f1f67d2517c69613c6080da1 SHA512 30483492e27c31db114c29e22eae1b9c54db9f02ade491f443a7748b42825fa3e52545286316b99217aed0b0af29f67ccecca2399c76554a086bcd49b35ad3e5 |
36 |
-DIST gnupg-2.2.38.tar.bz2.sig 119 BLAKE2B 9e7257a7326ccf107eff1f93b92f7e79ab31a2e58c12d4085a2106528c822df1737a127923c62a05fa199fa1d1e0ac900726808870d059871be6ab178849369e SHA512 e00ec552e1347ab26d37ad7830f599aa51e7620e9780250480192f83c67e319bf2d26f7198f49c553204ab96461c0a4aea1fa6ae57c83a91681f98c2596a9ab6 |
37 |
DIST gnupg-2.2.39.tar.bz2 7290098 BLAKE2B a9e31830f3ef9ec6d8d461a85fcbe4b91bcac9607d3b5f13f5edc0c54505afb6c6c119cd397023b1378d96c7d0f15c0d60da1d15721e9a18eb3ea8c7b69fba83 SHA512 73f881c12c82010aeaada500517ff39ab22b27ff21b1248bc2228b60a2d75385a44a53c5cfadb8f6b84ef22ad9db0105096b6620fb689560809b324019713940 |
38 |
DIST gnupg-2.2.39.tar.bz2.sig 119 BLAKE2B 584d7d36671670ac507948257e9c6be556ed2a2d3c0100bb2746edfe96df5ee1d4c6172fe0cae39d85fc290097bc5f6e1b351debc8ec2f5cc78047354fbed016 SHA512 6f7d7c2d1fae706b03c735cf453976c3aebef3f23659426f39a88c63d979f4d873ae09280d75dee9000805468d2a7f49d348609061939000f7cedf34ec5c6019 |
39 |
-DIST gnupg-2.3.6.tar.bz2 7604761 BLAKE2B 6cbc749156c50b6633c126cde621271c6c9682a04efea51fbc5a2e92ee56493e8348814391ee0c337adcb4de4dd23293b9592db78998626905038c859ac4af6e SHA512 4540e8d2be836b491918f4987ba301a73fcdc4539b1f9abf6112a74c2d39c0e5dc3f17511212bac1dd7fd0594feecd91f95ecf78d4b2c1e70e818342a1802b85 |
40 |
-DIST gnupg-2.3.6.tar.bz2.sig 119 BLAKE2B c7d4cdc81580b8b1e56c7bc83236d65c9d2c1bab2d210d14a0d3c58f635d656c9b449ef9596b9601027cb891bd437cc8f2a63eb3c17742c288531511984fba7f SHA512 85d155f9809c8d0f38723d8622c085e421531c016d19fcce2ae34dc9a4aeac0bc1895f7a094ee9cdf69a15b426fb0d72ee53319fe0a05665c92caa0e950c1797 |
41 |
DIST gnupg-2.3.7.tar.bz2 7599853 BLAKE2B 3e9e33c8357222f42cc0e2af538e9f1f1f0453f35d790aaadf47ce9df24229efa91457b6014b34f19084448a3a6603c82e7d07714b89a68c6a84a08af6fa0e02 SHA512 c7fe169050ef17051cdaac9ad476e7ea792483baad1208fc359d568fa9e138d920ecaa2cd9cae73b20f5472a7d8ca6540a62062ff7a06055cc656b0eb4b917b9 |
42 |
DIST gnupg-2.3.7.tar.bz2.sig 119 BLAKE2B c2652adf203bc828ed0aaf778542e990028156c16b435cd35aa6fe57ca0a5b798087c98e16589685c8ab9b8b92e16c3f7d4da56a4b1209b9adf2c24ea548ae6e SHA512 0257034b3e7ac390dadb151c656ff59822dacedaddca4ad6b5980b3e03a468ada47553e6a1fcff6a12c64ae2f9c15b245df855cd424b010041df8daaaab9a1b8 |
43 |
|
44 |
diff --git a/app-crypt/gnupg/files/gnupg-2.2.35-status-messages-garbled.patch b/app-crypt/gnupg/files/gnupg-2.2.35-status-messages-garbled.patch |
45 |
deleted file mode 100644 |
46 |
index 23dbf00b1831..000000000000 |
47 |
--- a/app-crypt/gnupg/files/gnupg-2.2.35-status-messages-garbled.patch |
48 |
+++ /dev/null |
49 |
@@ -1,45 +0,0 @@ |
50 |
-https://bugs.gentoo.org/855395 |
51 |
-https://marc.info/?l=oss-security&m=165657063921408&w=2 |
52 |
-https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commitdiff;h=7b1db7192e6e4d0cfc439b23b13831837c85bc21 |
53 |
- |
54 |
-From 7b1db7192e6e4d0cfc439b23b13831837c85bc21 Mon Sep 17 00:00:00 2001 |
55 |
-From: Werner Koch <wk@×××××.org> |
56 |
-Date: Tue, 14 Jun 2022 11:33:27 +0200 |
57 |
-Subject: [PATCH] g10: Fix garbled status messages in NOTATION_DATA |
58 |
- |
59 |
-* g10/cpr.c (write_status_text_and_buffer): Fix off-by-one |
60 |
--- |
61 |
- |
62 |
-Depending on the escaping and line wrapping the computed remaining |
63 |
-buffer length could be wrong. Fixed by always using a break to |
64 |
-terminate the escape detection loop. Might have happened for all |
65 |
-status lines which may wrap. |
66 |
- |
67 |
-GnuPG-bug-id: T6027 |
68 |
---- a/g10/cpr.c |
69 |
-+++ b/g10/cpr.c |
70 |
-@@ -328,20 +328,15 @@ write_status_text_and_buffer (int no, const char *string, |
71 |
- } |
72 |
- first = 0; |
73 |
- } |
74 |
-- for (esc=0, s=buffer, n=len; n && !esc; s++, n--) |
75 |
-+ for (esc=0, s=buffer, n=len; n; s++, n--) |
76 |
- { |
77 |
- if (*s == '%' || *(const byte*)s <= lower_limit |
78 |
- || *(const byte*)s == 127 ) |
79 |
- esc = 1; |
80 |
- if (wrap && ++count > wrap) |
81 |
-- { |
82 |
-- dowrap=1; |
83 |
-- break; |
84 |
-- } |
85 |
-- } |
86 |
-- if (esc) |
87 |
-- { |
88 |
-- s--; n++; |
89 |
-+ dowrap=1; |
90 |
-+ if (esc || dowrap) |
91 |
-+ break; |
92 |
- } |
93 |
- if (s != buffer) |
94 |
- es_fwrite (buffer, s-buffer, 1, statusfp); |
95 |
|
96 |
diff --git a/app-crypt/gnupg/files/gnupg-2.3.6-status-messages-garbled.patch b/app-crypt/gnupg/files/gnupg-2.3.6-status-messages-garbled.patch |
97 |
deleted file mode 100644 |
98 |
index 4bac4fea0f0e..000000000000 |
99 |
--- a/app-crypt/gnupg/files/gnupg-2.3.6-status-messages-garbled.patch |
100 |
+++ /dev/null |
101 |
@@ -1,45 +0,0 @@ |
102 |
-https://bugs.gentoo.org/855395 |
103 |
-https://marc.info/?l=oss-security&m=165657063921408&w=2 |
104 |
-https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commitdiff;h=34c649b3601383cd11dbc76221747ec16fd68e1b;hp=4dbef2addca8c76fb4953fd507bd800d2a19d3ec |
105 |
- |
106 |
-From 34c649b3601383cd11dbc76221747ec16fd68e1b Mon Sep 17 00:00:00 2001 |
107 |
-From: Werner Koch <wk@×××××.org> |
108 |
-Date: Tue, 14 Jun 2022 11:33:27 +0200 |
109 |
-Subject: [PATCH 1/1] g10: Fix garbled status messages in NOTATION_DATA |
110 |
- |
111 |
-* g10/cpr.c (write_status_text_and_buffer): Fix off-by-one |
112 |
--- |
113 |
- |
114 |
-Depending on the escaping and line wrapping the computed remaining |
115 |
-buffer length could be wrong. Fixed by always using a break to |
116 |
-terminate the escape detection loop. Might have happened for all |
117 |
-status lines which may wrap. |
118 |
- |
119 |
-GnuPG-bug-id: T6027 |
120 |
---- a/g10/cpr.c |
121 |
-+++ b/g10/cpr.c |
122 |
-@@ -372,20 +372,15 @@ write_status_text_and_buffer (int no, const char *string, |
123 |
- } |
124 |
- first = 0; |
125 |
- } |
126 |
-- for (esc=0, s=buffer, n=len; n && !esc; s++, n--) |
127 |
-+ for (esc=0, s=buffer, n=len; n; s++, n--) |
128 |
- { |
129 |
- if (*s == '%' || *(const byte*)s <= lower_limit |
130 |
- || *(const byte*)s == 127 ) |
131 |
- esc = 1; |
132 |
- if (wrap && ++count > wrap) |
133 |
-- { |
134 |
-- dowrap=1; |
135 |
-- break; |
136 |
-- } |
137 |
-- } |
138 |
-- if (esc) |
139 |
-- { |
140 |
-- s--; n++; |
141 |
-+ dowrap=1; |
142 |
-+ if (esc || dowrap) |
143 |
-+ break; |
144 |
- } |
145 |
- if (s != buffer) |
146 |
- es_fwrite (buffer, s-buffer, 1, statusfp); |
147 |
|
148 |
diff --git a/app-crypt/gnupg/gnupg-2.2.35-r1.ebuild b/app-crypt/gnupg/gnupg-2.2.35-r1.ebuild |
149 |
deleted file mode 100644 |
150 |
index cc1044746b9d..000000000000 |
151 |
--- a/app-crypt/gnupg/gnupg-2.2.35-r1.ebuild |
152 |
+++ /dev/null |
153 |
@@ -1,160 +0,0 @@ |
154 |
-# Copyright 1999-2022 Gentoo Authors |
155 |
-# Distributed under the terms of the GNU General Public License v2 |
156 |
- |
157 |
-EAPI=7 |
158 |
- |
159 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
160 |
-inherit flag-o-matic systemd toolchain-funcs verify-sig |
161 |
- |
162 |
-MY_P="${P/_/-}" |
163 |
- |
164 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
165 |
-HOMEPAGE="https://gnupg.org/" |
166 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
167 |
-SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" |
168 |
-S="${WORKDIR}/${MY_P}" |
169 |
- |
170 |
-LICENSE="GPL-3+" |
171 |
-SLOT="0" |
172 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
173 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server" |
174 |
-RESTRICT="!test? ( test )" |
175 |
- |
176 |
-# Existence of executables is checked during configuration. |
177 |
-# Note: On each bump, update dep bounds on each version from configure.ac! |
178 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
179 |
- >=dev-libs/libgcrypt-1.8.0:= |
180 |
- >=dev-libs/libgpg-error-1.29 |
181 |
- >=dev-libs/libksba-1.3.5 |
182 |
- >=dev-libs/npth-1.2 |
183 |
- >=net-misc/curl-7.10 |
184 |
- sys-libs/zlib |
185 |
- bzip2? ( app-arch/bzip2 ) |
186 |
- ldap? ( net-nds/openldap:= ) |
187 |
- readline? ( sys-libs/readline:0= ) |
188 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
189 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
190 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
191 |
- |
192 |
-RDEPEND="${DEPEND} |
193 |
- app-crypt/pinentry |
194 |
- nls? ( virtual/libintl ) |
195 |
- selinux? ( sec-policy/selinux-gpg ) |
196 |
- wks-server? ( virtual/mta )" |
197 |
- |
198 |
-BDEPEND="virtual/pkgconfig |
199 |
- doc? ( sys-apps/texinfo ) |
200 |
- nls? ( sys-devel/gettext ) |
201 |
- verify-sig? ( sec-keys/openpgp-keys-gnupg )" |
202 |
- |
203 |
-DOCS=( |
204 |
- ChangeLog NEWS README THANKS TODO VERSION |
205 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
206 |
-) |
207 |
- |
208 |
-PATCHES=( |
209 |
- "${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch |
210 |
- "${FILESDIR}"/${P}-status-messages-garbled.patch |
211 |
-) |
212 |
- |
213 |
-src_prepare() { |
214 |
- default |
215 |
- |
216 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
217 |
- # idea borrowed from libdbus, see |
218 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
219 |
- # |
220 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
221 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
222 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
223 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
224 |
-} |
225 |
- |
226 |
-src_configure() { |
227 |
- local myconf=( |
228 |
- $(use_enable bzip2) |
229 |
- $(use_enable nls) |
230 |
- $(use_enable smartcard scdaemon) |
231 |
- $(use_enable ssl gnutls) |
232 |
- $(use_enable test all-tests) |
233 |
- $(use_enable test tests) |
234 |
- $(use_enable tofu) |
235 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
236 |
- $(use_enable wks-server wks-tools) |
237 |
- $(use_with ldap) |
238 |
- $(use_with readline) |
239 |
- --with-mailprog=/usr/libexec/sendmail |
240 |
- --disable-ntbtls |
241 |
- --enable-gpg |
242 |
- --enable-gpgsm |
243 |
- --enable-large-secmem |
244 |
- |
245 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
246 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
247 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
248 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
249 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
250 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
251 |
- |
252 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
253 |
- ) |
254 |
- |
255 |
- if use prefix && use usb; then |
256 |
- # bug #649598 |
257 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
258 |
- fi |
259 |
- |
260 |
- # bug #663142 |
261 |
- if use user-socket; then |
262 |
- myconf+=( --enable-run-gnupg-user-socket ) |
263 |
- fi |
264 |
- |
265 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
266 |
- tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h |
267 |
- |
268 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
269 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
270 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
271 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
272 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
273 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
274 |
- # the build where the install guide previously make the user chose the |
275 |
- # logger & mta early in the install. |
276 |
- |
277 |
- econf "${myconf[@]}" |
278 |
-} |
279 |
- |
280 |
-src_compile() { |
281 |
- default |
282 |
- |
283 |
- use doc && emake -C doc html |
284 |
-} |
285 |
- |
286 |
-src_test() { |
287 |
- # bug #638574 |
288 |
- use tofu && export TESTFLAGS=--parallel |
289 |
- |
290 |
- default |
291 |
-} |
292 |
- |
293 |
-src_install() { |
294 |
- default |
295 |
- |
296 |
- use tools && |
297 |
- dobin \ |
298 |
- tools/{convert-from-106,gpg-check-pattern} \ |
299 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
300 |
- tools/make-dns-cert |
301 |
- |
302 |
- dosym gpg /usr/bin/gpg2 |
303 |
- dosym gpgv /usr/bin/gpgv2 |
304 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
305 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
306 |
- |
307 |
- dodir /etc/env.d |
308 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
309 |
- |
310 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
311 |
- |
312 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
313 |
-} |
314 |
|
315 |
diff --git a/app-crypt/gnupg/gnupg-2.2.35.ebuild b/app-crypt/gnupg/gnupg-2.2.35.ebuild |
316 |
deleted file mode 100644 |
317 |
index f27f0d8dab72..000000000000 |
318 |
--- a/app-crypt/gnupg/gnupg-2.2.35.ebuild |
319 |
+++ /dev/null |
320 |
@@ -1,159 +0,0 @@ |
321 |
-# Copyright 1999-2022 Gentoo Authors |
322 |
-# Distributed under the terms of the GNU General Public License v2 |
323 |
- |
324 |
-EAPI=7 |
325 |
- |
326 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
327 |
-inherit flag-o-matic systemd toolchain-funcs verify-sig |
328 |
- |
329 |
-MY_P="${P/_/-}" |
330 |
- |
331 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
332 |
-HOMEPAGE="https://gnupg.org/" |
333 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
334 |
-SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" |
335 |
-S="${WORKDIR}/${MY_P}" |
336 |
- |
337 |
-LICENSE="GPL-3+" |
338 |
-SLOT="0" |
339 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
340 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server" |
341 |
-RESTRICT="!test? ( test )" |
342 |
- |
343 |
-# Existence of executables is checked during configuration. |
344 |
-# Note: On each bump, update dep bounds on each version from configure.ac! |
345 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
346 |
- >=dev-libs/libgcrypt-1.8.0:= |
347 |
- >=dev-libs/libgpg-error-1.29 |
348 |
- >=dev-libs/libksba-1.3.5 |
349 |
- >=dev-libs/npth-1.2 |
350 |
- >=net-misc/curl-7.10 |
351 |
- sys-libs/zlib |
352 |
- bzip2? ( app-arch/bzip2 ) |
353 |
- ldap? ( net-nds/openldap:= ) |
354 |
- readline? ( sys-libs/readline:0= ) |
355 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
356 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
357 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
358 |
- |
359 |
-RDEPEND="${DEPEND} |
360 |
- app-crypt/pinentry |
361 |
- nls? ( virtual/libintl ) |
362 |
- selinux? ( sec-policy/selinux-gpg ) |
363 |
- wks-server? ( virtual/mta )" |
364 |
- |
365 |
-BDEPEND="virtual/pkgconfig |
366 |
- doc? ( sys-apps/texinfo ) |
367 |
- nls? ( sys-devel/gettext ) |
368 |
- verify-sig? ( sec-keys/openpgp-keys-gnupg )" |
369 |
- |
370 |
-DOCS=( |
371 |
- ChangeLog NEWS README THANKS TODO VERSION |
372 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
373 |
-) |
374 |
- |
375 |
-PATCHES=( |
376 |
- "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
377 |
-) |
378 |
- |
379 |
-src_prepare() { |
380 |
- default |
381 |
- |
382 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
383 |
- # idea borrowed from libdbus, see |
384 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
385 |
- # |
386 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
387 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
388 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
389 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
390 |
-} |
391 |
- |
392 |
-src_configure() { |
393 |
- local myconf=( |
394 |
- $(use_enable bzip2) |
395 |
- $(use_enable nls) |
396 |
- $(use_enable smartcard scdaemon) |
397 |
- $(use_enable ssl gnutls) |
398 |
- $(use_enable test all-tests) |
399 |
- $(use_enable test tests) |
400 |
- $(use_enable tofu) |
401 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
402 |
- $(use_enable wks-server wks-tools) |
403 |
- $(use_with ldap) |
404 |
- $(use_with readline) |
405 |
- --with-mailprog=/usr/libexec/sendmail |
406 |
- --disable-ntbtls |
407 |
- --enable-gpg |
408 |
- --enable-gpgsm |
409 |
- --enable-large-secmem |
410 |
- |
411 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
412 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
413 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
414 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
415 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
416 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
417 |
- |
418 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
419 |
- ) |
420 |
- |
421 |
- if use prefix && use usb; then |
422 |
- # bug #649598 |
423 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
424 |
- fi |
425 |
- |
426 |
- # bug #663142 |
427 |
- if use user-socket; then |
428 |
- myconf+=( --enable-run-gnupg-user-socket ) |
429 |
- fi |
430 |
- |
431 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
432 |
- tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h |
433 |
- |
434 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
435 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
436 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
437 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
438 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
439 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
440 |
- # the build where the install guide previously make the user chose the |
441 |
- # logger & mta early in the install. |
442 |
- |
443 |
- econf "${myconf[@]}" |
444 |
-} |
445 |
- |
446 |
-src_compile() { |
447 |
- default |
448 |
- |
449 |
- use doc && emake -C doc html |
450 |
-} |
451 |
- |
452 |
-src_test() { |
453 |
- # bug #638574 |
454 |
- use tofu && export TESTFLAGS=--parallel |
455 |
- |
456 |
- default |
457 |
-} |
458 |
- |
459 |
-src_install() { |
460 |
- default |
461 |
- |
462 |
- use tools && |
463 |
- dobin \ |
464 |
- tools/{convert-from-106,gpg-check-pattern} \ |
465 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
466 |
- tools/make-dns-cert |
467 |
- |
468 |
- dosym gpg /usr/bin/gpg2 |
469 |
- dosym gpgv /usr/bin/gpgv2 |
470 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
471 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
472 |
- |
473 |
- dodir /etc/env.d |
474 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
475 |
- |
476 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
477 |
- |
478 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
479 |
-} |
480 |
|
481 |
diff --git a/app-crypt/gnupg/gnupg-2.2.36.ebuild b/app-crypt/gnupg/gnupg-2.2.36.ebuild |
482 |
deleted file mode 100644 |
483 |
index 6500ebd0e1fb..000000000000 |
484 |
--- a/app-crypt/gnupg/gnupg-2.2.36.ebuild |
485 |
+++ /dev/null |
486 |
@@ -1,159 +0,0 @@ |
487 |
-# Copyright 1999-2022 Gentoo Authors |
488 |
-# Distributed under the terms of the GNU General Public License v2 |
489 |
- |
490 |
-EAPI=8 |
491 |
- |
492 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
493 |
-inherit flag-o-matic systemd toolchain-funcs verify-sig |
494 |
- |
495 |
-MY_P="${P/_/-}" |
496 |
- |
497 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
498 |
-HOMEPAGE="https://gnupg.org/" |
499 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
500 |
-SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" |
501 |
-S="${WORKDIR}/${MY_P}" |
502 |
- |
503 |
-LICENSE="GPL-3+" |
504 |
-SLOT="0" |
505 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
506 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server" |
507 |
-RESTRICT="!test? ( test )" |
508 |
- |
509 |
-# Existence of executables is checked during configuration. |
510 |
-# Note: On each bump, update dep bounds on each version from configure.ac! |
511 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
512 |
- >=dev-libs/libgcrypt-1.8.0:= |
513 |
- >=dev-libs/libgpg-error-1.29 |
514 |
- >=dev-libs/libksba-1.3.5 |
515 |
- >=dev-libs/npth-1.2 |
516 |
- >=net-misc/curl-7.10 |
517 |
- sys-libs/zlib |
518 |
- bzip2? ( app-arch/bzip2 ) |
519 |
- ldap? ( net-nds/openldap:= ) |
520 |
- readline? ( sys-libs/readline:0= ) |
521 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
522 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
523 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
524 |
- |
525 |
-RDEPEND="${DEPEND} |
526 |
- app-crypt/pinentry |
527 |
- nls? ( virtual/libintl ) |
528 |
- selinux? ( sec-policy/selinux-gpg ) |
529 |
- wks-server? ( virtual/mta )" |
530 |
- |
531 |
-BDEPEND="virtual/pkgconfig |
532 |
- doc? ( sys-apps/texinfo ) |
533 |
- nls? ( sys-devel/gettext ) |
534 |
- verify-sig? ( sec-keys/openpgp-keys-gnupg )" |
535 |
- |
536 |
-DOCS=( |
537 |
- ChangeLog NEWS README THANKS TODO VERSION |
538 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
539 |
-) |
540 |
- |
541 |
-PATCHES=( |
542 |
- "${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch |
543 |
-) |
544 |
- |
545 |
-src_prepare() { |
546 |
- default |
547 |
- |
548 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
549 |
- # idea borrowed from libdbus, see |
550 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
551 |
- # |
552 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
553 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
554 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
555 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
556 |
-} |
557 |
- |
558 |
-src_configure() { |
559 |
- local myconf=( |
560 |
- $(use_enable bzip2) |
561 |
- $(use_enable nls) |
562 |
- $(use_enable smartcard scdaemon) |
563 |
- $(use_enable ssl gnutls) |
564 |
- $(use_enable test all-tests) |
565 |
- $(use_enable test tests) |
566 |
- $(use_enable tofu) |
567 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
568 |
- $(use_enable wks-server wks-tools) |
569 |
- $(use_with ldap) |
570 |
- $(use_with readline) |
571 |
- --with-mailprog=/usr/libexec/sendmail |
572 |
- --disable-ntbtls |
573 |
- --enable-gpg |
574 |
- --enable-gpgsm |
575 |
- --enable-large-secmem |
576 |
- |
577 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
578 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
579 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
580 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
581 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
582 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
583 |
- |
584 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
585 |
- ) |
586 |
- |
587 |
- if use prefix && use usb; then |
588 |
- # bug #649598 |
589 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
590 |
- fi |
591 |
- |
592 |
- # bug #663142 |
593 |
- if use user-socket; then |
594 |
- myconf+=( --enable-run-gnupg-user-socket ) |
595 |
- fi |
596 |
- |
597 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
598 |
- tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h |
599 |
- |
600 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
601 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
602 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
603 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
604 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
605 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
606 |
- # the build where the install guide previously make the user chose the |
607 |
- # logger & mta early in the install. |
608 |
- |
609 |
- econf "${myconf[@]}" |
610 |
-} |
611 |
- |
612 |
-src_compile() { |
613 |
- default |
614 |
- |
615 |
- use doc && emake -C doc html |
616 |
-} |
617 |
- |
618 |
-src_test() { |
619 |
- # bug #638574 |
620 |
- use tofu && export TESTFLAGS=--parallel |
621 |
- |
622 |
- default |
623 |
-} |
624 |
- |
625 |
-src_install() { |
626 |
- default |
627 |
- |
628 |
- use tools && |
629 |
- dobin \ |
630 |
- tools/{convert-from-106,gpg-check-pattern} \ |
631 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
632 |
- tools/make-dns-cert |
633 |
- |
634 |
- dosym gpg /usr/bin/gpg2 |
635 |
- dosym gpgv /usr/bin/gpgv2 |
636 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
637 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
638 |
- |
639 |
- dodir /etc/env.d |
640 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
641 |
- |
642 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
643 |
- |
644 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
645 |
-} |
646 |
|
647 |
diff --git a/app-crypt/gnupg/gnupg-2.2.37.ebuild b/app-crypt/gnupg/gnupg-2.2.37.ebuild |
648 |
deleted file mode 100644 |
649 |
index 6500ebd0e1fb..000000000000 |
650 |
--- a/app-crypt/gnupg/gnupg-2.2.37.ebuild |
651 |
+++ /dev/null |
652 |
@@ -1,159 +0,0 @@ |
653 |
-# Copyright 1999-2022 Gentoo Authors |
654 |
-# Distributed under the terms of the GNU General Public License v2 |
655 |
- |
656 |
-EAPI=8 |
657 |
- |
658 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
659 |
-inherit flag-o-matic systemd toolchain-funcs verify-sig |
660 |
- |
661 |
-MY_P="${P/_/-}" |
662 |
- |
663 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
664 |
-HOMEPAGE="https://gnupg.org/" |
665 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
666 |
-SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" |
667 |
-S="${WORKDIR}/${MY_P}" |
668 |
- |
669 |
-LICENSE="GPL-3+" |
670 |
-SLOT="0" |
671 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
672 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server" |
673 |
-RESTRICT="!test? ( test )" |
674 |
- |
675 |
-# Existence of executables is checked during configuration. |
676 |
-# Note: On each bump, update dep bounds on each version from configure.ac! |
677 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
678 |
- >=dev-libs/libgcrypt-1.8.0:= |
679 |
- >=dev-libs/libgpg-error-1.29 |
680 |
- >=dev-libs/libksba-1.3.5 |
681 |
- >=dev-libs/npth-1.2 |
682 |
- >=net-misc/curl-7.10 |
683 |
- sys-libs/zlib |
684 |
- bzip2? ( app-arch/bzip2 ) |
685 |
- ldap? ( net-nds/openldap:= ) |
686 |
- readline? ( sys-libs/readline:0= ) |
687 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
688 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
689 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
690 |
- |
691 |
-RDEPEND="${DEPEND} |
692 |
- app-crypt/pinentry |
693 |
- nls? ( virtual/libintl ) |
694 |
- selinux? ( sec-policy/selinux-gpg ) |
695 |
- wks-server? ( virtual/mta )" |
696 |
- |
697 |
-BDEPEND="virtual/pkgconfig |
698 |
- doc? ( sys-apps/texinfo ) |
699 |
- nls? ( sys-devel/gettext ) |
700 |
- verify-sig? ( sec-keys/openpgp-keys-gnupg )" |
701 |
- |
702 |
-DOCS=( |
703 |
- ChangeLog NEWS README THANKS TODO VERSION |
704 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
705 |
-) |
706 |
- |
707 |
-PATCHES=( |
708 |
- "${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch |
709 |
-) |
710 |
- |
711 |
-src_prepare() { |
712 |
- default |
713 |
- |
714 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
715 |
- # idea borrowed from libdbus, see |
716 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
717 |
- # |
718 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
719 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
720 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
721 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
722 |
-} |
723 |
- |
724 |
-src_configure() { |
725 |
- local myconf=( |
726 |
- $(use_enable bzip2) |
727 |
- $(use_enable nls) |
728 |
- $(use_enable smartcard scdaemon) |
729 |
- $(use_enable ssl gnutls) |
730 |
- $(use_enable test all-tests) |
731 |
- $(use_enable test tests) |
732 |
- $(use_enable tofu) |
733 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
734 |
- $(use_enable wks-server wks-tools) |
735 |
- $(use_with ldap) |
736 |
- $(use_with readline) |
737 |
- --with-mailprog=/usr/libexec/sendmail |
738 |
- --disable-ntbtls |
739 |
- --enable-gpg |
740 |
- --enable-gpgsm |
741 |
- --enable-large-secmem |
742 |
- |
743 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
744 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
745 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
746 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
747 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
748 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
749 |
- |
750 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
751 |
- ) |
752 |
- |
753 |
- if use prefix && use usb; then |
754 |
- # bug #649598 |
755 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
756 |
- fi |
757 |
- |
758 |
- # bug #663142 |
759 |
- if use user-socket; then |
760 |
- myconf+=( --enable-run-gnupg-user-socket ) |
761 |
- fi |
762 |
- |
763 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
764 |
- tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h |
765 |
- |
766 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
767 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
768 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
769 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
770 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
771 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
772 |
- # the build where the install guide previously make the user chose the |
773 |
- # logger & mta early in the install. |
774 |
- |
775 |
- econf "${myconf[@]}" |
776 |
-} |
777 |
- |
778 |
-src_compile() { |
779 |
- default |
780 |
- |
781 |
- use doc && emake -C doc html |
782 |
-} |
783 |
- |
784 |
-src_test() { |
785 |
- # bug #638574 |
786 |
- use tofu && export TESTFLAGS=--parallel |
787 |
- |
788 |
- default |
789 |
-} |
790 |
- |
791 |
-src_install() { |
792 |
- default |
793 |
- |
794 |
- use tools && |
795 |
- dobin \ |
796 |
- tools/{convert-from-106,gpg-check-pattern} \ |
797 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
798 |
- tools/make-dns-cert |
799 |
- |
800 |
- dosym gpg /usr/bin/gpg2 |
801 |
- dosym gpgv /usr/bin/gpgv2 |
802 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
803 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
804 |
- |
805 |
- dodir /etc/env.d |
806 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
807 |
- |
808 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
809 |
- |
810 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
811 |
-} |
812 |
|
813 |
diff --git a/app-crypt/gnupg/gnupg-2.2.38.ebuild b/app-crypt/gnupg/gnupg-2.2.38.ebuild |
814 |
deleted file mode 100644 |
815 |
index 29c399bdc9e6..000000000000 |
816 |
--- a/app-crypt/gnupg/gnupg-2.2.38.ebuild |
817 |
+++ /dev/null |
818 |
@@ -1,165 +0,0 @@ |
819 |
-# Copyright 1999-2022 Gentoo Authors |
820 |
-# Distributed under the terms of the GNU General Public License v2 |
821 |
- |
822 |
-EAPI=8 |
823 |
- |
824 |
-# Maintainers should: |
825 |
-# 1. Join the "Gentoo" project at https://dev.gnupg.org/project/view/27/ |
826 |
-# 2. Subscribe to release tasks like https://dev.gnupg.org/T6159 |
827 |
-# (find the one for the current release then subscribe to it + |
828 |
-# any subsequent ones linked within so you're covered for a while.) |
829 |
- |
830 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
831 |
-inherit flag-o-matic systemd toolchain-funcs verify-sig |
832 |
- |
833 |
-MY_P="${P/_/-}" |
834 |
- |
835 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
836 |
-HOMEPAGE="https://gnupg.org/" |
837 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
838 |
-SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" |
839 |
-S="${WORKDIR}/${MY_P}" |
840 |
- |
841 |
-LICENSE="GPL-3+" |
842 |
-SLOT="0" |
843 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
844 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server" |
845 |
-RESTRICT="!test? ( test )" |
846 |
- |
847 |
-# Existence of executables is checked during configuration. |
848 |
-# Note: On each bump, update dep bounds on each version from configure.ac! |
849 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
850 |
- >=dev-libs/libgcrypt-1.8.0:= |
851 |
- >=dev-libs/libgpg-error-1.29 |
852 |
- >=dev-libs/libksba-1.3.5 |
853 |
- >=dev-libs/npth-1.2 |
854 |
- >=net-misc/curl-7.10 |
855 |
- sys-libs/zlib |
856 |
- bzip2? ( app-arch/bzip2 ) |
857 |
- ldap? ( net-nds/openldap:= ) |
858 |
- readline? ( sys-libs/readline:0= ) |
859 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
860 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
861 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
862 |
- |
863 |
-RDEPEND="${DEPEND} |
864 |
- app-crypt/pinentry |
865 |
- nls? ( virtual/libintl ) |
866 |
- selinux? ( sec-policy/selinux-gpg ) |
867 |
- wks-server? ( virtual/mta )" |
868 |
- |
869 |
-BDEPEND="virtual/pkgconfig |
870 |
- doc? ( sys-apps/texinfo ) |
871 |
- nls? ( sys-devel/gettext ) |
872 |
- verify-sig? ( sec-keys/openpgp-keys-gnupg )" |
873 |
- |
874 |
-DOCS=( |
875 |
- ChangeLog NEWS README THANKS TODO VERSION |
876 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
877 |
-) |
878 |
- |
879 |
-PATCHES=( |
880 |
- "${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch |
881 |
-) |
882 |
- |
883 |
-src_prepare() { |
884 |
- default |
885 |
- |
886 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
887 |
- # idea borrowed from libdbus, see |
888 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
889 |
- # |
890 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
891 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
892 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
893 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
894 |
-} |
895 |
- |
896 |
-src_configure() { |
897 |
- local myconf=( |
898 |
- $(use_enable bzip2) |
899 |
- $(use_enable nls) |
900 |
- $(use_enable smartcard scdaemon) |
901 |
- $(use_enable ssl gnutls) |
902 |
- $(use_enable test all-tests) |
903 |
- $(use_enable test tests) |
904 |
- $(use_enable tofu) |
905 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
906 |
- $(use_enable wks-server wks-tools) |
907 |
- $(use_with ldap) |
908 |
- $(use_with readline) |
909 |
- --with-mailprog=/usr/libexec/sendmail |
910 |
- --disable-ntbtls |
911 |
- --enable-gpg |
912 |
- --enable-gpgsm |
913 |
- --enable-large-secmem |
914 |
- |
915 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
916 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
917 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
918 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
919 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
920 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
921 |
- |
922 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
923 |
- ) |
924 |
- |
925 |
- if use prefix && use usb; then |
926 |
- # bug #649598 |
927 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
928 |
- fi |
929 |
- |
930 |
- # bug #663142 |
931 |
- if use user-socket; then |
932 |
- myconf+=( --enable-run-gnupg-user-socket ) |
933 |
- fi |
934 |
- |
935 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
936 |
- tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h |
937 |
- |
938 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
939 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
940 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
941 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
942 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
943 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
944 |
- # the build where the install guide previously make the user chose the |
945 |
- # logger & mta early in the install. |
946 |
- |
947 |
- econf "${myconf[@]}" |
948 |
-} |
949 |
- |
950 |
-src_compile() { |
951 |
- default |
952 |
- |
953 |
- use doc && emake -C doc html |
954 |
-} |
955 |
- |
956 |
-src_test() { |
957 |
- # bug #638574 |
958 |
- use tofu && export TESTFLAGS=--parallel |
959 |
- |
960 |
- default |
961 |
-} |
962 |
- |
963 |
-src_install() { |
964 |
- default |
965 |
- |
966 |
- use tools && |
967 |
- dobin \ |
968 |
- tools/{convert-from-106,gpg-check-pattern} \ |
969 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
970 |
- tools/make-dns-cert |
971 |
- |
972 |
- dosym gpg /usr/bin/gpg2 |
973 |
- dosym gpgv /usr/bin/gpgv2 |
974 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
975 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
976 |
- |
977 |
- dodir /etc/env.d |
978 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
979 |
- |
980 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
981 |
- |
982 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
983 |
-} |
984 |
|
985 |
diff --git a/app-crypt/gnupg/gnupg-2.3.6-r1.ebuild b/app-crypt/gnupg/gnupg-2.3.6-r1.ebuild |
986 |
deleted file mode 100644 |
987 |
index c3371534dadc..000000000000 |
988 |
--- a/app-crypt/gnupg/gnupg-2.3.6-r1.ebuild |
989 |
+++ /dev/null |
990 |
@@ -1,165 +0,0 @@ |
991 |
-# Copyright 1999-2022 Gentoo Authors |
992 |
-# Distributed under the terms of the GNU General Public License v2 |
993 |
- |
994 |
-EAPI=7 |
995 |
- |
996 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
997 |
-inherit flag-o-matic systemd toolchain-funcs verify-sig |
998 |
- |
999 |
-MY_P="${P/_/-}" |
1000 |
- |
1001 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
1002 |
-HOMEPAGE="https://gnupg.org/" |
1003 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
1004 |
-SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" |
1005 |
-S="${WORKDIR}/${MY_P}" |
1006 |
- |
1007 |
-LICENSE="GPL-3+" |
1008 |
-SLOT="0" |
1009 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1010 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test +tofu tpm tools usb user-socket wks-server" |
1011 |
-RESTRICT="!test? ( test )" |
1012 |
-REQUIRED_USE="test? ( tofu )" |
1013 |
- |
1014 |
-# Existence of executables is checked during configuration. |
1015 |
-# Note: On each bump, update dep bounds on each version from configure.ac! |
1016 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
1017 |
- >=dev-libs/libgcrypt-1.9.1:= |
1018 |
- >=dev-libs/libgpg-error-1.41 |
1019 |
- >=dev-libs/libksba-1.3.4 |
1020 |
- >=dev-libs/npth-1.2 |
1021 |
- >=net-misc/curl-7.10 |
1022 |
- sys-libs/zlib |
1023 |
- bzip2? ( app-arch/bzip2 ) |
1024 |
- ldap? ( net-nds/openldap:= ) |
1025 |
- readline? ( sys-libs/readline:0= ) |
1026 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
1027 |
- tofu? ( >=dev-db/sqlite-3.27 ) |
1028 |
- tpm? ( >=app-crypt/tpm2-tss-2.4.0:= ) |
1029 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
1030 |
-" |
1031 |
- |
1032 |
-RDEPEND="${DEPEND} |
1033 |
- app-crypt/pinentry |
1034 |
- nls? ( virtual/libintl ) |
1035 |
- selinux? ( sec-policy/selinux-gpg ) |
1036 |
- wks-server? ( virtual/mta )" |
1037 |
- |
1038 |
-BDEPEND="virtual/pkgconfig |
1039 |
- doc? ( sys-apps/texinfo ) |
1040 |
- nls? ( sys-devel/gettext ) |
1041 |
- verify-sig? ( sec-keys/openpgp-keys-gnupg )" |
1042 |
- |
1043 |
-DOCS=( |
1044 |
- ChangeLog NEWS README THANKS TODO VERSION |
1045 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
1046 |
-) |
1047 |
- |
1048 |
-PATCHES=( |
1049 |
- "${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch |
1050 |
- "${FILESDIR}"/${P}-status-messages-garbled.patch |
1051 |
-) |
1052 |
- |
1053 |
-src_prepare() { |
1054 |
- default |
1055 |
- |
1056 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
1057 |
- # idea borrowed from libdbus, see |
1058 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
1059 |
- # |
1060 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
1061 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
1062 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
1063 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
1064 |
-} |
1065 |
- |
1066 |
-src_configure() { |
1067 |
- local myconf=( |
1068 |
- $(use_enable bzip2) |
1069 |
- $(use_enable nls) |
1070 |
- $(use_enable smartcard scdaemon) |
1071 |
- $(use_enable ssl gnutls) |
1072 |
- $(use_enable test all-tests) |
1073 |
- $(use_enable test tests) |
1074 |
- $(use_enable tofu) |
1075 |
- $(use_enable tofu keyboxd) |
1076 |
- $(use_enable tofu sqlite) |
1077 |
- $(usex tpm '--with-tss=intel' '--disable-tpm2d') |
1078 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
1079 |
- $(use_enable wks-server wks-tools) |
1080 |
- $(use_with ldap) |
1081 |
- $(use_with readline) |
1082 |
- --with-mailprog=/usr/libexec/sendmail |
1083 |
- --disable-ntbtls |
1084 |
- --enable-gpgsm |
1085 |
- --enable-large-secmem |
1086 |
- |
1087 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
1088 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
1089 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
1090 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
1091 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
1092 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
1093 |
- |
1094 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
1095 |
- ) |
1096 |
- |
1097 |
- if use prefix && use usb; then |
1098 |
- # bug #649598 |
1099 |
- append-cppflags -I"${ESYSROOT}/usr/include/libusb-1.0" |
1100 |
- fi |
1101 |
- |
1102 |
- # bug #663142 |
1103 |
- if use user-socket; then |
1104 |
- myconf+=( --enable-run-gnupg-user-socket ) |
1105 |
- fi |
1106 |
- |
1107 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
1108 |
- tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h |
1109 |
- |
1110 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
1111 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
1112 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
1113 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
1114 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
1115 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
1116 |
- # the build where the install guide previously make the user chose the |
1117 |
- # logger & mta early in the install. |
1118 |
- |
1119 |
- econf "${myconf[@]}" |
1120 |
-} |
1121 |
- |
1122 |
-src_compile() { |
1123 |
- default |
1124 |
- |
1125 |
- use doc && emake -C doc html |
1126 |
-} |
1127 |
- |
1128 |
-src_test() { |
1129 |
- # bug #638574 |
1130 |
- use tofu && export TESTFLAGS=--parallel |
1131 |
- |
1132 |
- default |
1133 |
-} |
1134 |
- |
1135 |
-src_install() { |
1136 |
- default |
1137 |
- |
1138 |
- use tools && |
1139 |
- dobin \ |
1140 |
- tools/{convert-from-106,gpg-check-pattern} \ |
1141 |
- tools/{gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
1142 |
- tools/make-dns-cert |
1143 |
- |
1144 |
- dosym gpg /usr/bin/gpg2 |
1145 |
- dosym gpgv /usr/bin/gpgv2 |
1146 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
1147 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
1148 |
- |
1149 |
- dodir /etc/env.d |
1150 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
1151 |
- |
1152 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
1153 |
- |
1154 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
1155 |
-} |
1156 |
|
1157 |
diff --git a/app-crypt/gnupg/gnupg-2.3.6.ebuild b/app-crypt/gnupg/gnupg-2.3.6.ebuild |
1158 |
deleted file mode 100644 |
1159 |
index 9311b4498b77..000000000000 |
1160 |
--- a/app-crypt/gnupg/gnupg-2.3.6.ebuild |
1161 |
+++ /dev/null |
1162 |
@@ -1,164 +0,0 @@ |
1163 |
-# Copyright 1999-2022 Gentoo Authors |
1164 |
-# Distributed under the terms of the GNU General Public License v2 |
1165 |
- |
1166 |
-EAPI=7 |
1167 |
- |
1168 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc |
1169 |
-inherit flag-o-matic systemd toolchain-funcs verify-sig |
1170 |
- |
1171 |
-MY_P="${P/_/-}" |
1172 |
- |
1173 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
1174 |
-HOMEPAGE="https://gnupg.org/" |
1175 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
1176 |
-SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" |
1177 |
-S="${WORKDIR}/${MY_P}" |
1178 |
- |
1179 |
-LICENSE="GPL-3+" |
1180 |
-SLOT="0" |
1181 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1182 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test +tofu tpm tools usb user-socket wks-server" |
1183 |
-RESTRICT="!test? ( test )" |
1184 |
-REQUIRED_USE="test? ( tofu )" |
1185 |
- |
1186 |
-# Existence of executables is checked during configuration. |
1187 |
-# Note: On each bump, update dep bounds on each version from configure.ac! |
1188 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
1189 |
- >=dev-libs/libgcrypt-1.9.1:= |
1190 |
- >=dev-libs/libgpg-error-1.41 |
1191 |
- >=dev-libs/libksba-1.3.4 |
1192 |
- >=dev-libs/npth-1.2 |
1193 |
- >=net-misc/curl-7.10 |
1194 |
- sys-libs/zlib |
1195 |
- bzip2? ( app-arch/bzip2 ) |
1196 |
- ldap? ( net-nds/openldap:= ) |
1197 |
- readline? ( sys-libs/readline:0= ) |
1198 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
1199 |
- tofu? ( >=dev-db/sqlite-3.27 ) |
1200 |
- tpm? ( >=app-crypt/tpm2-tss-2.4.0:= ) |
1201 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
1202 |
-" |
1203 |
- |
1204 |
-RDEPEND="${DEPEND} |
1205 |
- app-crypt/pinentry |
1206 |
- nls? ( virtual/libintl ) |
1207 |
- selinux? ( sec-policy/selinux-gpg ) |
1208 |
- wks-server? ( virtual/mta )" |
1209 |
- |
1210 |
-BDEPEND="virtual/pkgconfig |
1211 |
- doc? ( sys-apps/texinfo ) |
1212 |
- nls? ( sys-devel/gettext ) |
1213 |
- verify-sig? ( sec-keys/openpgp-keys-gnupg )" |
1214 |
- |
1215 |
-DOCS=( |
1216 |
- ChangeLog NEWS README THANKS TODO VERSION |
1217 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
1218 |
-) |
1219 |
- |
1220 |
-PATCHES=( |
1221 |
- "${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch |
1222 |
-) |
1223 |
- |
1224 |
-src_prepare() { |
1225 |
- default |
1226 |
- |
1227 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
1228 |
- # idea borrowed from libdbus, see |
1229 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
1230 |
- # |
1231 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
1232 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
1233 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
1234 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
1235 |
-} |
1236 |
- |
1237 |
-src_configure() { |
1238 |
- local myconf=( |
1239 |
- $(use_enable bzip2) |
1240 |
- $(use_enable nls) |
1241 |
- $(use_enable smartcard scdaemon) |
1242 |
- $(use_enable ssl gnutls) |
1243 |
- $(use_enable test all-tests) |
1244 |
- $(use_enable test tests) |
1245 |
- $(use_enable tofu) |
1246 |
- $(use_enable tofu keyboxd) |
1247 |
- $(use_enable tofu sqlite) |
1248 |
- $(usex tpm '--with-tss=intel' '--disable-tpm2d') |
1249 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
1250 |
- $(use_enable wks-server wks-tools) |
1251 |
- $(use_with ldap) |
1252 |
- $(use_with readline) |
1253 |
- --with-mailprog=/usr/libexec/sendmail |
1254 |
- --disable-ntbtls |
1255 |
- --enable-gpgsm |
1256 |
- --enable-large-secmem |
1257 |
- |
1258 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
1259 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
1260 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
1261 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
1262 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
1263 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
1264 |
- |
1265 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
1266 |
- ) |
1267 |
- |
1268 |
- if use prefix && use usb; then |
1269 |
- # bug #649598 |
1270 |
- append-cppflags -I"${ESYSROOT}/usr/include/libusb-1.0" |
1271 |
- fi |
1272 |
- |
1273 |
- # bug #663142 |
1274 |
- if use user-socket; then |
1275 |
- myconf+=( --enable-run-gnupg-user-socket ) |
1276 |
- fi |
1277 |
- |
1278 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
1279 |
- tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h |
1280 |
- |
1281 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
1282 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
1283 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
1284 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
1285 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
1286 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
1287 |
- # the build where the install guide previously make the user chose the |
1288 |
- # logger & mta early in the install. |
1289 |
- |
1290 |
- econf "${myconf[@]}" |
1291 |
-} |
1292 |
- |
1293 |
-src_compile() { |
1294 |
- default |
1295 |
- |
1296 |
- use doc && emake -C doc html |
1297 |
-} |
1298 |
- |
1299 |
-src_test() { |
1300 |
- # bug #638574 |
1301 |
- use tofu && export TESTFLAGS=--parallel |
1302 |
- |
1303 |
- default |
1304 |
-} |
1305 |
- |
1306 |
-src_install() { |
1307 |
- default |
1308 |
- |
1309 |
- use tools && |
1310 |
- dobin \ |
1311 |
- tools/{convert-from-106,gpg-check-pattern} \ |
1312 |
- tools/{gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
1313 |
- tools/make-dns-cert |
1314 |
- |
1315 |
- dosym gpg /usr/bin/gpg2 |
1316 |
- dosym gpgv /usr/bin/gpgv2 |
1317 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
1318 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
1319 |
- |
1320 |
- dodir /etc/env.d |
1321 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
1322 |
- |
1323 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
1324 |
- |
1325 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
1326 |
-} |