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