Gentoo Archives: gentoo-commits

From: "Kristian Fiskerstrand (k_f)" <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/gnupg: gnupg-1.4.19.ebuild ChangeLog
Date: Fri, 27 Feb 2015 20:57:13
Message-Id: 20150227205708.BB29112B03@oystercatcher.gentoo.org
1 k_f 15/02/27 20:57:08
2
3 Modified: ChangeLog
4 Added: gnupg-1.4.19.ebuild
5 Log:
6 Version bump of 1.4 series. This release mitigates two new side channel
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xFED5002857C1ABFA!)
9
10 Revision Changes Path
11 1.578 app-crypt/gnupg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.578&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.578&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.577&r2=1.578
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v
20 retrieving revision 1.577
21 retrieving revision 1.578
22 diff -u -r1.577 -r1.578
23 --- ChangeLog 18 Feb 2015 17:42:40 -0000 1.577
24 +++ ChangeLog 27 Feb 2015 20:57:08 -0000 1.578
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-crypt/gnupg
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.577 2015/02/18 17:42:40 k_f Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.578 2015/02/27 20:57:08 k_f Exp $
30 +
31 +*gnupg-1.4.19 (27 Feb 2015)
32 +
33 + 27 Feb 2015; Kristian Fiskerstrand <k_f@g.o> +gnupg-1.4.19.ebuild:
34 + Version bump of 1.4 series. This release mitigates two new side channel
35
36 *gnupg-2.0.27 (18 Feb 2015)
37
38
39
40
41 1.1 app-crypt/gnupg/gnupg-1.4.19.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-1.4.19.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/gnupg/gnupg-1.4.19.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnupg-1.4.19.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.19.ebuild,v 1.1 2015/02/27 20:57:08 k_f Exp $
51
52 EAPI="5"
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 ECCVER="0.2.0"
57 ECCVER_GNUPG="1.4.9"
58 ECC_PATCH="${PN}-${ECCVER_GNUPG}-ecc${ECCVER}.diff"
59 MY_P=${P/_/}
60
61 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
62 HOMEPAGE="http://www.gnupg.org/"
63 SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
68 IUSE="bzip2 curl ldap mta nls readline selinux smartcard static usb zlib linguas_ru"
69
70 COMMON_DEPEND="
71 ldap? ( net-nds/openldap )
72 bzip2? ( app-arch/bzip2 )
73 zlib? ( sys-libs/zlib )
74 curl? ( net-misc/curl )
75 mta? ( virtual/mta )
76 readline? ( sys-libs/readline )
77 smartcard? ( =virtual/libusb-0* )
78 usb? ( =virtual/libusb-0* )"
79
80 RDEPEND="!static? ( ${COMMON_DEPEND} )
81 selinux? ( sec-policy/selinux-gpg )
82 nls? ( virtual/libintl )"
83
84 DEPEND="${COMMON_DEPEND}
85 dev-lang/perl
86 nls? ( sys-devel/gettext )"
87
88 S="${WORKDIR}/${MY_P}"
89
90 src_prepare() {
91 # Install RU man page in right location
92 sed -e "/^man_MANS =/s/ gpg\.ru\.1//" -i doc/Makefile.in || die "sed doc/Makefile.in failed"
93
94 # bug#469388
95 sed -i -e 's/--batch --dearmor/--homedir . --batch --dearmor/' checks/Makefile.in
96
97 # Fix PIC definitions
98 sed -i -e 's:PIC:__PIC__:' mpi/i386/mpih-{add,sub}1.S intl/relocatable.c \
99 || die "sed PIC failed"
100 sed -i -e 's:if PIC:ifdef __PIC__:' mpi/sparc32v8/mpih-mul{1,2}.S || \
101 die "sed PIC failed"
102 }
103
104 src_configure() {
105 # Certain sparc32 machines seem to have trouble building correctly with
106 # -mcpu enabled. While this is not a gnupg problem, it is a temporary
107 # fix until the gcc problem can be tracked down.
108 if [ "${ARCH}" == "sparc" ] && [ "${PROFILE_ARCH}" == "sparc" ]; then
109 filter-flags -mcpu=supersparc -mcpu=v8 -mcpu=v7
110 fi
111
112 # 'USE=static' support was requested in #29299
113 use static && append-ldflags -static
114
115 econf \
116 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
117 $(use_enable ldap) \
118 $(use_enable mta mailto) \
119 --enable-hkp \
120 --enable-finger \
121 $(use_with !zlib included-zlib) \
122 $(use_with curl libcurl /usr) \
123 $(use_enable nls) \
124 $(use_enable bzip2) \
125 $(use_enable smartcard card-support) \
126 $(use_enable selinux selinux-support) \
127 --without-capabilities \
128 $(use_with readline) \
129 $(use_with usb libusb /usr) \
130 --enable-static-rnd=linux \
131 --libexecdir="${EPREFIX}/usr/libexec" \
132 --enable-noexecstack \
133 CC_FOR_BUILD=$(tc-getBUILD_CC) \
134 ${myconf}
135 }
136
137 src_install() {
138 default
139
140 # keep the documentation in /usr/share/doc/...
141 rm -rf "${ED}usr/share/gnupg/FAQ" "${ED}usr/share/gnupg/faq.html" || die
142
143 dodoc AUTHORS BUGS ChangeLog NEWS PROJECTS README THANKS \
144 TODO VERSION doc/{FAQ,HACKING,DETAILS,OpenPGP}
145
146 exeinto /usr/libexec/gnupg
147 doexe tools/make-dns-cert
148
149 # install RU documentation in right location
150 if use linguas_ru; then
151 cp doc/gpg.ru.1 "${T}/gpg.1" || die
152 doman -i18n=ru "${T}/gpg.1"
153 fi
154 }
155
156 pkg_postinst() {
157 ewarn "If you are using a non-Linux system, or a kernel older than 2.6.9,"
158 ewarn "you MUST make the gpg binary setuid."
159 echo
160 # if use !bindist && use ecc; then
161 # ewarn
162 # ewarn "The elliptical curves patch is experimental"
163 # ewarn "Further info available at http://alumnes.eps.udl.es/%7Ed4372211/index.en.html"
164 # fi
165 elog
166 elog "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
167 elog
168 elog "If you wish to view images emerge:"
169 elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
170 elog "Remember to use photo-viewer option in configuration file to activate the right viewer"
171 }