1 |
commit: a26eed4c18b762c759c049a4901b8c92c06fc42c |
2 |
Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 4 13:17:17 2019 +0000 |
4 |
Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 4 13:17:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a26eed4c |
7 |
|
8 |
app-crypt/gnupg: New upstream version 2.2.16 |
9 |
|
10 |
Signed-off-by: Kristian Fiskerstrand <k_f <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
|
13 |
app-crypt/gnupg/Manifest | 1 + |
14 |
app-crypt/gnupg/gnupg-2.2.16.ebuild | 153 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 154 insertions(+) |
16 |
|
17 |
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest |
18 |
index ffc0c9cfd34..1c79ca2ba10 100644 |
19 |
--- a/app-crypt/gnupg/Manifest |
20 |
+++ b/app-crypt/gnupg/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST gnupg-2.2.10.tar.bz2 6659484 BLAKE2B d0270ca40bd70fe113fa4283c307d7d04370be |
22 |
DIST gnupg-2.2.12.tar.bz2 6682303 BLAKE2B 8470ab8bf386d3524ce57ef1a1f6ac74d8cf2d7c35062b95c668b37586603c8e0817e410f4a0a807256e42896c11116897b7118b29e471184b2fa871ad4ba048 SHA512 30de9757bb60a5cb6bf0dc2c8da5f4742c54affec3fcd0bcbf66f28f2812149afec5db70dcb6ba592101de4bdc479d1ba0b47c53c8b8d4765ddff32fa51c26c8 |
23 |
DIST gnupg-2.2.14.tar.bz2 6707735 BLAKE2B feedb1c776e8d43e43905e8a8c1487bd88e8effc59e94baf308cb29a5feea5d9c666c78b50147d65a259dc89af241c2a2bf07a72c417617e5238e0fdbbc2b17f SHA512 9d5216dee085efe6de300579d8fb773a5a55df639d5a435708611a974df522dd60dc995fbfcaad98065475dbeb731bbba19ecc3273e78b9b45fccff640dde69b |
24 |
DIST gnupg-2.2.15.tar.bz2 6705912 BLAKE2B 145bd174cb74c6a1180de76a6d46b40d2434ced61bb9aa3eaddeb0079cd05634529c9b062e475d3ca9d35b3af3b62b39a79ef0efbb476cb9ebb9e2099ad13ae0 SHA512 7c6f0092d384fd71fc7a1c905ce23ae98df42ce131ee09fc190c275f9c8d0912be344b0782244cccb5b3938322ef3cfff8ed1ec7e949e761478b8c5110dde36a |
25 |
+DIST gnupg-2.2.16.tar.bz2 6699113 BLAKE2B 7738c5d9d5789dc56b4429e2b62403859365b53c834b0c53a6387fb77f1242ec4b0195205394f01e64fac6c7ce1235738421ea04bc6fb843c3fea1c10a243217 SHA512 0e0040905cc4d1d9d29e184cfeda520b43990e4ec459212537c0ce6092de987157e05b1d1a3022398d9b3cbaeea0f58a7e686745f96933e5ac26be4229162247 |
26 |
|
27 |
diff --git a/app-crypt/gnupg/gnupg-2.2.16.ebuild b/app-crypt/gnupg/gnupg-2.2.16.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..2b55c80c4d0 |
30 |
--- /dev/null |
31 |
+++ b/app-crypt/gnupg/gnupg-2.2.16.ebuild |
32 |
@@ -0,0 +1,153 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit flag-o-matic systemd toolchain-funcs |
39 |
+ |
40 |
+MY_P="${P/_/-}" |
41 |
+ |
42 |
+DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
43 |
+HOMEPAGE="http://www.gnupg.org/" |
44 |
+SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
+IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb user-socket wks-server" |
50 |
+ |
51 |
+# Existence of executables is checked during configuration. |
52 |
+DEPEND="!app-crypt/dirmngr |
53 |
+ >=dev-libs/libassuan-2.5.0 |
54 |
+ >=dev-libs/libgcrypt-1.7.3 |
55 |
+ >=dev-libs/libgpg-error-1.28 |
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 |
+ "${FILESDIR}/${PN}-2.2.14-quiet-sending.patch" |
87 |
+) |
88 |
+ |
89 |
+src_configure() { |
90 |
+ local myconf=() |
91 |
+ |
92 |
+ if use prefix && use usb; then |
93 |
+ # bug #649598 |
94 |
+ append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0" |
95 |
+ fi |
96 |
+ |
97 |
+ if use elibc_SunOS || use elibc_AIX; then |
98 |
+ myconf+=( --disable-symcryptrun ) |
99 |
+ else |
100 |
+ myconf+=( --enable-symcryptrun ) |
101 |
+ fi |
102 |
+ |
103 |
+ #bug 663142 |
104 |
+ if use user-socket; then |
105 |
+ myconf+=( --enable-run-gnupg-user-socket ) |
106 |
+ fi |
107 |
+ |
108 |
+ # glib fails and picks up clang's internal stdint.h causing weird errors |
109 |
+ [[ ${CC} == *clang ]] && \ |
110 |
+ export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
111 |
+ |
112 |
+ # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist. |
113 |
+ # As of GnuPG 2.3, the mailprog substitution is used for the binary called |
114 |
+ # by wks-client & wks-server; and if it's autodetected but not not exist at |
115 |
+ # build time, then then 'gpg-wks-client --send' functionality will not |
116 |
+ # work. This has an unwanted side-effect in stage3 builds: there was a |
117 |
+ # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating |
118 |
+ # the build where the install guide previously make the user chose the |
119 |
+ # logger & mta early in the install. |
120 |
+ |
121 |
+ econf \ |
122 |
+ "${myconf[@]}" \ |
123 |
+ $(use_enable bzip2) \ |
124 |
+ $(use_enable nls) \ |
125 |
+ $(use_enable smartcard scdaemon) \ |
126 |
+ $(use_enable ssl gnutls) \ |
127 |
+ $(use_enable tofu) \ |
128 |
+ $(use_enable usb ccid-driver) \ |
129 |
+ $(use_enable wks-server wks-tools) \ |
130 |
+ $(use_with ldap) \ |
131 |
+ $(use_with readline) \ |
132 |
+ --with-mailprog=/usr/libexec/sendmail \ |
133 |
+ --disable-ntbtls \ |
134 |
+ --enable-all-tests \ |
135 |
+ --enable-gpg \ |
136 |
+ --enable-gpgsm \ |
137 |
+ --enable-large-secmem \ |
138 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" \ |
139 |
+ GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config" \ |
140 |
+ KSBA_CONFIG="${EROOT}/usr/bin/ksba-config" \ |
141 |
+ LIBASSUAN_CONFIG="${EROOT}/usr/bin/libassuan-config" \ |
142 |
+ LIBGCRYPT_CONFIG="${EROOT}/usr/bin/${CHOST}-libgcrypt-config" \ |
143 |
+ NPTH_CONFIG="${EROOT}/usr/bin/npth-config" \ |
144 |
+ $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g') |
145 |
+} |
146 |
+ |
147 |
+src_compile() { |
148 |
+ default |
149 |
+ |
150 |
+ use doc && emake -C doc html |
151 |
+} |
152 |
+ |
153 |
+src_test() { |
154 |
+ #Bug: 638574 |
155 |
+ use tofu && export TESTFLAGS=--parallel |
156 |
+ default |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ default |
161 |
+ |
162 |
+ use tools && |
163 |
+ dobin \ |
164 |
+ tools/{convert-from-106,gpg-check-pattern} \ |
165 |
+ tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \ |
166 |
+ tools/make-dns-cert |
167 |
+ |
168 |
+ dosym gpg /usr/bin/gpg2 |
169 |
+ dosym gpgv /usr/bin/gpgv2 |
170 |
+ echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die |
171 |
+ echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die |
172 |
+ |
173 |
+ dodir /etc/env.d |
174 |
+ echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die |
175 |
+ |
176 |
+ use doc && dodoc doc/gnupg.html/* doc/*.png |
177 |
+ |
178 |
+ systemd_douserunit doc/examples/systemd-user/*.{service,socket} |
179 |
+} |
180 |
+ |
181 |
+pkg_postinst() { |
182 |
+ elog "See https://wiki.gentoo.org/wiki/GnuPG for documentation on gnupg" |
183 |
+ elog |
184 |
+ elog "If you wish to use 'gpg-wks-client --send', you must install an MTA!" |
185 |
+} |