1 |
commit: ff7cd1c0ff19f55d94b284fbac72865b504fb8d3 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 17 07:41:30 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 17 07:41:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff7cd1c0 |
7 |
|
8 |
app-crypt/gnupg: [QA] add 2.2.31 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/812668 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
app-crypt/gnupg/Manifest | 1 + |
14 |
app-crypt/gnupg/gnupg-2.2.31.ebuild | 152 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 153 insertions(+) |
16 |
|
17 |
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest |
18 |
index 4fb44746d87..5a890d00833 100644 |
19 |
--- a/app-crypt/gnupg/Manifest |
20 |
+++ b/app-crypt/gnupg/Manifest |
21 |
@@ -2,4 +2,5 @@ DIST gnupg-2.2.16-scdaemon_shared-access.patch 2586 BLAKE2B 42fd5482c4e86751ce62 |
22 |
DIST gnupg-2.2.27.tar.bz2 7191555 BLAKE2B d652aad382cf07cc458b29ff82718edd47457d8236dcbeee51f22d88503be141f009e9ea45b6dafe614115d9558fe371509579e58ce17a5f04540a31aa406ea3 SHA512 cf336962116c9c08ac80b1299654b94948033ef51d6d5e7f54c2f07bbf7d92c7b0bddb606ceee2cdd837063f519b8d59af5a82816b840a0fc47d90c07b0e95ab |
23 |
DIST gnupg-2.2.29.tar.bz2 7215986 BLAKE2B 04b777730b8fcbe8d93dfc8985aadd6bc7385ac2ac9684e6248cb3ae6d008daae5aa976ffa3bae27fe9e89bc2c4c1d4ae81dcaa259fb08d13f894f00f12072e9 SHA512 12645e230fc6aa4811420ef33def6baa590e847ecdf7e5f8b96eb49122e6406cbdba4595d0b52fa26700d5d5def67acb4ed7dfe7f778e496d4d21ccbef3c476b |
24 |
DIST gnupg-2.2.30.tar.bz2 7215171 BLAKE2B 3754bdab2bfe56bb111079cf606b71664ae7fbbffd840b03f1e7a52d483248686ec8ba42b79ecf14a2da5a07f4f356df62b91ebe7af550254d7e2ec018b20a32 SHA512 942adac2e0eff654d54c2fe03501bfa20fa5e58575253ca57e9ad585ec2b96e14cc108e0191f3f586234a3b1675fe17dc2cf9e7790280a57166f84ddeb5d5d4f |
25 |
+DIST gnupg-2.2.31.tar.bz2 7212188 BLAKE2B 57a2b6c6ea491137a708e18a0119502621b7bdf0591818d19beb8b08a521a7dbf60472243e1723f53acbfb9a5de612b8e5040c45dc847bdda26012244edb11be SHA512 2f6fa200e08d6b8993b482e5825bea6083afc8686c4e1ae80386b36ae49e1c2d73066c508edaa359a7794cb26ba7a00f81555a906fa422d1117e41415cfa2fea |
26 |
DIST gnupg-2.3.2.tar.bz2 7589445 BLAKE2B f7e35ed553ea89cdb073abb1432f67fa00bb625f6e686e534f96bca11d88f09ea272b3cb0d6706e4bce2c023f8c5b8d628742aa2f60752a2e605132cd32f62ed SHA512 2747cbe38546f500d165f024ebb2dc5be70fa68d20702af3f61e97db685eba94caf65307293137c76ea6cfcc189ed24aaee025c80cd33f26609e5fe512bdda73 |
27 |
|
28 |
diff --git a/app-crypt/gnupg/gnupg-2.2.31.ebuild b/app-crypt/gnupg/gnupg-2.2.31.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..81662988beb |
31 |
--- /dev/null |
32 |
+++ b/app-crypt/gnupg/gnupg-2.2.31.ebuild |
33 |
@@ -0,0 +1,152 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+inherit flag-o-matic systemd toolchain-funcs |
40 |
+ |
41 |
+MY_P="${P/_/-}" |
42 |
+ |
43 |
+DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
44 |
+HOMEPAGE="https://gnupg.org/" |
45 |
+SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
46 |
+ |
47 |
+LICENSE="GPL-3" |
48 |
+SLOT="0" |
49 |
+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" |
50 |
+IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb user-socket wks-server" |
51 |
+ |
52 |
+# Existence of executables is checked during configuration. |
53 |
+DEPEND=">=dev-libs/libassuan-2.5.0 |
54 |
+ >=dev-libs/libgcrypt-1.8.0 |
55 |
+ >=dev-libs/libgpg-error-1.29 |
56 |
+ >=dev-libs/libksba-1.3.4 |
57 |
+ >=dev-libs/npth-1.2 |
58 |
+ >=net-misc/curl-7.10 |
59 |
+ bzip2? ( app-arch/bzip2 ) |
60 |
+ ldap? ( net-nds/openldap ) |
61 |
+ readline? ( sys-libs/readline:0= ) |
62 |
+ smartcard? ( usb? ( virtual/libusb:1 ) ) |
63 |
+ ssl? ( >=net-libs/gnutls-3.0:0= ) |
64 |
+ sys-libs/zlib |
65 |
+ tofu? ( >=dev-db/sqlite-3.7 )" |
66 |
+ |
67 |
+RDEPEND="${DEPEND} |
68 |
+ app-crypt/pinentry |
69 |
+ nls? ( virtual/libintl ) |
70 |
+ selinux? ( sec-policy/selinux-gpg ) |
71 |
+ wks-server? ( virtual/mta )" |
72 |
+ |
73 |
+BDEPEND="virtual/pkgconfig |
74 |
+ doc? ( sys-apps/texinfo ) |
75 |
+ nls? ( sys-devel/gettext )" |
76 |
+ |
77 |
+S="${WORKDIR}/${MY_P}" |
78 |
+ |
79 |
+DOCS=( |
80 |
+ ChangeLog NEWS README THANKS TODO VERSION |
81 |
+ doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER |
82 |
+) |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" |
86 |
+) |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ |
91 |
+ # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode, |
92 |
+ # idea borrowed from libdbus, see |
93 |
+ # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6 |
94 |
+ # |
95 |
+ # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl', |
96 |
+ # which in turn requires discovery in Autoconf, something that upstream deeply resents. |
97 |
+ sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \ |
98 |
+ -i doc/examples/systemd-user/gpg-agent-ssh.socket || die |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ local myconf=( |
103 |
+ $(use_enable bzip2) |
104 |
+ $(use_enable nls) |
105 |
+ $(use_enable smartcard scdaemon) |
106 |
+ $(use_enable ssl gnutls) |
107 |
+ $(use_enable tofu) |
108 |
+ $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') |
109 |
+ $(use_enable wks-server wks-tools) |
110 |
+ $(use_with ldap) |
111 |
+ $(use_with readline) |
112 |
+ --with-mailprog=/usr/libexec/sendmail |
113 |
+ --disable-ntbtls |
114 |
+ --enable-all-tests |
115 |
+ --enable-gpg |
116 |
+ --enable-gpgsm |
117 |
+ --enable-large-secmem |
118 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" |
119 |
+ GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" |
120 |
+ KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" |
121 |
+ LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" |
122 |
+ LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" |
123 |
+ NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" |
124 |
+ $("${S}/configure" --help | grep -o -- '--without-.*-prefix') |
125 |
+ ) |
126 |
+ |
127 |
+ if use prefix && use usb; then |
128 |
+ # bug #649598 |
129 |
+ append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
130 |
+ fi |
131 |
+ |
132 |
+ #bug 663142 |
133 |
+ if use user-socket; then |
134 |
+ myconf+=( --enable-run-gnupg-user-socket ) |
135 |
+ fi |
136 |
+ |
137 |
+ # glib fails and picks up clang's internal stdint.h causing weird errors |
138 |
+ [[ ${CC} == *clang ]] && \ |
139 |
+ export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
140 |
+ |
141 |
+ # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
142 |
+ # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
143 |
+ # by wks-client & wks-server; and if it's autodetected but not not exist at |
144 |
+ # build time, then then 'gpg-wks-client --send' functionality will not |
145 |
+ # work. This has an unwanted side-effect in stage3 builds: there was a |
146 |
+ # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
147 |
+ # the build where the install guide previously make the user chose the |
148 |
+ # logger & mta early in the install. |
149 |
+ |
150 |
+ econf "${myconf[@]}" |
151 |
+} |
152 |
+ |
153 |
+src_compile() { |
154 |
+ default |
155 |
+ |
156 |
+ use doc && emake -C doc html |
157 |
+} |
158 |
+ |
159 |
+src_test() { |
160 |
+ #Bug: 638574 |
161 |
+ use tofu && export TESTFLAGS=--parallel |
162 |
+ default |
163 |
+} |
164 |
+ |
165 |
+src_install() { |
166 |
+ default |
167 |
+ |
168 |
+ use tools && |
169 |
+ dobin \ |
170 |
+ tools/{convert-from-106,gpg-check-pattern} \ |
171 |
+ tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
172 |
+ tools/make-dns-cert |
173 |
+ |
174 |
+ dosym gpg /usr/bin/gpg2 |
175 |
+ dosym gpgv /usr/bin/gpgv2 |
176 |
+ echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
177 |
+ echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
178 |
+ |
179 |
+ dodir /etc/env.d |
180 |
+ echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
181 |
+ |
182 |
+ use doc && dodoc doc/gnupg.html/* doc/*.png |
183 |
+ |
184 |
+ systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
185 |
+} |