1 |
alonbl 08/01/10 16:34:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gnupg-1.4.8-r1.ebuild |
5 |
Removed: gnupg-1.4.8.ebuild |
6 |
Log: |
7 |
ecc bump |
8 |
(Portage version: 2.1.4_rc14) |
9 |
|
10 |
Revision Changes Path |
11 |
1.313 app-crypt/gnupg/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.313&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?rev=1.313&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/ChangeLog?r1=1.312&r2=1.313 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v |
20 |
retrieving revision 1.312 |
21 |
retrieving revision 1.313 |
22 |
diff -u -r1.312 -r1.313 |
23 |
--- ChangeLog 10 Jan 2008 14:36:43 -0000 1.312 |
24 |
+++ ChangeLog 10 Jan 2008 16:34:51 -0000 1.313 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-crypt/gnupg |
27 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.312 2008/01/10 14:36:43 alonbl Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.313 2008/01/10 16:34:51 alonbl Exp $ |
30 |
+ |
31 |
+*gnupg-1.4.8-r1 (10 Jan 2008) |
32 |
+ |
33 |
+ 10 Jan 2008; Alon Bar-Lev <alonbl@g.o> |
34 |
+ -files/gnupg-1.4.8-ecc-glue.patch, -gnupg-1.4.8.ebuild, |
35 |
+ +gnupg-1.4.8-r1.ebuild: |
36 |
+ ecc bump |
37 |
|
38 |
10 Jan 2008; Alon Bar-Lev <alonbl@g.o> |
39 |
-files/gnupg-1.9.20-fbsd.patch, -files/gnupg-1.9.20-fbsd-gcc41.patch, |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-crypt/gnupg/gnupg-1.4.8-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-1.4.8-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/gnupg/gnupg-1.4.8-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: gnupg-1.4.8-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.8-r1.ebuild,v 1.1 2008/01/10 16:34:51 alonbl Exp $ |
53 |
|
54 |
inherit eutils flag-o-matic |
55 |
|
56 |
ECCVER="0.2.0" |
57 |
ECCVER_GNUPG="1.4.8" |
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 |
!bindist? ( |
65 |
idea? ( ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz ) |
66 |
ecc? ( http://www.calcurco.cat/eccGnuPG/src/${ECC_PATCH}.bz2 ) |
67 |
)" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
72 |
IUSE="bzip2 bindist curl ecc idea ldap nls readline selinux smartcard static usb zlib linguas_ru" |
73 |
|
74 |
COMMON_DEPEND=" |
75 |
ldap? ( net-nds/openldap ) |
76 |
bzip2? ( app-arch/bzip2 ) |
77 |
zlib? ( sys-libs/zlib ) |
78 |
curl? ( net-misc/curl ) |
79 |
virtual/mta |
80 |
readline? ( sys-libs/readline ) |
81 |
smartcard? ( dev-libs/libusb ) |
82 |
usb? ( dev-libs/libusb )" |
83 |
|
84 |
RDEPEND="!static? ( ${COMMON_DEPEND} ) |
85 |
selinux? ( sec-policy/selinux-gnupg ) |
86 |
nls? ( virtual/libintl )" |
87 |
|
88 |
DEPEND="${COMMON_DEPEND} |
89 |
dev-lang/perl |
90 |
nls? ( sys-devel/gettext )" |
91 |
|
92 |
S="${WORKDIR}/${MY_P}" |
93 |
|
94 |
src_unpack() { |
95 |
unpack ${A} |
96 |
cd "${S}" |
97 |
|
98 |
if use idea; then |
99 |
if use bindist; then |
100 |
einfo "Skipping IDEA support to comply with binary distribution (bug #148907)." |
101 |
else |
102 |
ewarn "Please read http://www.gnupg.org/(en)/faq/why-not-idea.html" |
103 |
mv "${WORKDIR}"/idea.c "${S}"/cipher/idea.c || \ |
104 |
ewarn "failed to insert IDEA module" |
105 |
fi |
106 |
fi |
107 |
|
108 |
if use ecc; then |
109 |
if use bindist; then |
110 |
einfo "Skipping ECC patch to comply with binary distribution (bug #148907)." |
111 |
else |
112 |
sed -i \ |
113 |
"s/- VERSION='${ECCVER_GNUPG}'/- VERSION='${PV}'/" \ |
114 |
"${WORKDIR}/${ECC_PATCH}" |
115 |
sed -i \ |
116 |
"s/+ VERSION='${ECCVER_GNUPG}-ecc${ECCVER}'/+ VERSION='${PV}-ecc${ECCVER}'/" \ |
117 |
"${WORKDIR}/${ECC_PATCH}" |
118 |
|
119 |
epatch "${WORKDIR}/${ECC_PATCH}" |
120 |
fi |
121 |
fi |
122 |
|
123 |
# install RU man page in right location |
124 |
epatch "${FILESDIR}"/${PN}-1.4.6-badruman.patch |
125 |
|
126 |
# Fix PIC definitions |
127 |
sed -i -e 's:PIC:__PIC__:' mpi/i386/mpih-{add,sub}1.S intl/relocatable.c |
128 |
sed -i -e 's:if PIC:ifdef __PIC__:' mpi/sparc32v8/mpih-mul{1,2}.S |
129 |
} |
130 |
|
131 |
src_compile() { |
132 |
# Certain sparc32 machines seem to have trouble building correctly with |
133 |
# -mcpu enabled. While this is not a gnupg problem, it is a temporary |
134 |
# fix until the gcc problem can be tracked down. |
135 |
if [ "${ARCH}" == "sparc" ] && [ "${PROFILE_ARCH}" == "sparc" ]; then |
136 |
filter-flags -mcpu=supersparc -mcpu=v8 -mcpu=v7 |
137 |
fi |
138 |
|
139 |
# 'USE=static' support was requested in #29299 |
140 |
use static &&append-ldflags -static |
141 |
|
142 |
append-ldflags $(bindnow-flags) |
143 |
|
144 |
# fix compile problem on ppc64 |
145 |
use ppc64 && myconf="${myconf} --disable-asm" |
146 |
|
147 |
econf \ |
148 |
$(use_enable ldap) \ |
149 |
--enable-mailto \ |
150 |
--enable-hkp \ |
151 |
--enable-finger \ |
152 |
$(use_with !zlib included-zlib) \ |
153 |
$(use_with curl libcurl /usr) \ |
154 |
$(use_enable nls) \ |
155 |
$(use_enable bzip2) \ |
156 |
$(use_enable smartcard card-support) \ |
157 |
$(use_enable selinux selinux-support) \ |
158 |
--disable-capabilities \ |
159 |
$(use_with readline) \ |
160 |
$(use_with usb libusb /usr) \ |
161 |
$(use_enable static) \ |
162 |
--enable-static-rnd=linux \ |
163 |
--libexecdir=/usr/libexec \ |
164 |
--enable-noexecstack \ |
165 |
${myconf} || die |
166 |
# this is because it will run some tests directly |
167 |
gnupg_fixcheckperms |
168 |
emake || die |
169 |
} |
170 |
|
171 |
src_install() { |
172 |
gnupg_fixcheckperms |
173 |
make DESTDIR="${D}" install || die |
174 |
|
175 |
# keep the documentation in /usr/share/doc/... |
176 |
rm -rf "${D}/usr/share/gnupg/FAQ" "${D}/usr/share/gnupg/faq.html" |
177 |
|
178 |
dodoc AUTHORS BUGS ChangeLog NEWS PROJECTS README THANKS \ |
179 |
TODO VERSION doc/{FAQ,HACKING,DETAILS,OpenPGP,faq.raw} |
180 |
|
181 |
docinto sgml |
182 |
dodoc doc/*.sgml |
183 |
|
184 |
dohtml doc/faq.html |
185 |
|
186 |
exeinto /usr/libexec/gnupg |
187 |
doexe tools/make-dns-cert |
188 |
|
189 |
# install RU documentation in right location |
190 |
if use linguas_ru |
191 |
then |
192 |
cp doc/gpg.ru.1 "${T}/gpg.1" |
193 |
doman -i18n=ru "${T}/gpg.1" |
194 |
fi |
195 |
} |
196 |
|
197 |
gnupg_fixcheckperms() { |
198 |
# GnuPG does weird things for testing that it build correctly |
199 |
# as we as for the additional tests. It WILL fail with perms 770 :-(. |
200 |
# See bug #80044 |
201 |
if has userpriv ${FEATURES}; then |
202 |
einfo "Fixing permissions in check directory" |
203 |
chown -R portage:portage "${S}/checks" |
204 |
chmod -R ugo+rw "${S}/checks" |
205 |
chmod ugo+rw "${S}/checks" |
206 |
fi |
207 |
} |
208 |
|
209 |
src_test() { |
210 |
gnupg_fixcheckperms |
211 |
einfo "Running tests" |
212 |
emake check |
213 |
ret=$? |
214 |
if [ $ret -ne 0 ]; then |
215 |
die "Some tests failed! Please report to the Gentoo Bugzilla" |
216 |
fi |
217 |
} |
218 |
|
219 |
pkg_postinst() { |
220 |
ewarn "If you are using a non-Linux system, or a kernel older than 2.6.9," |
221 |
ewarn "you MUST make the gpg binary setuid." |
222 |
echo |
223 |
if use !bindist && use idea; then |
224 |
elog |
225 |
elog "IDEA" |
226 |
elog "you have compiled ${PN} with support for the IDEA algorithm, this code" |
227 |
elog "is distributed under the GPL in countries where it is permitted to do so" |
228 |
elog "by law." |
229 |
elog |
230 |
elog "Please read http://www.gnupg.org/(en)/faq/why-not-idea.html for more information." |
231 |
elog |
232 |
ewarn "If you are in a country where the IDEA algorithm is patented, you are permitted" |
233 |
ewarn "to use it at no cost for 'non revenue generating data transfer between private" |
234 |
ewarn "individuals'." |
235 |
ewarn |
236 |
ewarn "Countries where the patent applies are listed here" |
237 |
ewarn "http://www.mediacrypt.com/_contents/10_idea/101030_ea_pi.asp" |
238 |
ewarn |
239 |
ewarn "Further information and other licenses are availble from http://www.mediacrypt.com/" |
240 |
ewarn |
241 |
fi |
242 |
if use !bindist && use ecc; then |
243 |
ewarn |
244 |
ewarn "The elliptical curves patch is experimental" |
245 |
ewarn "Further info available at http://alumnes.eps.udl.es/%7Ed4372211/index.en.html" |
246 |
fi |
247 |
elog |
248 |
elog "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg" |
249 |
elog |
250 |
elog "If you wish to view images emerge:" |
251 |
elog "media-gfx/xloadimage, media-gfx/xli or any other viewer" |
252 |
elog "Remember to use photo-viewer option in configuration file to activate the right viewer" |
253 |
} |
254 |
|
255 |
|
256 |
|
257 |
-- |
258 |
gentoo-commits@l.g.o mailing list |