summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2006-08-01 00:51:26 +0000
committerDaniel Black <dragonheart@gentoo.org>2006-08-01 00:51:26 +0000
commit65e8a0f2687f7a2e953d9c350314072a261c47b1 (patch)
treef5684c7dbb57a2a0aea7069647e928d32f4893e1 /app-crypt
parentStable on alpha wrt Bug #140600. (diff)
downloadhistorical-65e8a0f2687f7a2e953d9c350314072a261c47b1.tar.gz
historical-65e8a0f2687f7a2e953d9c350314072a261c47b1.tar.bz2
historical-65e8a0f2687f7a2e953d9c350314072a261c47b1.zip
prerelease for security bug 142248 (buffer overflow). please wait for non-rc release before stabilising
Package-Manager: portage-2.1.1_pre4
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/gnupg/ChangeLog9
-rw-r--r--app-crypt/gnupg/Manifest30
-rw-r--r--app-crypt/gnupg/files/digest-gnupg-1.4.5_rc19
-rw-r--r--app-crypt/gnupg/files/gnupg-1.4.5_rc1-ecc-helper.patch13
-rw-r--r--app-crypt/gnupg/gnupg-1.4.5_rc1.ebuild225
5 files changed, 281 insertions, 5 deletions
diff --git a/app-crypt/gnupg/ChangeLog b/app-crypt/gnupg/ChangeLog
index f68afded1f3b..b9cc8b6856e4 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.214 2006/07/23 02:55:32 psi29a Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.215 2006/08/01 00:51:26 dragonheart Exp $
+
+*gnupg-1.4.5_rc1 (01 Aug 2006)
+
+ 01 Aug 2006; Daniel Black <dragonheart@gentoo.org>
+ +files/gnupg-1.4.5_rc1-ecc-helper.patch, +gnupg-1.4.5_rc1.ebuild:
+ prerelease for security bug 142248 (buffer overflow). please wait for non-rc
+ release before stabilising
22 Jul 2006; <psi29a@gentoo.org> gnupg-1.9.20-r3.ebuild:
stable on mips
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
index 9f47da80e34e..6f226038f6fa 100644
--- a/app-crypt/gnupg/Manifest
+++ b/app-crypt/gnupg/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX gnupg-1.4-emptytrustpackets.patch 611 RMD160 b87072acd446cebeb9b837ac6bba21c9c761e0c6 SHA1 5de97cdd26d155132c828db89b28cd37e9f03aad SHA256 d7a2cfed32f0fef29edf0506fc3602473cc2c6369d672571d06bff902c9e0689
MD5 c0b3223dbc599c2da7707cdae2b3683a files/gnupg-1.4-emptytrustpackets.patch 611
RMD160 b87072acd446cebeb9b837ac6bba21c9c761e0c6 files/gnupg-1.4-emptytrustpackets.patch 611
@@ -42,6 +45,10 @@ AUX gnupg-1.4.3-selftest.patch 1324 RMD160 0a8e6d50fde48a2e795907ca56e1e95261919
MD5 5618a0682f3972bdee6a87da1af03ba6 files/gnupg-1.4.3-selftest.patch 1324
RMD160 0a8e6d50fde48a2e795907ca56e1e95261919f43 files/gnupg-1.4.3-selftest.patch 1324
SHA256 0ca949d63f7dbb882c0119344c47bfaa99132bb4c7f253194eea06c7472afa54 files/gnupg-1.4.3-selftest.patch 1324
+AUX gnupg-1.4.5_rc1-ecc-helper.patch 355 RMD160 1cfadc15bde3922a7047614ce0583ca9738f49e1 SHA1 f1ed9f40eab8613e126b4a2585a40367dad47208 SHA256 e5be26caf4b51f49529342791bc8886721d4e4ae5967cdd88555f3520db917bb
+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.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
@@ -56,6 +63,7 @@ DIST gnupg-1.4.3-ecc0.1.6.diff.bz2 18138 RMD160 609d0d280d0084c4463bcfaa770d1dab
DIST gnupg-1.4.3.tar.bz2 3114088 RMD160 f6d328785f41b74f97d25305c6fe95ad45bb70a5 SHA1 9e96b36e4f4d1e8bc5028c99fac674482cbdb370 SHA256 1d8d65e43751d833d4d49fa86df6fe97cebd00162dd0ced743470dca7e520da6
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.5rc1.tar.bz2 3090481 RMD160 6b775f55899894e3397229c17372a9f4afbcbee4 SHA1 97a3d5d05989226ef3d545a638402dca5c54ed29 SHA256 057b0598c198db3e0ee5b597128522f9dfb7736401feacbabbf7511127921cf0
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 idea.c.gz 5216 RMD160 e35be5a031d10d52341ac5f029d28f811edd908d SHA1 82fded4ec31b97b3b2dd22741880b67cfee40f84 SHA256 309928da34941dff1d6f6687542ff3d58306d85be9e1a9906bc4f9f8e6011844
@@ -75,6 +83,10 @@ EBUILD gnupg-1.4.4.ebuild 6674 RMD160 6368ca01586daa272fbb8695d417d77cbe5957a3 S
MD5 5268693d358db789b9486d21f71727d6 gnupg-1.4.4.ebuild 6674
RMD160 6368ca01586daa272fbb8695d417d77cbe5957a3 gnupg-1.4.4.ebuild 6674
SHA256 c4901ef7d368055d314fdcb50ffdcba8739f1eaaaeaf5d00a53ec03884353585 gnupg-1.4.4.ebuild 6674
+EBUILD gnupg-1.4.5_rc1.ebuild 6667 RMD160 e34b30a3191bce6198c7eeb402aea0b9e2d88b7e SHA1 151d2574c549d52c1ae5376b1a2e8ff5e7fe983f SHA256 9b01f270d35f3c3897980be5c9f691e0a21e50cc8c335bf809c81f7a56eb247e
+MD5 6fb749181384d54133080e47dcf2116c gnupg-1.4.5_rc1.ebuild 6667
+RMD160 e34b30a3191bce6198c7eeb402aea0b9e2d88b7e gnupg-1.4.5_rc1.ebuild 6667
+SHA256 9b01f270d35f3c3897980be5c9f691e0a21e50cc8c335bf809c81f7a56eb247e gnupg-1.4.5_rc1.ebuild 6667
EBUILD gnupg-1.9.20-r3.ebuild 2792 RMD160 4bc5f813aa792d3abf5b693e5deeaa062c4dfc54 SHA1 f8725505bf72664c155b8fc61793948409c0c34d SHA256 737db0e5723f7fa2ea3391661398f54a690bccfff3ea27b091a1e5d6f47c0f78
MD5 ecba452a5ba0921435c01c67d37bc6c8 gnupg-1.9.20-r3.ebuild 2792
RMD160 4bc5f813aa792d3abf5b693e5deeaa062c4dfc54 gnupg-1.9.20-r3.ebuild 2792
@@ -87,10 +99,10 @@ EBUILD gnupg-1.9.21.ebuild 3066 RMD160 ac2c7f0a225cea3e2e6f954b12fbca4913f39f26
MD5 7b305c23af31e61da924f56e087983bf gnupg-1.9.21.ebuild 3066
RMD160 ac2c7f0a225cea3e2e6f954b12fbca4913f39f26 gnupg-1.9.21.ebuild 3066
SHA256 5a3b310d1e2f4a2a15b1e736d40fa01ecf079d3d2c356d8c508e3a1cd99bfd01 gnupg-1.9.21.ebuild 3066
-MISC ChangeLog 34055 RMD160 8d3ba6aa1bd6bd3477a8b1d933986eb6a7ac7fe5 SHA1 000916edc7da9d844a69333c9d00dcda4773fc90 SHA256 053b724ca2674e4ab9eb03cd510a057c01bfa247586846fb0533377d27aa6444
-MD5 b933f2fc8e4f8ddb9a7c3576b7248676 ChangeLog 34055
-RMD160 8d3ba6aa1bd6bd3477a8b1d933986eb6a7ac7fe5 ChangeLog 34055
-SHA256 053b724ca2674e4ab9eb03cd510a057c01bfa247586846fb0533377d27aa6444 ChangeLog 34055
+MISC ChangeLog 34322 RMD160 83850928dcef5b5e66cb2e75ef8aec13e6d73827 SHA1 7023d5972694ea231fc2a6b88adc6ef9a2baba96 SHA256 75a887b854962f50923762ce3a338c4162e95239d6758f6e956fa25261bc7093
+MD5 bbcb50e01951d93e8065e6c2e27a8b79 ChangeLog 34322
+RMD160 83850928dcef5b5e66cb2e75ef8aec13e6d73827 ChangeLog 34322
+SHA256 75a887b854962f50923762ce3a338c4162e95239d6758f6e956fa25261bc7093 ChangeLog 34322
MISC metadata.xml 481 RMD160 d5c4e2fc7b94966795cc4c039d850302d8552448 SHA1 13cb529b83ba9feaad91f1d033d6c33d1eafbd25 SHA256 d88eadc2c75a18f57dcd38f20aa72ee7c79504f62bcab3f7dea60651ccd4b672
MD5 b507ee36c7487372de42cc9dab034370 metadata.xml 481
RMD160 d5c4e2fc7b94966795cc4c039d850302d8552448 metadata.xml 481
@@ -107,6 +119,9 @@ SHA256 8e3cf65fbdae1fd9e4657caa33e005261988c8bea3fa62e518d07d863675b7d3 files/di
MD5 015c1f3fa570f190ba5c8e7d2da977cf files/digest-gnupg-1.4.4 708
RMD160 9fc25fbc123c91aef099c7b427c66296ea3ede11 files/digest-gnupg-1.4.4 708
SHA256 5122660ca270163601e13f1bef65ae7c02c413f4540aff26ff4931974c3fad27 files/digest-gnupg-1.4.4 708
+MD5 da42102a0baa5f514f3fea94f5689757 files/digest-gnupg-1.4.5_rc1 717
+RMD160 2d916949a9af9725b2abe6d7e121d199dfc53be0 files/digest-gnupg-1.4.5_rc1 717
+SHA256 836f57454b70ad9d5b706295afa96513f914991281a1a3415b3c86fcd54ee2fc files/digest-gnupg-1.4.5_rc1 717
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
@@ -116,3 +131,10 @@ SHA256 a3f14c72acb1d4aa2102ab2ef7d02f12ae0451eef8528fed05a59b07e733d3d0 files/di
MD5 3a094d262f7870e0d3148bf61e353a31 files/digest-gnupg-1.9.21 244
RMD160 85a121d64713e41d718ffaafc308776d580c0b9f files/digest-gnupg-1.9.21 244
SHA256 c07e9079f783809952704276a2cc8cded8ee07fa0a1f803d3cd5257fc9e62f76 files/digest-gnupg-1.9.21 244
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5rc1-ecc0.1.6 (GNU/Linux)
+
+iD8DBQFEzqbfmdTrptrqvGERAt5xAJ9q61e96PJWA8ijTW+7LlWAb/9Z8wCeJVS3
+an5GIMrcjDW+8gomw+83+Bk=
+=EEN1
+-----END PGP SIGNATURE-----
diff --git a/app-crypt/gnupg/files/digest-gnupg-1.4.5_rc1 b/app-crypt/gnupg/files/digest-gnupg-1.4.5_rc1
new file mode 100644
index 000000000000..43f0a224385d
--- /dev/null
+++ b/app-crypt/gnupg/files/digest-gnupg-1.4.5_rc1
@@ -0,0 +1,9 @@
+MD5 0be9a69c1ff363e4ad671860a2b9c14f gnupg-1.4.4-ecc0.1.6.diff.bz2 16931
+RMD160 30af14d212c50c56d7f170b6697a9148d086bb5a gnupg-1.4.4-ecc0.1.6.diff.bz2 16931
+SHA256 023e1da2837a06e9c92785184f31c6ecb31c0a328446100ab2c6dcf819c1f5be gnupg-1.4.4-ecc0.1.6.diff.bz2 16931
+MD5 13dd829ab7b2b6c8075e17982a228cd8 gnupg-1.4.5rc1.tar.bz2 3090481
+RMD160 6b775f55899894e3397229c17372a9f4afbcbee4 gnupg-1.4.5rc1.tar.bz2 3090481
+SHA256 057b0598c198db3e0ee5b597128522f9dfb7736401feacbabbf7511127921cf0 gnupg-1.4.5rc1.tar.bz2 3090481
+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.5_rc1-ecc-helper.patch b/app-crypt/gnupg/files/gnupg-1.4.5_rc1-ecc-helper.patch
new file mode 100644
index 000000000000..cf26d3147856
--- /dev/null
+++ b/app-crypt/gnupg/files/gnupg-1.4.5_rc1-ecc-helper.patch
@@ -0,0 +1,13 @@
+--- gnupg-1.4.4-ecc0.1.6.diff.orig 2006-08-01 10:22:39.000000000 +1000
++++ gnupg-1.4.4-ecc0.1.6.diff 2006-08-01 10:24:34.000000000 +1000
+@@ -1961,8 +1961,8 @@
+
+ # Define the identity of the package.
+ PACKAGE='gnupg'
+-- VERSION='1.4.4'
+-+ VERSION='1.4.4-ecc0.1.6'
++- VERSION='1.4.5rc1'
+++ VERSION='1.4.5rc1-ecc0.1.6'
+
+
+ cat >>confdefs.h <<_ACEOF
diff --git a/app-crypt/gnupg/gnupg-1.4.5_rc1.ebuild b/app-crypt/gnupg/gnupg-1.4.5_rc1.ebuild
new file mode 100644
index 000000000000..6ea11e9cdb2f
--- /dev/null
+++ b/app-crypt/gnupg/gnupg-1.4.5_rc1.ebuild
@@ -0,0 +1,225 @@
+# 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.5_rc1.ebuild,v 1.1 2006/08/01 00:51:26 dragonheart Exp $
+
+inherit eutils flag-o-matic linux-info
+
+ECCVER=0.1.6
+ECCVER_GNUPG=1.4.4
+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
+SRC_URI="mirror://gnupg/alpha/gnupg/${MY_P}.tar.bz2
+ 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 ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="bzip2 curl ecc idea ldap nls readline selinux smartcard static usb zlib X linguas_ru"
+# IUSE+=caps
+
+# caps? ( sys-libs/libcap )
+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}"
+
+pkg_setup() {
+ # fix bug #113474 - no compiled kernel needed now
+ if use kernel_linux; then
+ get_running_version
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+
+ # Jari's patch to boost iterated key setup by factor of 128
+ EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-1.4.3-jari.patch
+
+ if use idea; then
+ 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
+
+ if use ecc; then
+ epatch "${FILESDIR}"/${P}-ecc-helper.patch
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${PN}-${ECCVER_GNUPG}-ecc${ECCVER}.diff
+ 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}"/${PN}-1.4.3-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"
+
+ # $(use_with caps capabilities) \
+ 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
+
+ # Remove collissions
+ if use ppc-macos; then
+ rm ${D}/usr/lib/charset.alias ${D}/usr/share/locale/locale.alias
+ 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() {
+ #if ! use kernel_linux || (! use caps && kernel_is lt 2 6 9); then
+ if ! use kernel_linux || kernel_is lt 2 6 9; then
+ chmod u+s,go-r ${ROOT}/usr/bin/gpg
+ einfo "gpg is installed suid root to make use of protected memory space"
+ einfo "This is needed in order to have a secure place to store your"
+ einfo "passphrases, etc. at runtime but may make some sysadmins nervous."
+ else
+ chmod u-s,go-r ${ROOT}/usr/bin/gpg
+ fi
+ echo
+ if 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 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
+ #if use caps; then
+ # einfo
+ # ewarn "Capabilities code is experimental"
+ #fi
+ einfo
+ einfo "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
+ einfo
+}