Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/
Date: Mon, 23 Jan 2017 18:18:08
Message-Id: 1485195477.46ad5f2c2f4e5257c67d42350bac3519a93f598b.alonbl@gentoo
1 commit: 46ad5f2c2f4e5257c67d42350bac3519a93f598b
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 23 18:17:27 2017 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 23 18:17:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46ad5f2c
7
8 app-crypt/gnupg: revert removal of gnupg-2.0 missing stable
9
10 Package-Manager: portage-2.3.0
11 RepoMan-Options: --force
12
13 app-crypt/gnupg/Manifest | 1 +
14 app-crypt/gnupg/gnupg-2.0.28.ebuild | 167 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 168 insertions(+)
16
17 diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
18 index 457703c..06d5e99 100644
19 --- a/app-crypt/gnupg/Manifest
20 +++ b/app-crypt/gnupg/Manifest
21 @@ -1,3 +1,4 @@
22 DIST gnupg-1.4.21.tar.bz2 3689305 SHA256 6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276 SHA512 619e0fbc10310c7e55d129027e2945791fe91a0884b1d6f53acb4b2e380d1c6e71d1a516a59876182c5c70a4227d44a74ceda018c343b5291fa9a5d6de77c984 WHIRLPOOL eb596be347dd90be93d381fe405e50f5808160b546705493bc9d817d521ea236a2374648e6c2cab396f54bba74de4caf2b92e894df3a17aa339f014ef8cc8802
23 +DIST gnupg-2.0.28.tar.bz2 4435779 SHA256 ce092ee4ab58fd19b9fb34a460c07b06c348f4360dd5dd4886d041eb521a534c SHA512 7e786fe0648d5ea453f9c7524fec4bd7d5eec26d28f723acf3cb2f7ec9c400c339f0926a179411876c3f8e08b06942dcec643dc930caf58239bbd4932f4bd3c1 WHIRLPOOL ccf7427e54a545914e89677618055a114b4c9dc4db48669a2fc726fced98475df4ed27c93bd180f1250d147111ee663c736cdf4e1d8afdc40ed967cdffd0eb66
24 DIST gnupg-2.1.15.tar.bz2 5723689 SHA256 c28c1a208f1b8ad63bdb6b88d252f6734ff4d33de6b54e38494b11d49e00ffdd SHA512 69c943e853e1a37e8b17b3bc34e1503f14bc8f189fa9f3ac6644bcc98ccce6eaef64da20ff9dd1c8de3a7789ea577167984ccf3ac286cac50752e6f7c2f42ab1 WHIRLPOOL 4c5a8cd4e8b7196f4a355ce7739cf6e23c43817414e10bbba219117e4e51c4c618ffb5dbce27cb836a2171eda58e003d5ddf78d4af09a813c2a1729963413151
25 DIST gnupg-2.1.17.tar.bz2 5970042 SHA256 c5dc54db432209fa8f9bdb071c8fb60a765ff28e363150e30bdd4543160243cb SHA512 f826100be4f0480b9a2c68a51dd668e0fd551fd250a37dbe906fe5a89c658b4861a0567038bf687473de9901e268809c1b8d8c200008e082a3ace189d9829b9c WHIRLPOOL d70fa5ae0a90d5c9fa594d79cdb9bc1528b7db1a35d23ee7d3f047b4fb275d02bd8f5e6ccb0a798fedf539c8c384d3713295785183266de43fe3cb978c47916b
26
27 diff --git a/app-crypt/gnupg/gnupg-2.0.28.ebuild b/app-crypt/gnupg/gnupg-2.0.28.ebuild
28 new file mode 100644
29 index 00000000..32ba69f
30 --- /dev/null
31 +++ b/app-crypt/gnupg/gnupg-2.0.28.ebuild
32 @@ -0,0 +1,167 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI="5"
38 +
39 +inherit eutils flag-o-matic toolchain-funcs
40 +
41 +DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
42 +HOMEPAGE="http://www.gnupg.org/"
43 +SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
44 +# SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="bzip2 doc ldap nls mta readline static selinux smartcard tools usb"
50 +
51 +COMMON_DEPEND_LIBS="
52 + >=dev-libs/libassuan-2
53 + >=dev-libs/libgcrypt-1.5:0=
54 + >=dev-libs/libgpg-error-1.11
55 + >=dev-libs/libksba-1.0.7
56 + >=dev-libs/pth-1.3.7
57 + >=net-misc/curl-7.10
58 + sys-libs/zlib
59 + bzip2? ( app-arch/bzip2 )
60 + readline? ( sys-libs/readline )
61 + smartcard? ( usb? ( virtual/libusb:0 ) )
62 + ldap? ( net-nds/openldap )"
63 +COMMON_DEPEND_BINS="app-crypt/pinentry"
64 +
65 +# Existence of executables is checked during configuration.
66 +DEPEND="${COMMON_DEPEND_LIBS}
67 + ${COMMON_DEPEND_BINS}
68 + static? (
69 + >=dev-libs/libassuan-2[static-libs]
70 + >=dev-libs/libgcrypt-1.4:0=[static-libs]
71 + >=dev-libs/libgpg-error-1.11[static-libs]
72 + >=dev-libs/libksba-1.0.7[static-libs]
73 + >=dev-libs/pth-1.3.7[static-libs]
74 + >=net-misc/curl-7.10[static-libs]
75 + sys-libs/zlib[static-libs]
76 + bzip2? ( app-arch/bzip2[static-libs] )
77 + )
78 + nls? ( sys-devel/gettext )
79 + doc? ( sys-apps/texinfo )"
80 +
81 +RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
82 + ${COMMON_DEPEND_BINS}
83 + mta? ( virtual/mta )
84 + !<=app-crypt/gnupg-2.0.1
85 + selinux? ( sec-policy/selinux-gpg )
86 + nls? ( virtual/libintl )"
87 +
88 +REQUIRED_USE="smartcard? ( !static )"
89 +
90 +src_prepare() {
91 + epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
92 + epatch_user
93 +}
94 +
95 +src_configure() {
96 + local myconf=()
97 +
98 + # 'USE=static' support was requested:
99 + # gnupg1: bug #29299
100 + # gnupg2: bug #159623
101 + use static && append-ldflags -static
102 +
103 + if use smartcard; then
104 + myconf+=(
105 + --enable-scdaemon
106 + $(use_enable usb ccid-driver)
107 + )
108 + else
109 + myconf+=( --disable-scdaemon )
110 + fi
111 +
112 + if use elibc_SunOS || use elibc_AIX; then
113 + myconf+=( --disable-symcryptrun )
114 + else
115 + myconf+=( --enable-symcryptrun )
116 + fi
117 +
118 + # glib fails and picks up clang's internal stdint.h causing weird errors
119 + [[ ${CC} == *clang ]] && export gl_cv_absolute_stdint_h=/usr/include/stdint.h
120 +
121 + econf \
122 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
123 + --enable-gpg \
124 + --enable-gpgsm \
125 + --enable-agent \
126 + --enable-large-secmem \
127 + --without-adns \
128 + "${myconf[@]}" \
129 + $(use_enable bzip2) \
130 + $(use_enable nls) \
131 + $(use_enable mta mailto) \
132 + $(use_enable ldap) \
133 + $(use_with readline) \
134 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
135 +}
136 +
137 +src_compile() {
138 + default
139 +
140 + if use doc; then
141 + cd doc
142 + emake html
143 + fi
144 +}
145 +
146 +src_install() {
147 + default
148 +
149 + use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
150 + tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
151 +
152 + emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
153 + rm "${ED}"/usr/share/gnupg/help* || die
154 +
155 + dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
156 + doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
157 +
158 + dosym gpg2 /usr/bin/gpg
159 + dosym gpgv2 /usr/bin/gpgv
160 + dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
161 + dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
162 + dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
163 + if use ldap; then
164 + dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
165 + fi
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 +}