1 |
commit: 62084db04f626f1a6a6632940528cb79938bd396 |
2 |
Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 14 18:00:34 2016 +0000 |
4 |
Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 14 18:01:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62084db0 |
7 |
|
8 |
app-crypt/gnupg: New upstream version 2.1.14 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
app-crypt/gnupg/Manifest | 1 + |
13 |
app-crypt/gnupg/gnupg-2.1.14.ebuild | 158 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 159 insertions(+) |
15 |
|
16 |
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest |
17 |
index d0e513d..c07bda5 100644 |
18 |
--- a/app-crypt/gnupg/Manifest |
19 |
+++ b/app-crypt/gnupg/Manifest |
20 |
@@ -6,3 +6,4 @@ DIST gnupg-2.0.29.tar.bz2 4416251 SHA256 68ed6b386ba78425b05a60e8ee22785ff0fef19 |
21 |
DIST gnupg-2.0.30.tar.bz2 4414652 SHA256 e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71 SHA512 e60a57f7dc74b44f884fd50d5a9c51cef7df8c098644ebab9ef7d945a40b0e4a285d0dc80b10fe39d8e4c2cc9d6cbbe800a0ddae54883180dc755fe47ced3314 WHIRLPOOL 007315882becc1204edf6833a13610284ce7e1c73429fc3b4170c35ba61c645299f811f01b1bc0506b1cf94ce0de23af4cea33f51cf97397ec61caa15ce3ac6c |
22 |
DIST gnupg-2.1.12.tar.bz2 5510723 SHA256 ac34929d2400a58a349963865442ee6cdd75e500a8d5df083d29835e88bfc506 SHA512 fdf24d4980ba4011840fd2316a856db2bf50e531071c2bfb899af2b4f5580a9f2992f85a451670a7121d04b608bfb147cefdca1c6f6eb55bc23ecfe5052639e6 WHIRLPOOL ee5a748afee3aa4f8318c1bc1bcbd09232a71853291211f3c5cd8cc44fb70d126185ae9c13086247cd22a9b13c2102f4fa0553e25496c5152f2ce34dc2505d10 |
23 |
DIST gnupg-2.1.13.tar.bz2 5545361 SHA256 4f9d83a6221daa60130fa79f0b1d37d6c20fffdd0320b640c7a597c5b6219675 SHA512 37b6271cdd68fc1d0ec848fa742932afbe8fc662597bcf20398585b51171e7abce40d99ab02f816160b34f7a8d1c60c6e43d8e0192ed107a521579b870b3ebd3 WHIRLPOOL 4b97e579bf988a2142bdb83420feef5e0549db0f0a17f2ee8b890e22cb54b38166459d25b05c7f9dcbb14dd5363bf08c24f377d09038884110e29dbbfeb9b73d |
24 |
+DIST gnupg-2.1.14.tar.bz2 5706058 SHA256 9450dee9693b6a12bf0c374dae77b66c30f69ff8f35fc9266ab8dd76998eba42 SHA512 9f098bf589ecb841eb65fccad3ffd72c6645c8e186ddababf93c657173c485ed103f8f8a7d8bfeb86cfb9e065a1211c7d48b116c86d6aa97ed1b8c8a85e0a840 WHIRLPOOL 4a41fb68f14a53e6e1c26abb77ec66312167d61032720841f55102f2159938a1a0773c0610d9b5200a7fcf7a12c28913bccdf69e984b8f04b2dc56c72d4a8329 |
25 |
|
26 |
diff --git a/app-crypt/gnupg/gnupg-2.1.14.ebuild b/app-crypt/gnupg/gnupg-2.1.14.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..4ce6f6e |
29 |
--- /dev/null |
30 |
+++ b/app-crypt/gnupg/gnupg-2.1.14.ebuild |
31 |
@@ -0,0 +1,158 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI="5" |
37 |
+ |
38 |
+inherit eutils flag-o-matic toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" |
41 |
+HOMEPAGE="http://www.gnupg.org/" |
42 |
+MY_P="${P/_/-}" |
43 |
+SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
48 |
+IUSE="bzip2 doc +gnutls ldap nls readline selinux smartcard tofu tools usb" |
49 |
+ |
50 |
+COMMON_DEPEND_LIBS=" |
51 |
+ dev-libs/npth |
52 |
+ >=dev-libs/libassuan-2.4.3 |
53 |
+ >=dev-libs/libgcrypt-1.7.1 |
54 |
+ >=dev-libs/libgpg-error-1.24 |
55 |
+ >=dev-libs/libksba-1.2.0 |
56 |
+ >=net-misc/curl-7.10 |
57 |
+ gnutls? ( >=net-libs/gnutls-3.0:0= ) |
58 |
+ sys-libs/zlib |
59 |
+ ldap? ( net-nds/openldap ) |
60 |
+ bzip2? ( app-arch/bzip2 ) |
61 |
+ readline? ( sys-libs/readline:0= ) |
62 |
+ smartcard? ( usb? ( virtual/libusb:0 ) ) |
63 |
+ tofu? ( >=dev-db/sqlite-3.7 ) |
64 |
+ " |
65 |
+COMMON_DEPEND_BINS="app-crypt/pinentry |
66 |
+ !app-crypt/dirmngr" |
67 |
+ |
68 |
+# Existence of executables is checked during configuration. |
69 |
+DEPEND="${COMMON_DEPEND_LIBS} |
70 |
+ ${COMMON_DEPEND_BINS} |
71 |
+ nls? ( sys-devel/gettext ) |
72 |
+ doc? ( sys-apps/texinfo )" |
73 |
+ |
74 |
+RDEPEND="${COMMON_DEPEND_LIBS} |
75 |
+ ${COMMON_DEPEND_BINS} |
76 |
+ selinux? ( sec-policy/selinux-gpg ) |
77 |
+ nls? ( virtual/libintl )" |
78 |
+ |
79 |
+S="${WORKDIR}/${MY_P}" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ epatch_user |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ local myconf=() |
87 |
+ |
88 |
+ if use smartcard; then |
89 |
+ myconf+=( |
90 |
+ --enable-scdaemon |
91 |
+ $(use_enable usb ccid-driver) |
92 |
+ ) |
93 |
+ else |
94 |
+ myconf+=( --disable-scdaemon ) |
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 |
+ # glib fails and picks up clang's internal stdint.h causing weird errors |
104 |
+ [[ ${CC} == *clang ]] && \ |
105 |
+ export gl_cv_absolute_stdint_h=/usr/include/stdint.h |
106 |
+ |
107 |
+ econf \ |
108 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
109 |
+ --enable-gpg \ |
110 |
+ --enable-gpgsm \ |
111 |
+ --enable-large-secmem \ |
112 |
+ --without-adns \ |
113 |
+ "${myconf[@]}" \ |
114 |
+ $(use_enable bzip2) \ |
115 |
+ $(use_enable gnutls) \ |
116 |
+ $(use_with ldap) \ |
117 |
+ $(use_enable nls) \ |
118 |
+ $(use_with readline) \ |
119 |
+ $(use_enable tofu) \ |
120 |
+ $(use_enable tools wks-tools) \ |
121 |
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ default |
126 |
+ |
127 |
+ if use doc; then |
128 |
+ cd doc |
129 |
+ emake html |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ default |
135 |
+ |
136 |
+ use tools && dobin tools/{convert-from-106,gpg-check-pattern} \ |
137 |
+ tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert} |
138 |
+ |
139 |
+ emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA |
140 |
+ # The help*txt files are read from the datadir by GnuPG directly. |
141 |
+ # They do not work if compressed or moved! |
142 |
+ #rm "${ED}"/usr/share/gnupg/help* || die |
143 |
+ |
144 |
+ dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \ |
145 |
+ doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help* |
146 |
+ |
147 |
+ dosym gpg2 /usr/bin/gpg |
148 |
+ dosym gpgv2 /usr/bin/gpgv |
149 |
+ echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1 |
150 |
+ echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1 |
151 |
+ |
152 |
+ dodir /etc/env.d |
153 |
+ echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg |
154 |
+ |
155 |
+ if use doc; then |
156 |
+ dohtml doc/gnupg.html/* doc/*.png |
157 |
+ fi |
158 |
+} |
159 |
+ |
160 |
+pkg_postinst() { |
161 |
+ elog "If you wish to view images emerge:" |
162 |
+ elog "media-gfx/xloadimage, media-gfx/xli or any other viewer" |
163 |
+ elog "Remember to use photo-viewer option in configuration file to activate" |
164 |
+ elog "the right viewer." |
165 |
+ elog |
166 |
+ |
167 |
+ if use smartcard; then |
168 |
+ elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of" |
169 |
+ use usb && elog " - a CCID-compatible reader, used directly through libusb;" |
170 |
+ elog " - sys-apps/pcsc-lite and a compatible reader device;" |
171 |
+ elog " - dev-libs/openct and a compatible reader device;" |
172 |
+ elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces." |
173 |
+ elog "" |
174 |
+ elog "General hint: you probably want to try installing sys-apps/pcsc-lite and" |
175 |
+ elog "app-crypt/ccid first." |
176 |
+ fi |
177 |
+ |
178 |
+ ewarn "Please remember to restart gpg-agent if a different version" |
179 |
+ ewarn "of the agent is currently used. If you are unsure of the gpg" |
180 |
+ ewarn "agent you are using please run 'killall gpg-agent'," |
181 |
+ ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'." |
182 |
+ |
183 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
184 |
+ elog "If upgrading from a version prior than 2.1 you might have to re-import" |
185 |
+ elog "secret keys after restarting the gpg-agent as the new version is using" |
186 |
+ elog "a new storage mechanism." |
187 |
+ elog "You can migrate the keys using gpg --import \$HOME/.gnupg/secring.gpg" |
188 |
+ fi |
189 |
+} |