1 |
commit: 062d17ba4270d4196657960bd40dd6bf2f0bd2ab |
2 |
Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 11:08:22 2015 +0000 |
4 |
Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 11:10:20 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=062d17ba |
7 |
|
8 |
app-crypt/gnupg: New upstream version 2.1.9 |
9 |
|
10 |
This version includes a fix for ed25519 ssh keys that resolves |
11 |
Bug: 561292 |
12 |
|
13 |
Package-Manager: portage-2.2.20.1 |
14 |
|
15 |
app-crypt/gnupg/Manifest | 1 + |
16 |
app-crypt/gnupg/gnupg-2.1.9.ebuild | 169 +++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 170 insertions(+) |
18 |
|
19 |
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest |
20 |
index 672fa82..d97c85b 100644 |
21 |
--- a/app-crypt/gnupg/Manifest |
22 |
+++ b/app-crypt/gnupg/Manifest |
23 |
@@ -6,3 +6,4 @@ DIST gnupg-2.0.29.tar.bz2 4416251 SHA256 68ed6b386ba78425b05a60e8ee22785ff0fef19 |
24 |
DIST gnupg-2.1.6.tar.bz2 4917722 SHA256 5e599ad542199f3bd733eed2b88a539d1b4c3beda2dbab0ff69f1896f52e92fd SHA512 ae8aafe770336c83badf5610fe37f4ddc488786e3604780627893b636161d8407f3fd782538799e2b2a02e31c97468464372017fa52b5d9ed1bd31c85d9b3763 WHIRLPOOL 2136c526242a4e741c0cbc9aec102ba634234efd679d62db9aae3b2ab8fe9f8ad9b8fdb7d1f2d43982e6a072d5f5072d0744d8bb434d61f49ff24e868c902f80 |
25 |
DIST gnupg-2.1.7.tar.bz2 4918583 SHA256 c18a3776d47fec98892d51d28b6574ef16bf0a25eabb0956231058aaf2e7846e SHA512 7c3efb9bd5d1509a9b2a6264293542b3d5db979bf443754f96d77322a96e18cba2ac6142665459d161eb7222fae44ce5b89eff88dca1c7abf47449fcafd3eb00 WHIRLPOOL da7ef3a02b186736c8d105ca627d2c889781465ecfdb4c4861f8af748a7d68a7c05a106c73bdfe44e7037807deb822c231d615cc1e1fcdd9b01e7632945ac094 |
26 |
DIST gnupg-2.1.8.tar.bz2 4900705 SHA256 a3b8d01e4690715d42e8f289493c85413766f3fa935e4fe7e5ff5b0f6e2781a3 SHA512 80176fda032c921d3716fba3d3a264f9951464fd578a9d8d60673585efef17e20eec4d026921ab7ab2d7bd4dbf0a2b94a33a58c07acb747eebcb758e42bafd57 WHIRLPOOL 32e2e959363529cfd9ca857f823970b6cdd6497a72515aa9e75c2a680c83acea55a38d8de19b16c7327f92c0ab326e76a37952014b317afe2689c211c0d1965b |
27 |
+DIST gnupg-2.1.9.tar.bz2 4925167 SHA256 1cb7633a57190beb66f9249cb7446603229b273d4d89331b75c652fa4a29f7b6 SHA512 c19b8cac42b7060caada230b77f36a0b0ed0a05efd519818c5b4057ef0fcb16602f2f3ade2409de2ef353a9e2acc3e5fa106a4449c6929a36a599a82194c0ee0 WHIRLPOOL 105b83e82330a00084a0e9f3d96c8788ac2c9e7831beea0ea42786df4e378dc9e8f2c1a31f12af9c53d363aa71810cd231afdf8f20eab424fea5f59b103033a9 |
28 |
|
29 |
diff --git a/app-crypt/gnupg/gnupg-2.1.9.ebuild b/app-crypt/gnupg/gnupg-2.1.9.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..a296661 |
32 |
--- /dev/null |
33 |
+++ b/app-crypt/gnupg/gnupg-2.1.9.ebuild |
34 |
@@ -0,0 +1,169 @@ |
35 |
+# Copyright 1999-2015 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI="5" |
40 |
+ |
41 |
+inherit eutils flag-o-matic toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
44 |
+HOMEPAGE="http://www.gnupg.org/" |
45 |
+MY_P="${P/_/-}" |
46 |
+SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
47 |
+ |
48 |
+LICENSE="GPL-3" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86" |
51 |
+IUSE="bzip2 doc +gnutls ldap nls readline static selinux smartcard tools usb" |
52 |
+ |
53 |
+COMMON_DEPEND_LIBS=" |
54 |
+ dev-libs/npth |
55 |
+ >=dev-libs/libassuan-2 |
56 |
+ >=dev-libs/libgcrypt-1.6.2[threads] |
57 |
+ >=dev-libs/libgpg-error-1.17 |
58 |
+ >=dev-libs/libksba-1.0.7 |
59 |
+ >=net-misc/curl-7.10 |
60 |
+ gnutls? ( >=net-libs/gnutls-3.0 ) |
61 |
+ sys-libs/zlib |
62 |
+ ldap? ( net-nds/openldap ) |
63 |
+ bzip2? ( app-arch/bzip2 ) |
64 |
+ readline? ( sys-libs/readline:= ) |
65 |
+ smartcard? ( usb? ( virtual/libusb:0 ) ) |
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 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" |
138 |
+} |
139 |
+ |
140 |
+src_compile() { |
141 |
+ default |
142 |
+ |
143 |
+ if use doc; then |
144 |
+ cd doc |
145 |
+ emake html |
146 |
+ fi |
147 |
+} |
148 |
+ |
149 |
+src_install() { |
150 |
+ default |
151 |
+ |
152 |
+ use tools && dobin tools/{convert-from-106,gpg-check-pattern} \ |
153 |
+ tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert} |
154 |
+ |
155 |
+ emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA |
156 |
+ rm "${ED}"/usr/share/gnupg/help* || die |
157 |
+ |
158 |
+ dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \ |
159 |
+ doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help* |
160 |
+ |
161 |
+ dosym gpg2 /usr/bin/gpg |
162 |
+ dosym gpgv2 /usr/bin/gpgv |
163 |
+ echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1 |
164 |
+ echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1 |
165 |
+ |
166 |
+ dodir /etc/env.d |
167 |
+ echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg |
168 |
+ |
169 |
+ if use doc; then |
170 |
+ dohtml doc/gnupg.html/* doc/*.png |
171 |
+ fi |
172 |
+} |
173 |
+ |
174 |
+pkg_postinst() { |
175 |
+ elog "If you wish to view images emerge:" |
176 |
+ elog "media-gfx/xloadimage, media-gfx/xli or any other viewer" |
177 |
+ elog "Remember to use photo-viewer option in configuration file to activate" |
178 |
+ elog "the right viewer." |
179 |
+ elog |
180 |
+ |
181 |
+ if use smartcard; then |
182 |
+ elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of" |
183 |
+ use usb && elog " - a CCID-compatible reader, used directly through libusb;" |
184 |
+ elog " - sys-apps/pcsc-lite and a compatible reader device;" |
185 |
+ elog " - dev-libs/openct and a compatible reader device;" |
186 |
+ elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces." |
187 |
+ elog "" |
188 |
+ elog "General hint: you probably want to try installing sys-apps/pcsc-lite and" |
189 |
+ elog "app-crypt/ccid first." |
190 |
+ fi |
191 |
+ |
192 |
+ ewarn "Please remember to restart gpg-agent if a different version" |
193 |
+ ewarn "of the agent is currently used. If you are unsure of the gpg" |
194 |
+ ewarn "agent you are using please run 'killall gpg-agent'," |
195 |
+ ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'." |
196 |
+ |
197 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
198 |
+ elog "If upgrading from a version prior than 2.1 you might have to re-import" |
199 |
+ elog "secret keys after restarting the gpg-agent as the new version is using" |
200 |
+ elog "a new storage mechanism." |
201 |
+ elog "You can migrate the keys using gpg --import \$HOME/.gnupg/secring.gpg" |
202 |
+ fi |
203 |
+} |