Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/
Date: Tue, 26 Jan 2016 20:11:08
Message-Id: 1453838731.15c1fdbb4d9f5de2366c4a05986de1a6da714410.k_f@gentoo
1 commit: 15c1fdbb4d9f5de2366c4a05986de1a6da714410
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 26 20:05:14 2016 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 26 20:05:31 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15c1fdbb
7
8 app-crypt/gnupg: Version bump of Modern to 2.1.11
9
10 Package-Manager: portage-2.2.27
11
12 app-crypt/gnupg/Manifest | 1 +
13 app-crypt/gnupg/gnupg-2.1.11.ebuild | 173 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 174 insertions(+)
15
16 diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
17 index 5dee812..704f0f7 100644
18 --- a/app-crypt/gnupg/Manifest
19 +++ b/app-crypt/gnupg/Manifest
20 @@ -5,5 +5,6 @@ DIST gnupg-2.0.27.tar.bz2 4424679 SHA256 57646d3e4b919fa1e5c8f1c0cf5fe1215333041
21 DIST gnupg-2.0.28.tar.bz2 4435779 SHA256 ce092ee4ab58fd19b9fb34a460c07b06c348f4360dd5dd4886d041eb521a534c SHA512 7e786fe0648d5ea453f9c7524fec4bd7d5eec26d28f723acf3cb2f7ec9c400c339f0926a179411876c3f8e08b06942dcec643dc930caf58239bbd4932f4bd3c1 WHIRLPOOL ccf7427e54a545914e89677618055a114b4c9dc4db48669a2fc726fced98475df4ed27c93bd180f1250d147111ee663c736cdf4e1d8afdc40ed967cdffd0eb66
22 DIST gnupg-2.0.29.tar.bz2 4416251 SHA256 68ed6b386ba78425b05a60e8ee22785ff0fef190bdc6f1c612f19a58819d4ac9 SHA512 23b452c740ab5c1e1e37337ae0583dd3b15df58a5bb5639c0c2aef1fb603e0a7d90a257ac99b0d9dfb68b81fa061c0c64e0bfd256c00d64e2f432192f5052f37 WHIRLPOOL f3d59a9453b4a65c726788c35b065ffc9cde0b746705080cd3491c73439786d791da29cf8f5bf1e5594a0e39cfaec214e346fe18ec3acf0b425dc396aa189f33
23 DIST gnupg-2.1.10.tar.bz2 5173253 SHA256 93bd58d81771a4fa488566e5d2e13b1fd7afc86789401eb41731882abfd26cf9 SHA512 ceea93a7e7d30e07839bcc52d4246fd5be1ec81a8c4d4d62059e2b0c0e58fab07a1531016f82bcc506340653d66c73541dd3f5897df7691abeb4068d94957003 WHIRLPOOL 01f92f6020b79b373d4d6879cc39913c575c67a52c1bd425770322de0ce5a9fbd796d800cbb41a15553fd30a6c8f85a794e0b4c09420a2b49f6cb0542cdb52fb
24 +DIST gnupg-2.1.11.tar.bz2 5224007 SHA256 b7b0fb2c8c5d47d7ec916d4a1097c0ddcb94a12bb1c0ac424ad86b1ee316b61a SHA512 b39f3fb461ad879b1909808434c4b03dab4d1d79aa674fbc88e3d50960184c0c25a840206ff32b760672f1b2153253f4d7a88eb726d8662f629fa04b6739ad31 WHIRLPOOL 486d623e73172a6d7dc7a6e4a5b411e70e0002a960f0398833377b8e8d79e5456a73f945db7c8bbca6ff7fd33fbfb49ca587e3a393094ce0a16d86cd906f7f09
25 DIST gnupg-2.1.8.tar.bz2 4900705 SHA256 a3b8d01e4690715d42e8f289493c85413766f3fa935e4fe7e5ff5b0f6e2781a3 SHA512 80176fda032c921d3716fba3d3a264f9951464fd578a9d8d60673585efef17e20eec4d026921ab7ab2d7bd4dbf0a2b94a33a58c07acb747eebcb758e42bafd57 WHIRLPOOL 32e2e959363529cfd9ca857f823970b6cdd6497a72515aa9e75c2a680c83acea55a38d8de19b16c7327f92c0ab326e76a37952014b317afe2689c211c0d1965b
26 DIST gnupg-2.1.9.tar.bz2 4925167 SHA256 1cb7633a57190beb66f9249cb7446603229b273d4d89331b75c652fa4a29f7b6 SHA512 c19b8cac42b7060caada230b77f36a0b0ed0a05efd519818c5b4057ef0fcb16602f2f3ade2409de2ef353a9e2acc3e5fa106a4449c6929a36a599a82194c0ee0 WHIRLPOOL 105b83e82330a00084a0e9f3d96c8788ac2c9e7831beea0ea42786df4e378dc9e8f2c1a31f12af9c53d363aa71810cd231afdf8f20eab424fea5f59b103033a9
27
28 diff --git a/app-crypt/gnupg/gnupg-2.1.11.ebuild b/app-crypt/gnupg/gnupg-2.1.11.ebuild
29 new file mode 100644
30 index 0000000..4b96da9
31 --- /dev/null
32 +++ b/app-crypt/gnupg/gnupg-2.1.11.ebuild
33 @@ -0,0 +1,173 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI="5"
39 +
40 +inherit eutils flag-o-matic toolchain-funcs
41 +
42 +DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
43 +HOMEPAGE="http://www.gnupg.org/"
44 +MY_P="${P/_/-}"
45 +SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
50 +IUSE="bzip2 doc +gnutls ldap nls readline static selinux smartcard tofu tools usb"
51 +
52 +COMMON_DEPEND_LIBS="
53 + dev-libs/npth
54 + >=dev-libs/libassuan-2.4.1
55 + >=dev-libs/libgcrypt-1.6.2[threads]
56 + >=dev-libs/libgpg-error-1.21
57 + >=dev-libs/libksba-1.2.0
58 + >=net-misc/curl-7.10
59 + gnutls? ( >=net-libs/gnutls-3.0 )
60 + sys-libs/zlib
61 + ldap? ( net-nds/openldap )
62 + bzip2? ( app-arch/bzip2 )
63 + readline? ( sys-libs/readline:0= )
64 + smartcard? ( usb? ( virtual/libusb:0 ) )
65 + tofu? ( >=dev-db/sqlite-3.7 )
66 + "
67 +COMMON_DEPEND_BINS="app-crypt/pinentry
68 + !app-crypt/dirmngr"
69 +
70 +# Existence of executables is checked during configuration.
71 +DEPEND="${COMMON_DEPEND_LIBS}
72 + ${COMMON_DEPEND_BINS}
73 + static? (
74 + >=dev-libs/libassuan-2[static-libs]
75 + >=dev-libs/libgcrypt-1.6.2[static-libs]
76 + >=dev-libs/libgpg-error-1.17[static-libs]
77 + >=dev-libs/libksba-1.0.7[static-libs]
78 + dev-libs/npth[static-libs]
79 + >=net-misc/curl-7.10[static-libs]
80 + sys-libs/zlib[static-libs]
81 + bzip2? ( app-arch/bzip2[static-libs] )
82 + )
83 + nls? ( sys-devel/gettext )
84 + doc? ( sys-apps/texinfo )"
85 +
86 +RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
87 + ${COMMON_DEPEND_BINS}
88 + selinux? ( sec-policy/selinux-gpg )
89 + nls? ( virtual/libintl )"
90 +
91 +REQUIRED_USE="smartcard? ( !static )"
92 +
93 +S="${WORKDIR}/${MY_P}"
94 +
95 +src_prepare() {
96 + epatch_user
97 +}
98 +
99 +src_configure() {
100 + local myconf=()
101 +
102 + # 'USE=static' support was requested:
103 + # gnupg1: bug #29299
104 + # gnupg2: bug #159623
105 + use static && append-ldflags -static
106 +
107 + if use smartcard; then
108 + myconf+=(
109 + --enable-scdaemon
110 + $(use_enable usb ccid-driver)
111 + )
112 + else
113 + myconf+=( --disable-scdaemon )
114 + fi
115 +
116 + if use elibc_SunOS || use elibc_AIX; then
117 + myconf+=( --disable-symcryptrun )
118 + else
119 + myconf+=( --enable-symcryptrun )
120 + fi
121 +
122 + # glib fails and picks up clang's internal stdint.h causing weird errors
123 + [[ ${CC} == clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
124 +
125 + econf \
126 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
127 + --enable-gpg \
128 + --enable-gpgsm \
129 + --enable-large-secmem \
130 + --without-adns \
131 + "${myconf[@]}" \
132 + $(use_enable bzip2) \
133 + $(use_enable gnutls) \
134 + $(use_with ldap) \
135 + $(use_enable nls) \
136 + $(use_with readline) \
137 + $(use_enable tofu) \
138 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
139 +}
140 +
141 +src_compile() {
142 + default
143 +
144 + if use doc; then
145 + cd doc
146 + emake html
147 + fi
148 +}
149 +
150 +src_install() {
151 + default
152 +
153 + use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
154 + tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
155 +
156 + emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
157 + # The help*txt files are read from the datadir by GnuPG directly.
158 + # They do not work if compressed or moved!
159 + #rm "${ED}"/usr/share/gnupg/help* || die
160 +
161 + dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
162 + doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
163 +
164 + dosym gpg2 /usr/bin/gpg
165 + dosym gpgv2 /usr/bin/gpgv
166 + echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
167 + echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
168 +
169 + dodir /etc/env.d
170 + echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
171 +
172 + if use doc; then
173 + dohtml doc/gnupg.html/* doc/*.png
174 + fi
175 +}
176 +
177 +pkg_postinst() {
178 + elog "If you wish to view images emerge:"
179 + elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
180 + elog "Remember to use photo-viewer option in configuration file to activate"
181 + elog "the right viewer."
182 + elog
183 +
184 + if use smartcard; then
185 + elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
186 + use usb && elog " - a CCID-compatible reader, used directly through libusb;"
187 + elog " - sys-apps/pcsc-lite and a compatible reader device;"
188 + elog " - dev-libs/openct and a compatible reader device;"
189 + elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
190 + elog ""
191 + elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
192 + elog "app-crypt/ccid first."
193 + fi
194 +
195 + ewarn "Please remember to restart gpg-agent if a different version"
196 + ewarn "of the agent is currently used. If you are unsure of the gpg"
197 + ewarn "agent you are using please run 'killall gpg-agent',"
198 + ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
199 +
200 + if [[ -n ${REPLACING_VERSIONS} ]]; then
201 + elog "If upgrading from a version prior than 2.1 you might have to re-import"
202 + elog "secret keys after restarting the gpg-agent as the new version is using"
203 + elog "a new storage mechanism."
204 + elog "You can migrate the keys using gpg --import \$HOME/.gnupg/secring.gpg"
205 + fi
206 +}