summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2006-12-06 21:16:21 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2006-12-06 21:16:21 +0000
commitfbdaaf87e7ac5f6e8dcb2d2ca879468ce110da88 (patch)
tree68e467ef0b9fa4a34032552d254d0a9eb2834ecc /app-crypt/gnupg
parentRemove old virtual/x11 dependency. (diff)
downloadhistorical-fbdaaf87e7ac5f6e8dcb2d2ca879468ce110da88.tar.gz
historical-fbdaaf87e7ac5f6e8dcb2d2ca879468ce110da88.tar.bz2
historical-fbdaaf87e7ac5f6e8dcb2d2ca879468ce110da88.zip
Version bump, closes bug#156476
Package-Manager: portage-2.1.1-r2
Diffstat (limited to 'app-crypt/gnupg')
-rw-r--r--app-crypt/gnupg/ChangeLog9
-rw-r--r--app-crypt/gnupg/Manifest25
-rw-r--r--app-crypt/gnupg/files/digest-gnupg-1.4.69
-rw-r--r--app-crypt/gnupg/files/gnupg-1.4.6-badruman.patch12
-rw-r--r--app-crypt/gnupg/files/gnupg-1.4.6-ecc-helper.patch13
-rw-r--r--app-crypt/gnupg/gnupg-1.4.6.ebuild204
6 files changed, 267 insertions, 5 deletions
diff --git a/app-crypt/gnupg/ChangeLog b/app-crypt/gnupg/ChangeLog
index b6223689a56e..6d3ab8ec89e1 100644
--- a/app-crypt/gnupg/ChangeLog
+++ b/app-crypt/gnupg/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-crypt/gnupg
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.251 2006/12/02 18:12:40 alonbl Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.252 2006/12/06 21:16:20 alonbl Exp $
+
+*gnupg-1.4.6 (06 Dec 2006)
+
+ 06 Dec 2006; Alon Bar-Lev <alonbl@gentoo.org>
+ +files/gnupg-1.4.6-badruman.patch, +files/gnupg-1.4.6-ecc-helper.patch,
+ +gnupg-1.4.6.ebuild:
+ Version bump, closes bug#156476
*gnupg-2.0.1 (02 Dec 2006)
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
index 02102c8b15f2..1f1ec4906497 100644
--- a/app-crypt/gnupg/Manifest
+++ b/app-crypt/gnupg/Manifest
@@ -50,6 +50,14 @@ AUX gnupg-1.4.5_rc1-ecc-helper.patch 355 RMD160 1cfadc15bde3922a7047614ce0583ca9
MD5 4882cbe55ee9eb446d103b469c13242e files/gnupg-1.4.5_rc1-ecc-helper.patch 355
RMD160 1cfadc15bde3922a7047614ce0583ca9738f49e1 files/gnupg-1.4.5_rc1-ecc-helper.patch 355
SHA256 e5be26caf4b51f49529342791bc8886721d4e4ae5967cdd88555f3520db917bb files/gnupg-1.4.5_rc1-ecc-helper.patch 355
+AUX gnupg-1.4.6-badruman.patch 534 RMD160 7789da4ceafcc9f1bec778b9b7986359f1513178 SHA1 8423f2fb9e41fdfbcb4b1eae2c5a99b0c9e045bb SHA256 3fef6d7306823db7a8912f4454b05aef8cff035e36065097d9406f57098018e5
+MD5 0e2449e22416d4ef22158a2baa72a494 files/gnupg-1.4.6-badruman.patch 534
+RMD160 7789da4ceafcc9f1bec778b9b7986359f1513178 files/gnupg-1.4.6-badruman.patch 534
+SHA256 3fef6d7306823db7a8912f4454b05aef8cff035e36065097d9406f57098018e5 files/gnupg-1.4.6-badruman.patch 534
+AUX gnupg-1.4.6-ecc-helper.patch 387 RMD160 ac30049a669d5b65255c0f30986995bba9398103 SHA1 ddabfc78f1905ed9b023d48c7f06c1cea746904a SHA256 73f1acb0681b2ecb8112d772da7204a7451b286b28369f0ffd2741af7e63a3f2
+MD5 623a5168503b7aae21c95ee6caf69bb5 files/gnupg-1.4.6-ecc-helper.patch 387
+RMD160 ac30049a669d5b65255c0f30986995bba9398103 files/gnupg-1.4.6-ecc-helper.patch 387
+SHA256 73f1acb0681b2ecb8112d772da7204a7451b286b28369f0ffd2741af7e63a3f2 files/gnupg-1.4.6-ecc-helper.patch 387
AUX gnupg-1.9.20-fbsd-gcc41.patch 462 RMD160 a15e134cf05134b9b1113b162c6e957ca11860aa SHA1 ad3ae023524feb58e5350759dd42509bafde7468 SHA256 c8d37aed71c5659d93f9a73f563abc59159a33990fda8a12a74f2bbfe07a961e
MD5 2c895d4068081e568eec78426f1476af files/gnupg-1.9.20-fbsd-gcc41.patch 462
RMD160 a15e134cf05134b9b1113b162c6e957ca11860aa files/gnupg-1.9.20-fbsd-gcc41.patch 462
@@ -70,7 +78,9 @@ DIST gnupg-1.4.0-ecc0.1.6.diff.bz2 16703 RMD160 1d98f70f2f13e96eed4482be9c364634
DIST gnupg-1.4.2.2.tar.bz2 3034652 RMD160 cbbf3ffafa51fdf985c2562ecafccd72bc36ea0d SHA1 f5559ddb004e0638f6bd9efe2bac00134c5065ba SHA256 174e7f78c670d76984c4c4bd6077a0b9fec7b4be700b9f3e40c6889b78110c57
DIST gnupg-1.4.4-ecc0.1.6.diff.bz2 16931 RMD160 30af14d212c50c56d7f170b6697a9148d086bb5a SHA1 15831b5d4cbccdca3c005199d510700ee862fbc5 SHA256 023e1da2837a06e9c92785184f31c6ecb31c0a328446100ab2c6dcf819c1f5be
DIST gnupg-1.4.4.tar.bz2 3047120 RMD160 b3807b3cf4fc577bf071261eff787c481bd4e0ca SHA1 3414d67f22973576f31e354f44859bafbccb7eee SHA256 d2cafed0a8cde831bdc25218d8b26d4aa373e36d0e0ecfccadf4ca810259ee08
+DIST gnupg-1.4.5-ecc0.1.6.diff.bz2 16926 RMD160 1f80d5137f47e48bda96dd59506c452a3833e4e4 SHA1 be330df0b9907a151cd2b97659b93e4fa21fe491 SHA256 3263d8bd2bea6807445f9592b705ae4fca6bb89e8483613a53d553947424c51a
DIST gnupg-1.4.5.tar.bz2 3089617 RMD160 f27447b3aec1423ac10c3a5b4745ea3b13c5a5e5 SHA1 553fefe0da5a91108dd9468e381faf9487754f9a SHA256 f30a2679ed6bed71b4af6919cd9b963c896fca64e42eeb0536788cb41b2e1805
+DIST gnupg-1.4.6.tar.bz2 3149454 RMD160 c7e7409358aaaaf7f3bb202aa86f6121749b97e3 SHA1 9cbbef5c94f793867ff3ae4941816962311a0563 SHA256 fd5a72418e55669b88076c2a6f11c3a59bf92a2071008567e65ae12b7372008e
DIST gnupg-1.9.20.tar.bz2 1810059 RMD160 3501de32f1526f64510a77fe3cc0905dd7fc8854 SHA1 557be26c21c114a3b345ce6b177fcb088883f827 SHA256 6272727e5a0e019743e8520a2ff6b42eb4cc89251cb5bbca73dda09cb765487e
DIST gnupg-1.9.21.tar.bz2 1901908 RMD160 f522125f30a29fd2bcacca5894958242946de430 SHA1 f7c9dea1049dfd3da6d66838005def26898d06e2 SHA256 7dfaa7867427dd44ac3277026dec3602626b657d95952b7a5bdeb9e567b5d34c
DIST gnupg-1.9.22.tar.bz2 1908546 RMD160 43b3e8a17d5e116f5fa0c34bc3beaf68250ec3c3 SHA1 10b2a5c256598d9ed25c84d55ea111710b3f8906 SHA256 2e4472e00c14c881ee1f93deddbe91d3c520311839f30d336ca48a51939e45cf
@@ -98,6 +108,10 @@ EBUILD gnupg-1.4.5.ebuild 6466 RMD160 20b0101f03960563751ffcaf0adbf789e6b6c207 S
MD5 1155276441e1e5b0e100923d4e77a496 gnupg-1.4.5.ebuild 6466
RMD160 20b0101f03960563751ffcaf0adbf789e6b6c207 gnupg-1.4.5.ebuild 6466
SHA256 031c6d52802acc236647e10fb4c3d0573650046169fb7095479f15eca80c1bcf gnupg-1.4.5.ebuild 6466
+EBUILD gnupg-1.4.6.ebuild 6038 RMD160 ce7fb656440274efe3ee4baf388699b73173668d SHA1 507f8f4bcf6806d3d8823d43f928481ded8aee1c SHA256 f9efa03939574ef1459c61fd0b47341a32dd20753b72056817ff9e3c9c47a153
+MD5 4e58dacad5e4a01fefd209ccbc2fcfe0 gnupg-1.4.6.ebuild 6038
+RMD160 ce7fb656440274efe3ee4baf388699b73173668d gnupg-1.4.6.ebuild 6038
+SHA256 f9efa03939574ef1459c61fd0b47341a32dd20753b72056817ff9e3c9c47a153 gnupg-1.4.6.ebuild 6038
EBUILD gnupg-1.9.20-r3.ebuild 2818 RMD160 30915d092bd819c2b8975f3e6b353c45b215b25f SHA1 25d4fa50f2d9425522998d4d1c6a252d3969c2c5 SHA256 47378931dc6b85d9a55fc8ca22003fea1babb7e31c53dcf39fb4743b1b8d3ddf
MD5 65004155079cf9459b31e89b5a585c1b gnupg-1.9.20-r3.ebuild 2818
RMD160 30915d092bd819c2b8975f3e6b353c45b215b25f gnupg-1.9.20-r3.ebuild 2818
@@ -126,10 +140,10 @@ EBUILD gnupg-2.0.1.ebuild 2375 RMD160 2f009d186055c4cb251e38bf6e6ba951d0cec430 S
MD5 dffdf508c7bae61f4f4beaa72223a8d4 gnupg-2.0.1.ebuild 2375
RMD160 2f009d186055c4cb251e38bf6e6ba951d0cec430 gnupg-2.0.1.ebuild 2375
SHA256 5fec10fd56e0bb8e4266ab91e2482f0983f51e4e96afcae7214463ca8002ab4d gnupg-2.0.1.ebuild 2375
-MISC ChangeLog 39415 RMD160 5e7bd67fb16ca03e5a4b831b35aa540f17d4c982 SHA1 2157450eff7ddcfd6a5a5c7ba5e948e4e5da6991 SHA256 f30e22eba7677ccdc23f469ac199916b1c467d2cf65021485609ac59cdefc537
-MD5 e1f6fcb0271500919af37a2177092050 ChangeLog 39415
-RMD160 5e7bd67fb16ca03e5a4b831b35aa540f17d4c982 ChangeLog 39415
-SHA256 f30e22eba7677ccdc23f469ac199916b1c467d2cf65021485609ac59cdefc537 ChangeLog 39415
+MISC ChangeLog 39623 RMD160 fed8a3af5556d476352b3e3110917db6977ac254 SHA1 f62f86250e304acf1f79d9587102ea228ba19461 SHA256 597c70fc1ebfce7f65d0fe4617611362cac56ffe7113c1ef3be013736aba5ea2
+MD5 0735a93b11949aa254b9aa22b7ece30d ChangeLog 39623
+RMD160 fed8a3af5556d476352b3e3110917db6977ac254 ChangeLog 39623
+SHA256 597c70fc1ebfce7f65d0fe4617611362cac56ffe7113c1ef3be013736aba5ea2 ChangeLog 39623
MISC metadata.xml 481 RMD160 d5c4e2fc7b94966795cc4c039d850302d8552448 SHA1 13cb529b83ba9feaad91f1d033d6c33d1eafbd25 SHA256 d88eadc2c75a18f57dcd38f20aa72ee7c79504f62bcab3f7dea60651ccd4b672
MD5 b507ee36c7487372de42cc9dab034370 metadata.xml 481
RMD160 d5c4e2fc7b94966795cc4c039d850302d8552448 metadata.xml 481
@@ -149,6 +163,9 @@ SHA256 d8f3903fe059e480b38d1602fd9efa409019129dfc9362acfe3e363375b9f90d files/di
MD5 8f18ae380f06f5dd90d7992982200d25 files/digest-gnupg-1.4.5-r2 708
RMD160 bd8c14fcd3786d851d9a77b0a9aec639de6a5c23 files/digest-gnupg-1.4.5-r2 708
SHA256 d8f3903fe059e480b38d1602fd9efa409019129dfc9362acfe3e363375b9f90d files/digest-gnupg-1.4.5-r2 708
+MD5 5c3fa7ed67452d1f8d07729de1dbf3d3 files/digest-gnupg-1.4.6 708
+RMD160 851f04c7257989afb7d059f3a8eed38ec7b89487 files/digest-gnupg-1.4.6 708
+SHA256 923e5f60f1905c9a960016e5cfcc8e6979710c867e40c5b0fb2f22adf3931fad files/digest-gnupg-1.4.6 708
MD5 b5311626934af7a07b0760601cc3db45 files/digest-gnupg-1.9.20-r3 244
RMD160 2cee39773952b56927ea28d0eb108c517493c002 files/digest-gnupg-1.9.20-r3 244
SHA256 a3f14c72acb1d4aa2102ab2ef7d02f12ae0451eef8528fed05a59b07e733d3d0 files/digest-gnupg-1.9.20-r3 244
diff --git a/app-crypt/gnupg/files/digest-gnupg-1.4.6 b/app-crypt/gnupg/files/digest-gnupg-1.4.6
new file mode 100644
index 000000000000..a9271b8f6a66
--- /dev/null
+++ b/app-crypt/gnupg/files/digest-gnupg-1.4.6
@@ -0,0 +1,9 @@
+MD5 2964c69bb7e5c1da0c1d74f1aeba38ec gnupg-1.4.5-ecc0.1.6.diff.bz2 16926
+RMD160 1f80d5137f47e48bda96dd59506c452a3833e4e4 gnupg-1.4.5-ecc0.1.6.diff.bz2 16926
+SHA256 3263d8bd2bea6807445f9592b705ae4fca6bb89e8483613a53d553947424c51a gnupg-1.4.5-ecc0.1.6.diff.bz2 16926
+MD5 ec8dc6df1bd83c1d7e1a1ea10653f9f4 gnupg-1.4.6.tar.bz2 3149454
+RMD160 c7e7409358aaaaf7f3bb202aa86f6121749b97e3 gnupg-1.4.6.tar.bz2 3149454
+SHA256 fd5a72418e55669b88076c2a6f11c3a59bf92a2071008567e65ae12b7372008e gnupg-1.4.6.tar.bz2 3149454
+MD5 9dc3bc086824a8c7a331f35e09a3e57f idea.c.gz 5216
+RMD160 e35be5a031d10d52341ac5f029d28f811edd908d idea.c.gz 5216
+SHA256 309928da34941dff1d6f6687542ff3d58306d85be9e1a9906bc4f9f8e6011844 idea.c.gz 5216
diff --git a/app-crypt/gnupg/files/gnupg-1.4.6-badruman.patch b/app-crypt/gnupg/files/gnupg-1.4.6-badruman.patch
new file mode 100644
index 000000000000..114dcee4d4cf
--- /dev/null
+++ b/app-crypt/gnupg/files/gnupg-1.4.6-badruman.patch
@@ -0,0 +1,12 @@
+diff -urNp gnupg-1.4.6.org/doc/Makefile.in gnupg-1.4.6/doc/Makefile.in
+--- gnupg-1.4.6.org/doc/Makefile.in 2006-12-06 11:15:27.000000000 +0200
++++ gnupg-1.4.6/doc/Makefile.in 2006-12-06 22:46:05.000000000 +0200
+@@ -315,7 +315,7 @@ EXTRA_DIST = DETAILS faq.raw FAQ faq.htm
+ myman_sources = gpg.texi gpgv.texi
+ myman_pages = gpg.1 gpgv.1
+ info_TEXINFOS = gnupg1.texi
+-man_MANS = $(myman_pages) gnupg.7 gpg.ru.1
++man_MANS = $(myman_pages) gnupg.7
+ gnupg1_TEXINFOS = gnupg1.texi
+
+ # Need this to avoid building of dvis with automake 1.4
diff --git a/app-crypt/gnupg/files/gnupg-1.4.6-ecc-helper.patch b/app-crypt/gnupg/files/gnupg-1.4.6-ecc-helper.patch
new file mode 100644
index 000000000000..4e105218efdd
--- /dev/null
+++ b/app-crypt/gnupg/files/gnupg-1.4.6-ecc-helper.patch
@@ -0,0 +1,13 @@
+--- gnupg-1.4.5-ecc0.1.6.diff.org 2006-12-06 23:03:01.000000000 +0200
++++ gnupg-1.4.5-ecc0.1.6.diff 2006-12-06 23:03:21.000000000 +0200
+@@ -1961,8 +1961,8 @@ diff -Nru gnupg-1.4.5/configure gnupg-1.
+
+ # Define the identity of the package.
+ PACKAGE='gnupg'
+-- VERSION='1.4.5'
+-+ VERSION='1.4.5-ecc01.6'
++- VERSION='1.4.6'
+++ VERSION='1.4.6-ecc01.6'
+
+
+ cat >>confdefs.h <<_ACEOF
diff --git a/app-crypt/gnupg/gnupg-1.4.6.ebuild b/app-crypt/gnupg/gnupg-1.4.6.ebuild
new file mode 100644
index 000000000000..41948d7e0165
--- /dev/null
+++ b/app-crypt/gnupg/gnupg-1.4.6.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.6.ebuild,v 1.1 2006/12/06 21:16:20 alonbl Exp $
+
+inherit eutils flag-o-matic
+
+ECCVER=0.1.6
+ECCVER_GNUPG=1.4.5
+MY_P=${P/_/}
+
+DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
+HOMEPAGE="http://www.gnupg.org/"
+SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2
+ !bindist? (
+ idea? ( ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz )
+ ecc? ( http://alumnes.eps.udl.es/%7Ed4372211/src/${PN}-${ECCVER_GNUPG}-ecc${ECCVER}.diff.bz2 )
+ )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="bzip2 bindist curl ecc idea ldap nls readline selinux smartcard static usb zlib X linguas_ru"
+
+COMMON_DEPEND="
+ ldap? ( net-nds/openldap )
+ bzip2? ( app-arch/bzip2 )
+ zlib? ( sys-libs/zlib )
+ curl? ( net-misc/curl )
+ virtual/mta
+ readline? ( sys-libs/readline )
+ smartcard? ( dev-libs/libusb )
+ usb? ( dev-libs/libusb )"
+
+RDEPEND="!static? (
+ ${COMMON_DEPEND}
+ X? ( || ( media-gfx/xloadimage media-gfx/xli ) )
+ )
+ selinux? ( sec-policy/selinux-gnupg )
+ nls? ( virtual/libintl )"
+
+DEPEND="${COMMON_DEPEND}
+ dev-lang/perl
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+
+ if use idea; then
+ if use bindist; then
+ einfo "Skipping IDEA support to comply with binary distribution (bug #148907)."
+ else
+ ewarn "Please read http://www.gnupg.org/(en)/faq/why-not-idea.html"
+ mv "${WORKDIR}"/idea.c "${S}"/cipher/idea.c || \
+ ewarn "failed to insert IDEA module"
+ fi
+ fi
+
+ if use ecc; then
+ if use bindist; then
+ einfo "Skipping ECC patch to comply with binary distribution (bug #148907)."
+ else
+ epatch "${FILESDIR}"/${P}-ecc-helper.patch
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${PN}-${ECCVER_GNUPG}-ecc${ECCVER}.diff
+ fi
+ fi
+
+ # maketest fix
+ EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-1.4.3-selftest.patch
+
+ # install RU man page in right location
+ EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${P}-badruman.patch
+
+ # keyserver fix
+ EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-1.4.3-keyserver.patch
+
+ cd "${S}"
+ # Fix PIC definitions
+ sed -i -e 's:PIC:__PIC__:' mpi/i386/mpih-{add,sub}1.S intl/relocatable.c
+ sed -i -e 's:if PIC:ifdef __PIC__:' mpi/sparc32v8/mpih-mul{1,2}.S
+}
+
+src_compile() {
+ # Certain sparc32 machines seem to have trouble building correctly with
+ # -mcpu enabled. While this is not a gnupg problem, it is a temporary
+ # fix until the gcc problem can be tracked down.
+ if [ "${ARCH}" == "sparc" ] && [ "${PROFILE_ARCH}" == "sparc" ]; then
+ filter-flags -mcpu=supersparc -mcpu=v8 -mcpu=v7
+ fi
+
+ # 'USE=static' support was requested in #29299
+ use static &&append-ldflags -static
+
+ append-ldflags $(bindnow-flags)
+
+ # fix compile problem on ppc64
+ use ppc64 && myconf="${myconf} --disable-asm"
+
+ econf \
+ $(use_enable ldap) \
+ --enable-mailto \
+ --enable-hkp \
+ --enable-finger \
+ $(use_with !zlib included-zlib) \
+ $(use_with curl libcurl /usr) \
+ $(use_enable nls) \
+ $(use_enable bzip2) \
+ $(use_enable smartcard card-support) \
+ $(use_enable selinux selinux-support) \
+ --disable-capabilities \
+ $(use_with readline) \
+ $(use_with usb libusb /usr) \
+ $(use_enable static) \
+ $(use_enable X photo-viewers) \
+ --enable-static-rnd=linux \
+ --libexecdir=/usr/libexec \
+ --enable-noexecstack \
+ ${myconf} || die
+ # this is because it will run some tests directly
+ gnupg_fixcheckperms
+ emake || die
+}
+
+src_install() {
+ gnupg_fixcheckperms
+ make DESTDIR="${D}" install || die
+
+ # keep the documentation in /usr/share/doc/...
+ rm -rf "${D}/usr/share/gnupg/FAQ" "${D}/usr/share/gnupg/faq.html"
+
+ dodoc AUTHORS BUGS ChangeLog NEWS PROJECTS README THANKS \
+ TODO VERSION doc/{FAQ,HACKING,DETAILS,ChangeLog,OpenPGP,faq.raw}
+
+ docinto sgml
+ dodoc doc/*.sgml
+
+ dohtml doc/faq.html
+
+ exeinto /usr/libexec/gnupg
+ doexe tools/make-dns-cert
+
+ # install RU documentation in right location
+ if use linguas_ru
+ then
+ cp doc/gpg.ru.1 ${T}/gpg.1
+ doman -i18n=ru ${T}/gpg.1
+ fi
+}
+
+gnupg_fixcheckperms() {
+ # GnuPG does weird things for testing that it build correctly
+ # as we as for the additional tests. It WILL fail with perms 770 :-(.
+ # See bug #80044
+ if has userpriv ${FEATURES}; then
+ einfo "Fixing permissions in check directory"
+ chown -R portage:portage ${S}/checks
+ chmod -R ugo+rw ${S}/checks
+ chmod ugo+rw ${S}/checks
+ fi
+}
+
+src_test() {
+ gnupg_fixcheckperms
+ einfo "Running tests"
+ emake check
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ die "Some tests failed! Please report to the Gentoo Bugzilla"
+ fi
+}
+
+pkg_postinst() {
+ ewarn "If you are using a non-Linux system, or a kernel older than 2.6.9,"
+ ewarn "you MUST make the gpg binary setuid."
+ echo
+ if use !bindist && use idea; then
+ einfo "-----------------------------------------------------------------------------------"
+ einfo "IDEA"
+ ewarn "you have compiled ${PN} with support for the IDEA algorithm, this code"
+ ewarn "is distributed under the GPL in countries where it is permitted to do so"
+ ewarn "by law."
+ einfo
+ einfo "Please read http://www.gnupg.org/(en)/faq/why-not-idea.html for more information."
+ einfo
+ ewarn "If you are in a country where the IDEA algorithm is patented, you are permitted"
+ ewarn "to use it at no cost for 'non revenue generating data transfer between private"
+ ewarn "individuals'."
+ einfo
+ einfo "Countries where the patent applies are listed here"
+ einfo "http://www.mediacrypt.com/_contents/10_idea/101030_ea_pi.asp"
+ einfo
+ einfo "Further information and other licenses are availble from http://www.mediacrypt.com/"
+ einfo "-----------------------------------------------------------------------------------"
+ fi
+ if use !bindist && use ecc; then
+ einfo
+ ewarn "The elliptical curves patch is experimental"
+ einfo "Further info available at http://alumnes.eps.udl.es/%7Ed4372211/index.en.html"
+ fi
+ einfo
+ einfo "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
+ einfo
+}