1 |
commit: 87ba508116323f2dd619daceb1f6fd8d61f457fc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 29 20:45:10 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 29 20:45:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87ba5081 |
7 |
|
8 |
app-crypt/gnupg: drop 2.2.27, 2.2.29, 2.2.31, 2.3.2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-crypt/gnupg/Manifest | 5 -- |
13 |
app-crypt/gnupg/gnupg-2.2.27.ebuild | 160 ------------------------------------ |
14 |
app-crypt/gnupg/gnupg-2.2.29.ebuild | 152 ---------------------------------- |
15 |
app-crypt/gnupg/gnupg-2.2.31.ebuild | 152 ---------------------------------- |
16 |
app-crypt/gnupg/gnupg-2.3.2.ebuild | 153 ---------------------------------- |
17 |
5 files changed, 622 deletions(-) |
18 |
|
19 |
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest |
20 |
index 9b88698d22ad..91070e4e2b4f 100644 |
21 |
--- a/app-crypt/gnupg/Manifest |
22 |
+++ b/app-crypt/gnupg/Manifest |
23 |
@@ -1,8 +1,3 @@ |
24 |
-DIST gnupg-2.2.16-scdaemon_shared-access.patch 2586 BLAKE2B 42fd5482c4e86751ce62836125997c2295c44bc5db0671a06460fd306b2ed93f290fb898fc1b1e463a863eddf9ab5f99ea3c90a55499ef45ca1ed6edf2854663 SHA512 38abaa4200114ae6b6f220fabc0a84a056761949c97bd0564557f4411a299b9a1939893555c27e26da2d8e8da4bc97a298fa7e68f1e80fe99c3f88cc329eaa84 |
25 |
-DIST gnupg-2.2.27.tar.bz2 7191555 BLAKE2B d652aad382cf07cc458b29ff82718edd47457d8236dcbeee51f22d88503be141f009e9ea45b6dafe614115d9558fe371509579e58ce17a5f04540a31aa406ea3 SHA512 cf336962116c9c08ac80b1299654b94948033ef51d6d5e7f54c2f07bbf7d92c7b0bddb606ceee2cdd837063f519b8d59af5a82816b840a0fc47d90c07b0e95ab |
26 |
-DIST gnupg-2.2.29.tar.bz2 7215986 BLAKE2B 04b777730b8fcbe8d93dfc8985aadd6bc7385ac2ac9684e6248cb3ae6d008daae5aa976ffa3bae27fe9e89bc2c4c1d4ae81dcaa259fb08d13f894f00f12072e9 SHA512 12645e230fc6aa4811420ef33def6baa590e847ecdf7e5f8b96eb49122e6406cbdba4595d0b52fa26700d5d5def67acb4ed7dfe7f778e496d4d21ccbef3c476b |
27 |
-DIST gnupg-2.2.31.tar.bz2 7212188 BLAKE2B 57a2b6c6ea491137a708e18a0119502621b7bdf0591818d19beb8b08a521a7dbf60472243e1723f53acbfb9a5de612b8e5040c45dc847bdda26012244edb11be SHA512 2f6fa200e08d6b8993b482e5825bea6083afc8686c4e1ae80386b36ae49e1c2d73066c508edaa359a7794cb26ba7a00f81555a906fa422d1117e41415cfa2fea |
28 |
DIST gnupg-2.2.32.tar.bz2 7212625 BLAKE2B 8e1feba83a0d8fa1c154c814e26b41aa252cef4af53937e4e8954860249c180c1d6910356b0c46dfefde094846b02bd5375f17c8b6fdcc9138281d0daa292d42 SHA512 76b75d3688561ce65a8014812656aa87c9722c898d7e186fdb1331dee6af32f886a6b0a4806975c348a22ad6dda60f956ece56076d00153b9706aad4c934c6a1 |
29 |
DIST gnupg-2.2.33.tar.bz2 7238439 BLAKE2B 9655ab8733f79c56c706502ddeeb41a2841467146753965898528d53a95ba77c51bcaf7fb93c51fb1c36953253ef993e67ce3c9ec756c9eece1042dcd17aa455 SHA512 0e6382ebb78425dc81b280a3b453111fb4a764b3fb0565ac09ac24cec2ecd571079617e263d9fce077ba6ce8d202fb43425b51c26f9ec6e8c61706a1ca5f8c78 |
30 |
-DIST gnupg-2.3.2.tar.bz2 7589445 BLAKE2B f7e35ed553ea89cdb073abb1432f67fa00bb625f6e686e534f96bca11d88f09ea272b3cb0d6706e4bce2c023f8c5b8d628742aa2f60752a2e605132cd32f62ed SHA512 2747cbe38546f500d165f024ebb2dc5be70fa68d20702af3f61e97db685eba94caf65307293137c76ea6cfcc189ed24aaee025c80cd33f26609e5fe512bdda73 |
31 |
DIST gnupg-2.3.3.tar.bz2 7590874 BLAKE2B a80a84b4f6691815550de6125f4f24aa9c901b8ca8eeb6bc91c90ccd3d285a5ddb15688c7ab870aa6a6c418eb98b969e7b958120c3976b5aaea55188f39b67b0 SHA512 12d500e6b45910d5f7bfd4916bcee37ac988a58a35563fcf425a65b88c0cf92c2af2e94d3e31e9e5e19094c8beb5ec3779cf90bfe43d1555c4196f69eee2f102 |
32 |
|
33 |
diff --git a/app-crypt/gnupg/gnupg-2.2.27.ebuild b/app-crypt/gnupg/gnupg-2.2.27.ebuild |
34 |
deleted file mode 100644 |
35 |
index abbcdf02bd07..000000000000 |
36 |
--- a/app-crypt/gnupg/gnupg-2.2.27.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,160 +0,0 @@ |
39 |
-# Copyright 1999-2021 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
- |
44 |
-inherit flag-o-matic systemd toolchain-funcs |
45 |
- |
46 |
-MY_P="${P/_/-}" |
47 |
- |
48 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
49 |
-HOMEPAGE="https://gnupg.org/" |
50 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2 |
51 |
- scd-shared-access? ( https://raw.githubusercontent.com/GPGTools/MacGPG2/5ca182f54b7b6cd635d1c0a4713953834489fdd9/patches/gnupg/scdaemon_shared-access.patch -> ${PN}-2.2.16-scdaemon_shared-access.patch )" |
52 |
- |
53 |
-LICENSE="GPL-3" |
54 |
-SLOT="0" |
55 |
-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" |
56 |
-IUSE="bzip2 doc ldap nls readline scd-shared-access selinux +smartcard ssl tofu tools usb user-socket wks-server" |
57 |
- |
58 |
-# Existence of executables is checked during configuration. |
59 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
60 |
- >=dev-libs/libgcrypt-1.8.0 |
61 |
- >=dev-libs/libgpg-error-1.29 |
62 |
- >=dev-libs/libksba-1.3.4 |
63 |
- >=dev-libs/npth-1.2 |
64 |
- >=net-misc/curl-7.10 |
65 |
- bzip2? ( app-arch/bzip2 ) |
66 |
- ldap? ( net-nds/openldap ) |
67 |
- readline? ( sys-libs/readline:0= ) |
68 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
69 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
70 |
- sys-libs/zlib |
71 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
72 |
- |
73 |
-RDEPEND="${DEPEND} |
74 |
- app-crypt/pinentry |
75 |
- nls? ( virtual/libintl ) |
76 |
- selinux? ( sec-policy/selinux-gpg ) |
77 |
- wks-server? ( virtual/mta )" |
78 |
- |
79 |
-BDEPEND="virtual/pkgconfig |
80 |
- doc? ( sys-apps/texinfo ) |
81 |
- nls? ( sys-devel/gettext )" |
82 |
- |
83 |
-S="${WORKDIR}/${MY_P}" |
84 |
- |
85 |
-DOCS=( |
86 |
- ChangeLog NEWS README THANKS TODO VERSION |
87 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
88 |
-) |
89 |
- |
90 |
-PATCHES=( |
91 |
- "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
92 |
-) |
93 |
- |
94 |
-src_prepare() { |
95 |
- default |
96 |
- |
97 |
- # Made optional because it's a non-official patch |
98 |
- if use scd-shared-access ; then |
99 |
- # Patch taken from |
100 |
- # https://github.com/GPGTools/MacGPG2/tree/dev/patches/gnupg |
101 |
- eapply "${DISTDIR}/${PN}-2.2.16-scdaemon_shared-access.patch" |
102 |
- fi |
103 |
- |
104 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
105 |
- # idea borrowed from libdbus, see |
106 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
107 |
- # |
108 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
109 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
110 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
111 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
112 |
-} |
113 |
- |
114 |
-src_configure() { |
115 |
- local myconf=( |
116 |
- $(use_enable bzip2) |
117 |
- $(use_enable nls) |
118 |
- $(use_enable smartcard scdaemon) |
119 |
- $(use_enable ssl gnutls) |
120 |
- $(use_enable tofu) |
121 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
122 |
- $(use_enable wks-server wks-tools) |
123 |
- $(use_with ldap) |
124 |
- $(use_with readline) |
125 |
- --with-mailprog=/usr/libexec/sendmail |
126 |
- --disable-ntbtls |
127 |
- --enable-all-tests |
128 |
- --enable-gpg |
129 |
- --enable-gpgsm |
130 |
- --enable-large-secmem |
131 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
132 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
133 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
134 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
135 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
136 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
137 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
138 |
- ) |
139 |
- |
140 |
- if use prefix && use usb; then |
141 |
- # bug #649598 |
142 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
143 |
- fi |
144 |
- |
145 |
- #bug 663142 |
146 |
- if use user-socket; then |
147 |
- myconf+=( --enable-run-gnupg-user-socket ) |
148 |
- fi |
149 |
- |
150 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
151 |
- [[ ${CC} == *clang ]] && \ |
152 |
- export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
153 |
- |
154 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
155 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
156 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
157 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
158 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
159 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
160 |
- # the build where the install guide previously make the user chose the |
161 |
- # logger & mta early in the install. |
162 |
- |
163 |
- econf "${myconf[@]}" |
164 |
-} |
165 |
- |
166 |
-src_compile() { |
167 |
- default |
168 |
- |
169 |
- use doc && emake -C doc html |
170 |
-} |
171 |
- |
172 |
-src_test() { |
173 |
- #Bug: 638574 |
174 |
- use tofu && export TESTFLAGS=--parallel |
175 |
- default |
176 |
-} |
177 |
- |
178 |
-src_install() { |
179 |
- default |
180 |
- |
181 |
- use tools && |
182 |
- dobin \ |
183 |
- tools/{convert-from-106,gpg-check-pattern} \ |
184 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
185 |
- tools/make-dns-cert |
186 |
- |
187 |
- dosym gpg /usr/bin/gpg2 |
188 |
- dosym gpgv /usr/bin/gpgv2 |
189 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
190 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
191 |
- |
192 |
- dodir /etc/env.d |
193 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
194 |
- |
195 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
196 |
- |
197 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
198 |
-} |
199 |
|
200 |
diff --git a/app-crypt/gnupg/gnupg-2.2.29.ebuild b/app-crypt/gnupg/gnupg-2.2.29.ebuild |
201 |
deleted file mode 100644 |
202 |
index 654d757e6632..000000000000 |
203 |
--- a/app-crypt/gnupg/gnupg-2.2.29.ebuild |
204 |
+++ /dev/null |
205 |
@@ -1,152 +0,0 @@ |
206 |
-# Copyright 1999-2021 Gentoo Authors |
207 |
-# Distributed under the terms of the GNU General Public License v2 |
208 |
- |
209 |
-EAPI=8 |
210 |
- |
211 |
-inherit flag-o-matic systemd toolchain-funcs |
212 |
- |
213 |
-MY_P="${P/_/-}" |
214 |
- |
215 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
216 |
-HOMEPAGE="https://gnupg.org/" |
217 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
218 |
- |
219 |
-LICENSE="GPL-3" |
220 |
-SLOT="0" |
221 |
-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" |
222 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb user-socket wks-server" |
223 |
- |
224 |
-# Existence of executables is checked during configuration. |
225 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
226 |
- >=dev-libs/libgcrypt-1.8.0 |
227 |
- >=dev-libs/libgpg-error-1.29 |
228 |
- >=dev-libs/libksba-1.3.4 |
229 |
- >=dev-libs/npth-1.2 |
230 |
- >=net-misc/curl-7.10 |
231 |
- bzip2? ( app-arch/bzip2 ) |
232 |
- ldap? ( net-nds/openldap ) |
233 |
- readline? ( sys-libs/readline:0= ) |
234 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
235 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
236 |
- sys-libs/zlib |
237 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
238 |
- |
239 |
-RDEPEND="${DEPEND} |
240 |
- app-crypt/pinentry |
241 |
- nls? ( virtual/libintl ) |
242 |
- selinux? ( sec-policy/selinux-gpg ) |
243 |
- wks-server? ( virtual/mta )" |
244 |
- |
245 |
-BDEPEND="virtual/pkgconfig |
246 |
- doc? ( sys-apps/texinfo ) |
247 |
- nls? ( sys-devel/gettext )" |
248 |
- |
249 |
-S="${WORKDIR}/${MY_P}" |
250 |
- |
251 |
-DOCS=( |
252 |
- ChangeLog NEWS README THANKS TODO VERSION |
253 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
254 |
-) |
255 |
- |
256 |
-PATCHES=( |
257 |
- "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
258 |
-) |
259 |
- |
260 |
-src_prepare() { |
261 |
- default |
262 |
- |
263 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
264 |
- # idea borrowed from libdbus, see |
265 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
266 |
- # |
267 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
268 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
269 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
270 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
271 |
-} |
272 |
- |
273 |
-src_configure() { |
274 |
- local myconf=( |
275 |
- $(use_enable bzip2) |
276 |
- $(use_enable nls) |
277 |
- $(use_enable smartcard scdaemon) |
278 |
- $(use_enable ssl gnutls) |
279 |
- $(use_enable tofu) |
280 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
281 |
- $(use_enable wks-server wks-tools) |
282 |
- $(use_with ldap) |
283 |
- $(use_with readline) |
284 |
- --with-mailprog=/usr/libexec/sendmail |
285 |
- --disable-ntbtls |
286 |
- --enable-all-tests |
287 |
- --enable-gpg |
288 |
- --enable-gpgsm |
289 |
- --enable-large-secmem |
290 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
291 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
292 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
293 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
294 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
295 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
296 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
297 |
- ) |
298 |
- |
299 |
- if use prefix && use usb; then |
300 |
- # bug #649598 |
301 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
302 |
- fi |
303 |
- |
304 |
- #bug 663142 |
305 |
- if use user-socket; then |
306 |
- myconf+=( --enable-run-gnupg-user-socket ) |
307 |
- fi |
308 |
- |
309 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
310 |
- [[ ${CC} == *clang ]] && \ |
311 |
- export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
312 |
- |
313 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
314 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
315 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
316 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
317 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
318 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
319 |
- # the build where the install guide previously make the user chose the |
320 |
- # logger & mta early in the install. |
321 |
- |
322 |
- econf "${myconf[@]}" |
323 |
-} |
324 |
- |
325 |
-src_compile() { |
326 |
- default |
327 |
- |
328 |
- use doc && emake -C doc html |
329 |
-} |
330 |
- |
331 |
-src_test() { |
332 |
- #Bug: 638574 |
333 |
- use tofu && export TESTFLAGS=--parallel |
334 |
- default |
335 |
-} |
336 |
- |
337 |
-src_install() { |
338 |
- default |
339 |
- |
340 |
- use tools && |
341 |
- dobin \ |
342 |
- tools/{convert-from-106,gpg-check-pattern} \ |
343 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
344 |
- tools/make-dns-cert |
345 |
- |
346 |
- dosym gpg /usr/bin/gpg2 |
347 |
- dosym gpgv /usr/bin/gpgv2 |
348 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
349 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
350 |
- |
351 |
- dodir /etc/env.d |
352 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
353 |
- |
354 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
355 |
- |
356 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
357 |
-} |
358 |
|
359 |
diff --git a/app-crypt/gnupg/gnupg-2.2.31.ebuild b/app-crypt/gnupg/gnupg-2.2.31.ebuild |
360 |
deleted file mode 100644 |
361 |
index 81662988beb7..000000000000 |
362 |
--- a/app-crypt/gnupg/gnupg-2.2.31.ebuild |
363 |
+++ /dev/null |
364 |
@@ -1,152 +0,0 @@ |
365 |
-# Copyright 1999-2021 Gentoo Authors |
366 |
-# Distributed under the terms of the GNU General Public License v2 |
367 |
- |
368 |
-EAPI=8 |
369 |
- |
370 |
-inherit flag-o-matic systemd toolchain-funcs |
371 |
- |
372 |
-MY_P="${P/_/-}" |
373 |
- |
374 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
375 |
-HOMEPAGE="https://gnupg.org/" |
376 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
377 |
- |
378 |
-LICENSE="GPL-3" |
379 |
-SLOT="0" |
380 |
-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" |
381 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb user-socket wks-server" |
382 |
- |
383 |
-# Existence of executables is checked during configuration. |
384 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
385 |
- >=dev-libs/libgcrypt-1.8.0 |
386 |
- >=dev-libs/libgpg-error-1.29 |
387 |
- >=dev-libs/libksba-1.3.4 |
388 |
- >=dev-libs/npth-1.2 |
389 |
- >=net-misc/curl-7.10 |
390 |
- bzip2? ( app-arch/bzip2 ) |
391 |
- ldap? ( net-nds/openldap ) |
392 |
- readline? ( sys-libs/readline:0= ) |
393 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
394 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
395 |
- sys-libs/zlib |
396 |
- tofu? ( >=dev-db/sqlite-3.7 )" |
397 |
- |
398 |
-RDEPEND="${DEPEND} |
399 |
- app-crypt/pinentry |
400 |
- nls? ( virtual/libintl ) |
401 |
- selinux? ( sec-policy/selinux-gpg ) |
402 |
- wks-server? ( virtual/mta )" |
403 |
- |
404 |
-BDEPEND="virtual/pkgconfig |
405 |
- doc? ( sys-apps/texinfo ) |
406 |
- nls? ( sys-devel/gettext )" |
407 |
- |
408 |
-S="${WORKDIR}/${MY_P}" |
409 |
- |
410 |
-DOCS=( |
411 |
- ChangeLog NEWS README THANKS TODO VERSION |
412 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
413 |
-) |
414 |
- |
415 |
-PATCHES=( |
416 |
- "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
417 |
-) |
418 |
- |
419 |
-src_prepare() { |
420 |
- default |
421 |
- |
422 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
423 |
- # idea borrowed from libdbus, see |
424 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
425 |
- # |
426 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
427 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
428 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
429 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
430 |
-} |
431 |
- |
432 |
-src_configure() { |
433 |
- local myconf=( |
434 |
- $(use_enable bzip2) |
435 |
- $(use_enable nls) |
436 |
- $(use_enable smartcard scdaemon) |
437 |
- $(use_enable ssl gnutls) |
438 |
- $(use_enable tofu) |
439 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
440 |
- $(use_enable wks-server wks-tools) |
441 |
- $(use_with ldap) |
442 |
- $(use_with readline) |
443 |
- --with-mailprog=/usr/libexec/sendmail |
444 |
- --disable-ntbtls |
445 |
- --enable-all-tests |
446 |
- --enable-gpg |
447 |
- --enable-gpgsm |
448 |
- --enable-large-secmem |
449 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
450 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
451 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
452 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
453 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
454 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
455 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
456 |
- ) |
457 |
- |
458 |
- if use prefix && use usb; then |
459 |
- # bug #649598 |
460 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
461 |
- fi |
462 |
- |
463 |
- #bug 663142 |
464 |
- if use user-socket; then |
465 |
- myconf+=( --enable-run-gnupg-user-socket ) |
466 |
- fi |
467 |
- |
468 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
469 |
- [[ ${CC} == *clang ]] && \ |
470 |
- export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
471 |
- |
472 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
473 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
474 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
475 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
476 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
477 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
478 |
- # the build where the install guide previously make the user chose the |
479 |
- # logger & mta early in the install. |
480 |
- |
481 |
- econf "${myconf[@]}" |
482 |
-} |
483 |
- |
484 |
-src_compile() { |
485 |
- default |
486 |
- |
487 |
- use doc && emake -C doc html |
488 |
-} |
489 |
- |
490 |
-src_test() { |
491 |
- #Bug: 638574 |
492 |
- use tofu && export TESTFLAGS=--parallel |
493 |
- default |
494 |
-} |
495 |
- |
496 |
-src_install() { |
497 |
- default |
498 |
- |
499 |
- use tools && |
500 |
- dobin \ |
501 |
- tools/{convert-from-106,gpg-check-pattern} \ |
502 |
- tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
503 |
- tools/make-dns-cert |
504 |
- |
505 |
- dosym gpg /usr/bin/gpg2 |
506 |
- dosym gpgv /usr/bin/gpgv2 |
507 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
508 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
509 |
- |
510 |
- dodir /etc/env.d |
511 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
512 |
- |
513 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
514 |
- |
515 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
516 |
-} |
517 |
|
518 |
diff --git a/app-crypt/gnupg/gnupg-2.3.2.ebuild b/app-crypt/gnupg/gnupg-2.3.2.ebuild |
519 |
deleted file mode 100644 |
520 |
index 0c66be6c9fd2..000000000000 |
521 |
--- a/app-crypt/gnupg/gnupg-2.3.2.ebuild |
522 |
+++ /dev/null |
523 |
@@ -1,153 +0,0 @@ |
524 |
-# Copyright 1999-2021 Gentoo Authors |
525 |
-# Distributed under the terms of the GNU General Public License v2 |
526 |
- |
527 |
-EAPI=7 |
528 |
- |
529 |
-inherit flag-o-matic systemd toolchain-funcs |
530 |
- |
531 |
-MY_P="${P/_/-}" |
532 |
- |
533 |
-DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
534 |
-HOMEPAGE="https://gnupg.org/" |
535 |
-SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
536 |
-S="${WORKDIR}/${MY_P}" |
537 |
- |
538 |
-LICENSE="GPL-3" |
539 |
-SLOT="0" |
540 |
-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" |
541 |
-IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb user-socket wks-server" |
542 |
- |
543 |
-# Existence of executables is checked during configuration. |
544 |
-DEPEND=">=dev-libs/libassuan-2.5.0 |
545 |
- >=dev-libs/libgcrypt-1.9.1 |
546 |
- >=dev-libs/libgpg-error-1.29 |
547 |
- >=dev-libs/libksba-1.3.4 |
548 |
- >=dev-libs/npth-1.2 |
549 |
- >=net-misc/curl-7.10 |
550 |
- bzip2? ( app-arch/bzip2 ) |
551 |
- ldap? ( net-nds/openldap ) |
552 |
- readline? ( sys-libs/readline:0= ) |
553 |
- smartcard? ( usb? ( virtual/libusb:1 ) ) |
554 |
- tofu? ( >=dev-db/sqlite-3.27 ) |
555 |
- ssl? ( >=net-libs/gnutls-3.0:0= ) |
556 |
- sys-libs/zlib |
557 |
-" |
558 |
- |
559 |
-RDEPEND="${DEPEND} |
560 |
- app-crypt/pinentry |
561 |
- nls? ( virtual/libintl ) |
562 |
- selinux? ( sec-policy/selinux-gpg ) |
563 |
- wks-server? ( virtual/mta )" |
564 |
- |
565 |
-BDEPEND="virtual/pkgconfig |
566 |
- doc? ( sys-apps/texinfo ) |
567 |
- nls? ( sys-devel/gettext )" |
568 |
- |
569 |
-DOCS=( |
570 |
- ChangeLog NEWS README THANKS TODO VERSION |
571 |
- doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
572 |
-) |
573 |
- |
574 |
-PATCHES=( |
575 |
- "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
576 |
-) |
577 |
- |
578 |
-src_prepare() { |
579 |
- default |
580 |
- |
581 |
- # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
582 |
- # idea borrowed from libdbus, see |
583 |
- # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
584 |
- # |
585 |
- # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
586 |
- # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
587 |
- sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
588 |
- -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
589 |
-} |
590 |
- |
591 |
-src_configure() { |
592 |
- local myconf=( |
593 |
- $(use_enable bzip2) |
594 |
- $(use_enable nls) |
595 |
- $(use_enable smartcard scdaemon) |
596 |
- $(use_enable ssl gnutls) |
597 |
- $(use_enable tofu) |
598 |
- $(use_enable tofu keyboxd) |
599 |
- $(use_enable tofu sqlite) |
600 |
- $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
601 |
- $(use_enable wks-server wks-tools) |
602 |
- $(use_with ldap) |
603 |
- $(use_with readline) |
604 |
- --with-mailprog=/usr/libexec/sendmail |
605 |
- --disable-ntbtls |
606 |
- --enable-all-tests |
607 |
- --enable-gpgsm |
608 |
- --enable-large-secmem |
609 |
- CC_FOR_BUILD="$(tc-getBUILD_CC)" |
610 |
- GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
611 |
- KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
612 |
- LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
613 |
- LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
614 |
- NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
615 |
- $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
616 |
- ) |
617 |
- |
618 |
- if use prefix && use usb; then |
619 |
- # bug #649598 |
620 |
- append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
621 |
- fi |
622 |
- |
623 |
- #bug 663142 |
624 |
- if use user-socket; then |
625 |
- myconf+=( --enable-run-gnupg-user-socket ) |
626 |
- fi |
627 |
- |
628 |
- # glib fails and picks up clang's internal stdint.h causing weird errors |
629 |
- [[ ${CC} == *clang ]] && \ |
630 |
- export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
631 |
- |
632 |
- # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
633 |
- # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
634 |
- # by wks-client & wks-server; and if it's autodetected but not not exist at |
635 |
- # build time, then then 'gpg-wks-client --send' functionality will not |
636 |
- # work. This has an unwanted side-effect in stage3 builds: there was a |
637 |
- # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
638 |
- # the build where the install guide previously make the user chose the |
639 |
- # logger & mta early in the install. |
640 |
- |
641 |
- econf "${myconf[@]}" |
642 |
-} |
643 |
- |
644 |
-src_compile() { |
645 |
- default |
646 |
- |
647 |
- use doc && emake -C doc html |
648 |
-} |
649 |
- |
650 |
-src_test() { |
651 |
- #Bug: 638574 |
652 |
- use tofu && export TESTFLAGS=--parallel |
653 |
- default |
654 |
-} |
655 |
- |
656 |
-src_install() { |
657 |
- default |
658 |
- |
659 |
- use tools && |
660 |
- dobin \ |
661 |
- tools/{convert-from-106,gpg-check-pattern} \ |
662 |
- tools/{gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
663 |
- tools/make-dns-cert |
664 |
- |
665 |
- dosym gpg /usr/bin/gpg2 |
666 |
- dosym gpgv /usr/bin/gpgv2 |
667 |
- echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
668 |
- echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
669 |
- |
670 |
- dodir /etc/env.d |
671 |
- echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
672 |
- |
673 |
- use doc && dodoc doc/gnupg.html/* doc/*.png |
674 |
- |
675 |
- systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
676 |
-} |