Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/gnupg: ChangeLog gnupg-2.0.17-r3.ebuild
Date: Sun, 03 Jul 2011 23:24:05
Message-Id: 20110703232351.992812004B@flycatcher.gentoo.org
1 robbat2 11/07/03 23:23:51
2
3 Modified: ChangeLog
4 Added: gnupg-2.0.17-r3.ebuild
5 Log:
6 Bug #373959: critical patch to enable signing w/ libgcrypt-1.5.0.
7
8 (Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.416 app-crypt/gnupg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.416&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.416&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.415&r2=1.416
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v
20 retrieving revision 1.415
21 retrieving revision 1.416
22 diff -p -w -b -B -u -u -r1.415 -r1.416
23 --- ChangeLog 9 Jun 2011 14:13:22 -0000 1.415
24 +++ ChangeLog 3 Jul 2011 23:23:51 -0000 1.416
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-crypt/gnupg
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.415 2011/06/09 14:13:22 c1pher Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.416 2011/07/03 23:23:51 robbat2 Exp $
30 +
31 +*gnupg-2.0.17-r3 (03 Jul 2011)
32 +
33 + 03 Jul 2011; Robin H. Johnson <robbat2@g.o> +gnupg-2.0.17-r3.ebuild,
34 + +files/gnupg-2.0.17-libgrcrypt150-bugfix.patch:
35 + Bug #373959: critical patch to enable signing w/ libgcrypt-1.5.0.
36
37 *gnupg-2.0.17-r2 (09 Jun 2011)
38
39
40
41
42 1.1 app-crypt/gnupg/gnupg-2.0.17-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-2.0.17-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-2.0.17-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gnupg-2.0.17-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-2.0.17-r3.ebuild,v 1.1 2011/07/03 23:23:51 robbat2 Exp $
52
53 EAPI="4"
54
55 inherit flag-o-matic toolchain-funcs
56
57 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
58 HOMEPAGE="http://www.gnupg.org/"
59 SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
60 # SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
61
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
65 IUSE="adns bzip2 doc ldap nls static selinux smartcard usb"
66
67 COMMON_DEPEND_LIBS="
68 >=dev-libs/libassuan-2
69 >=dev-libs/libgcrypt-1.4
70 >=dev-libs/libgpg-error-1.7
71 >=dev-libs/libksba-1.0.7
72 >=dev-libs/pth-1.3.7
73 >=net-misc/curl-7.10
74 adns? ( >=net-libs/adns-1.4 )
75 bzip2? ( app-arch/bzip2 )
76 smartcard? ( usb? ( =virtual/libusb-0* ) )
77 ldap? ( net-nds/openldap )"
78 COMMON_DEPEND_BINS="|| ( app-crypt/pinentry app-crypt/pinentry-qt )"
79
80 # Existence of executables is checked during configuration.
81 DEPEND="${COMMON_DEPEND_LIBS}
82 ${COMMON_DEPEND_BINS}
83 static? (
84 >=dev-libs/libassuan-2[static-libs]
85 >=dev-libs/libgcrypt-1.4[static-libs]
86 >=dev-libs/libgpg-error-1.7[static-libs]
87 >=dev-libs/libksba-1.0.7[static-libs]
88 )
89 nls? ( sys-devel/gettext )
90 doc? ( sys-apps/texinfo )"
91
92 RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
93 ${COMMON_DEPEND_BINS}
94 virtual/mta
95 !app-crypt/gpg-agent
96 !<=app-crypt/gnupg-2.0.1
97 selinux? ( sec-policy/selinux-gnupg )
98 nls? ( virtual/libintl )"
99
100 REQUIRED_USE="smartcard? ( !static )"
101
102 src_prepare() {
103 epatch "${FILESDIR}"/${P}-gpgsm-gencert.patch
104 epatch "${FILESDIR}"/${P}-libgrcrypt150-bugfix.patch
105 }
106
107 src_configure() {
108 local myconf=
109
110 # 'USE=static' support was requested:
111 # gnupg1: bug #29299
112 # gnupg2: bug #159623
113 use static && append-ldflags -static
114
115 if use smartcard; then
116 myconf+=" --enable-scdaemon $(use_enable usb ccid-driver)"
117 else
118 myconf+=" --disable-scdaemon"
119 fi
120
121 econf \
122 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
123 --enable-gpg \
124 --enable-gpgsm \
125 --enable-agent \
126 ${myconf} \
127 $(use_with adns) \
128 $(use_enable bzip2) \
129 $(use_enable !elibc_SunOS symcryptrun) \
130 $(use_enable nls) \
131 $(use_enable ldap) \
132 CC_FOR_BUILD="$(tc-getBUILD_CC)"
133 }
134
135 src_compile() {
136 emake
137
138 if use doc; then
139 cd doc
140 emake html
141 fi
142 }
143
144 src_install() {
145 emake DESTDIR="${D}" install
146 emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
147 rm -r "${ED}usr/share/gnupg/help"*
148
149 dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
150 doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
151
152 dosym gpg2 /usr/bin/gpg
153 dosym gpgv2 /usr/bin/gpgv
154 dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
155 dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
156 dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
157 if use ldap; then
158 dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
159 fi
160 echo ".so man1/gpg2.1" > "${ED}usr/share/man/man1/gpg.1"
161 echo ".so man1/gpgv2.1" > "${ED}usr/share/man/man1/gpgv.1"
162
163 dodir /etc/env.d
164 echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >>"${ED}etc/env.d/30gnupg"
165
166 if use doc; then
167 dohtml doc/gnupg.html/* doc/*.png
168 fi
169 }
170
171 pkg_postinst() {
172 elog "If you wish to view images emerge:"
173 elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
174 elog "Remember to use photo-viewer option in configuration file to activate"
175 elog "the right viewer."
176 elog
177 if use smartcard; then
178 elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
179 use usb && elog " - a CCID-compatible reader, used directly through dev-libs/libusb;"
180 elog " - sys-apps/pcsc-lite and a compatible reader device;"
181 elog " - dev-libs/openct and a compatible reader device;"
182 elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
183 elog ""
184 elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
185 elog "app-crypt/ccid first."
186 fi
187
188 ewarn "Please remember to restart gpg-agent if a different version"
189 ewarn "of the agent is currently used. If you are unsure of the gpg"
190 ewarn "agent you are using please run 'killall gpg-agent',"
191 ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
192 }