Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/
Date: Fri, 02 Sep 2022 20:53:22
Message-Id: 1662151971.c97c6ebf6f163084c46730cf09f0dedd23ae8b63.sam@gentoo
1 commit: c97c6ebf6f163084c46730cf09f0dedd23ae8b63
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 2 20:52:51 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 2 20:52:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c97c6ebf
7
8 app-crypt/gnupg: add 2.2.39
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-crypt/gnupg/Manifest | 2 +
13 app-crypt/gnupg/gnupg-2.2.39.ebuild | 165 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 167 insertions(+)
15
16 diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
17 index 292c8c4c6144..1ae533ed4a9a 100644
18 --- a/app-crypt/gnupg/Manifest
19 +++ b/app-crypt/gnupg/Manifest
20 @@ -6,6 +6,8 @@ DIST gnupg-2.2.37.tar.bz2 7285172 BLAKE2B 40606f996aea3d26e28989466861bf486b8bf9
21 DIST gnupg-2.2.37.tar.bz2.sig 119 BLAKE2B b5166f574a35223eeadf056d6bc3e8bcbd02fad766713afba28e20d4d431fcf123b5566527274923fede092c1e48efefd32b825644583f016bf3db119af03209 SHA512 8a1c34a5cd6afa3a263669922bc43217274f796634dc14b54558e1361f5e38680c6897e402a5289ccbe08c91efa3647bccd741fa09f3259174b8dabf86ecbc6f
22 DIST gnupg-2.2.38.tar.bz2 7290509 BLAKE2B 249fd6502a1607d1881fd97e4a97a1a3557da26929b67424bafcf29b5ef1588c9295347c5be497a8485dd61755bfe40b4f0232e0f1f67d2517c69613c6080da1 SHA512 30483492e27c31db114c29e22eae1b9c54db9f02ade491f443a7748b42825fa3e52545286316b99217aed0b0af29f67ccecca2399c76554a086bcd49b35ad3e5
23 DIST gnupg-2.2.38.tar.bz2.sig 119 BLAKE2B 9e7257a7326ccf107eff1f93b92f7e79ab31a2e58c12d4085a2106528c822df1737a127923c62a05fa199fa1d1e0ac900726808870d059871be6ab178849369e SHA512 e00ec552e1347ab26d37ad7830f599aa51e7620e9780250480192f83c67e319bf2d26f7198f49c553204ab96461c0a4aea1fa6ae57c83a91681f98c2596a9ab6
24 +DIST gnupg-2.2.39.tar.bz2 7290098 BLAKE2B a9e31830f3ef9ec6d8d461a85fcbe4b91bcac9607d3b5f13f5edc0c54505afb6c6c119cd397023b1378d96c7d0f15c0d60da1d15721e9a18eb3ea8c7b69fba83 SHA512 73f881c12c82010aeaada500517ff39ab22b27ff21b1248bc2228b60a2d75385a44a53c5cfadb8f6b84ef22ad9db0105096b6620fb689560809b324019713940
25 +DIST gnupg-2.2.39.tar.bz2.sig 119 BLAKE2B 584d7d36671670ac507948257e9c6be556ed2a2d3c0100bb2746edfe96df5ee1d4c6172fe0cae39d85fc290097bc5f6e1b351debc8ec2f5cc78047354fbed016 SHA512 6f7d7c2d1fae706b03c735cf453976c3aebef3f23659426f39a88c63d979f4d873ae09280d75dee9000805468d2a7f49d348609061939000f7cedf34ec5c6019
26 DIST gnupg-2.3.6.tar.bz2 7604761 BLAKE2B 6cbc749156c50b6633c126cde621271c6c9682a04efea51fbc5a2e92ee56493e8348814391ee0c337adcb4de4dd23293b9592db78998626905038c859ac4af6e SHA512 4540e8d2be836b491918f4987ba301a73fcdc4539b1f9abf6112a74c2d39c0e5dc3f17511212bac1dd7fd0594feecd91f95ecf78d4b2c1e70e818342a1802b85
27 DIST gnupg-2.3.6.tar.bz2.sig 119 BLAKE2B c7d4cdc81580b8b1e56c7bc83236d65c9d2c1bab2d210d14a0d3c58f635d656c9b449ef9596b9601027cb891bd437cc8f2a63eb3c17742c288531511984fba7f SHA512 85d155f9809c8d0f38723d8622c085e421531c016d19fcce2ae34dc9a4aeac0bc1895f7a094ee9cdf69a15b426fb0d72ee53319fe0a05665c92caa0e950c1797
28 DIST gnupg-2.3.7.tar.bz2 7599853 BLAKE2B 3e9e33c8357222f42cc0e2af538e9f1f1f0453f35d790aaadf47ce9df24229efa91457b6014b34f19084448a3a6603c82e7d07714b89a68c6a84a08af6fa0e02 SHA512 c7fe169050ef17051cdaac9ad476e7ea792483baad1208fc359d568fa9e138d920ecaa2cd9cae73b20f5472a7d8ca6540a62062ff7a06055cc656b0eb4b917b9
29
30 diff --git a/app-crypt/gnupg/gnupg-2.2.39.ebuild b/app-crypt/gnupg/gnupg-2.2.39.ebuild
31 new file mode 100644
32 index 000000000000..fb9d8114d5bb
33 --- /dev/null
34 +++ b/app-crypt/gnupg/gnupg-2.2.39.ebuild
35 @@ -0,0 +1,165 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +# Maintainers should:
42 +# 1. Join the "Gentoo" project at https://dev.gnupg.org/project/view/27/
43 +# 2. Subscribe to release tasks like https://dev.gnupg.org/T6159
44 +# (find the one for the current release then subscribe to it +
45 +# any subsequent ones linked within so you're covered for a while.)
46 +
47 +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc
48 +inherit flag-o-matic systemd toolchain-funcs verify-sig
49 +
50 +MY_P="${P/_/-}"
51 +
52 +DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
53 +HOMEPAGE="https://gnupg.org/"
54 +SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
55 +SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )"
56 +S="${WORKDIR}/${MY_P}"
57 +
58 +LICENSE="GPL-3"
59 +SLOT="0"
60 +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"
61 +IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server"
62 +RESTRICT="!test? ( test )"
63 +
64 +# Existence of executables is checked during configuration.
65 +# Note: On each bump, update dep bounds on each version from configure.ac!
66 +DEPEND=">=dev-libs/libassuan-2.5.0
67 + >=dev-libs/libgcrypt-1.8.0:=
68 + >=dev-libs/libgpg-error-1.29
69 + >=dev-libs/libksba-1.3.5
70 + >=dev-libs/npth-1.2
71 + >=net-misc/curl-7.10
72 + sys-libs/zlib
73 + bzip2? ( app-arch/bzip2 )
74 + ldap? ( net-nds/openldap:= )
75 + readline? ( sys-libs/readline:0= )
76 + smartcard? ( usb? ( virtual/libusb:1 ) )
77 + ssl? ( >=net-libs/gnutls-3.0:0= )
78 + tofu? ( >=dev-db/sqlite-3.7 )"
79 +
80 +RDEPEND="${DEPEND}
81 + app-crypt/pinentry
82 + nls? ( virtual/libintl )
83 + selinux? ( sec-policy/selinux-gpg )
84 + wks-server? ( virtual/mta )"
85 +
86 +BDEPEND="virtual/pkgconfig
87 + doc? ( sys-apps/texinfo )
88 + nls? ( sys-devel/gettext )
89 + verify-sig? ( sec-keys/openpgp-keys-gnupg )"
90 +
91 +DOCS=(
92 + ChangeLog NEWS README THANKS TODO VERSION
93 + doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
94 +)
95 +
96 +PATCHES=(
97 + "${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch
98 +)
99 +
100 +src_prepare() {
101 + default
102 +
103 + # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode,
104 + # idea borrowed from libdbus, see
105 + # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6
106 + #
107 + # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl',
108 + # which in turn requires discovery in Autoconf, something that upstream deeply resents.
109 + sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \
110 + -i doc/examples/systemd-user/gpg-agent-ssh.socket || die
111 +}
112 +
113 +src_configure() {
114 + local myconf=(
115 + $(use_enable bzip2)
116 + $(use_enable nls)
117 + $(use_enable smartcard scdaemon)
118 + $(use_enable ssl gnutls)
119 + $(use_enable test all-tests)
120 + $(use_enable test tests)
121 + $(use_enable tofu)
122 + $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver')
123 + $(use_enable wks-server wks-tools)
124 + $(use_with ldap)
125 + $(use_with readline)
126 + --with-mailprog=/usr/libexec/sendmail
127 + --disable-ntbtls
128 + --enable-gpg
129 + --enable-gpgsm
130 + --enable-large-secmem
131 +
132 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
133 + GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
134 + KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config"
135 + LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config"
136 + LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config"
137 + NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config"
138 +
139 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
140 + )
141 +
142 + if use prefix && use usb; then
143 + # bug #649598
144 + append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
145 + fi
146 +
147 + # bug #663142
148 + if use user-socket; then
149 + myconf+=( --enable-run-gnupg-user-socket )
150 + fi
151 +
152 + # glib fails and picks up clang's internal stdint.h causing weird errors
153 + tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h
154 +
155 + # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist.
156 + # As of GnuPG 2.3, the mailprog substitution is used for the binary called
157 + # by wks-client & wks-server; and if it's autodetected but not not exist at
158 + # build time, then then 'gpg-wks-client --send' functionality will not
159 + # work. This has an unwanted side-effect in stage3 builds: there was a
160 + # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating
161 + # the build where the install guide previously make the user chose the
162 + # logger & mta early in the install.
163 +
164 + econf "${myconf[@]}"
165 +}
166 +
167 +src_compile() {
168 + default
169 +
170 + use doc && emake -C doc html
171 +}
172 +
173 +src_test() {
174 + # bug #638574
175 + use tofu && export TESTFLAGS=--parallel
176 +
177 + default
178 +}
179 +
180 +src_install() {
181 + default
182 +
183 + use tools &&
184 + dobin \
185 + tools/{convert-from-106,gpg-check-pattern} \
186 + tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
187 + tools/make-dns-cert
188 +
189 + dosym gpg /usr/bin/gpg2
190 + dosym gpgv /usr/bin/gpgv2
191 + echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
192 + echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
193 +
194 + dodir /etc/env.d
195 + echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
196 +
197 + use doc && dodoc doc/gnupg.html/* doc/*.png
198 +
199 + systemd_douserunit doc/examples/systemd-user/*.{service,socket}
200 +}