summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-01-23 10:17:33 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-01-23 10:17:33 +0000
commita3275332401a5b4358aeb0cbd68f1f18ee4152cf (patch)
treef6a4ba2921da738856ad626ae16af8fdef6ce5b1 /app-crypt
parentapp-crypt/gnupg:ecc added to local (diff)
downloadgentoo-2-a3275332401a5b4358aeb0cbd68f1f18ee4152cf.tar.gz
gentoo-2-a3275332401a5b4358aeb0cbd68f1f18ee4152cf.tar.bz2
gentoo-2-a3275332401a5b4358aeb0cbd68f1f18ee4152cf.zip
Corrected URL for IDEA patent info. Added 1.4.0-r2 to include elliptic curve cryptosystem and smartcard support. Version bump to gnupg-1.9.15. Removed IDEA from gnupg-1.9.* cause it realy didn't support it anyway.
(Portage version: 2.0.51-r14)
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/gnupg/ChangeLog12
-rw-r--r--app-crypt/gnupg/Manifest24
-rw-r--r--app-crypt/gnupg/files/digest-gnupg-1.4.0-r23
-rw-r--r--app-crypt/gnupg/files/digest-gnupg-1.9.141
-rw-r--r--app-crypt/gnupg/files/digest-gnupg-1.9.151
-rw-r--r--app-crypt/gnupg/gnupg-1.2.4.ebuild4
-rw-r--r--app-crypt/gnupg/gnupg-1.4.0-r1.ebuild4
-rw-r--r--app-crypt/gnupg/gnupg-1.4.0-r2.ebuild172
-rw-r--r--app-crypt/gnupg/gnupg-1.9.14.ebuild38
-rw-r--r--app-crypt/gnupg/gnupg-1.9.15.ebuild122
10 files changed, 330 insertions, 51 deletions
diff --git a/app-crypt/gnupg/ChangeLog b/app-crypt/gnupg/ChangeLog
index 583a5c53a48d..c7784b7a9e73 100644
--- a/app-crypt/gnupg/ChangeLog
+++ b/app-crypt/gnupg/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for app-crypt/gnupg
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.98 2005/01/19 20:26:59 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/ChangeLog,v 1.99 2005/01/23 10:17:33 dragonheart Exp $
+
+*gnupg-1.4.0-r2 (23 Jan 2005)
+*gnupg-1.9.15 (23 Jan 2005)
+
+ 23 Jan 2005; Daniel Black <dragonheart@gentoo.org> gnupg-1.2.4.ebuild,
+ gnupg-1.4.0-r1.ebuild, +gnupg-1.4.0-r2.ebuild, gnupg-1.9.14.ebuild,
+ +gnupg-1.9.15.ebuild:
+ Corrected URL for IDEA patent info. Added 1.4.0-r2 to include elliptic curve
+ cryptosystem and smartcard support. Version bump to gnupg-1.9.15. Removed IDEA
+ from gnupg-1.9.* cause it realy didn't support it anyway.
20 Jan 2005; Daniel Black <dragonheart@gentoo.org> gnupg-1.9.14.ebuild:
Changed libassuan dependacy to 0.6.9 as per bug #78713. Thanks Alexander
diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
index 1c88d2f747d6..ba7d7e3c6f31 100644
--- a/app-crypt/gnupg/Manifest
+++ b/app-crypt/gnupg/Manifest
@@ -1,25 +1,19 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 7116bc167ab94b2ffbd722fc9e181357 ChangeLog 15321
-MD5 1fac16f2e963b490bc2bddb2c544754b gnupg-1.9.14.ebuild 4010
-MD5 60abe012deb7ef3299727bdf308700e3 gnupg-1.2.4.ebuild 4349
+MD5 4d93a716267764c3a0e9d7b956323682 gnupg-1.9.15.ebuild 3184
+MD5 817ec2097a355c1e3cd550d92126ee9b ChangeLog 15768
+MD5 fdc1de835c5ed0906d8b638555580608 gnupg-1.9.14.ebuild 3029
+MD5 996d6e0d67754f357628628f19c1a6cd gnupg-1.2.4.ebuild 4355
MD5 31e47fabf70190e99e427f9861707069 gnupg-1.2.6.ebuild 3780
MD5 f060c73f6f74e7174b1f7d7c570421fe metadata.xml 572
-MD5 565496fbc556b3007d61f9e42d069cb6 gnupg-1.4.0-r1.ebuild 4467
+MD5 286219bbfc74bb05c1c1ea74a172a094 gnupg-1.4.0-r1.ebuild 4473
+MD5 7f4537d3a587ef6c45764c91af9bd1ed gnupg-1.4.0-r2.ebuild 5077
MD5 e698420245e3ee4535db946dfd41cfcd gnupg-1.9.10.ebuild 2985
-MD5 e23491eb03cb2bea5a2011f12c84b4ef files/digest-gnupg-1.9.14 117
+MD5 a614d4d6eb27b31d9b4651c349b31c3e files/digest-gnupg-1.9.14 65
MD5 c3a43a1e5da266ef33222f721e05fd63 files/digest-gnupg-1.2.6 117
MD5 a8d4b32b219641e9b9df83b581a935ba files/digest-gnupg-1.4.0-r1 117
MD5 7f0e728ae9c6810cb9c61500fdc39fc9 files/digest-gnupg-1.2.4 117
MD5 dd317d852aed29e96c5a542f00d0766e files/gnupg-1.2.6-ppc64.patch 454
+MD5 e62b7134c5c0c1b3aad6a08bfdf99b48 files/digest-gnupg-1.9.15 66
MD5 8c88d9fdef69bdda173170c5a8abd59e files/digest-gnupg-1.9.10 65
+MD5 9e4bb59ff6cbb14c85cf044408669ccd files/digest-gnupg-1.4.0-r2 190
MD5 c6114a5a40f10aeca63d07b59fed650f files/gnupg-1.2.4-hppa_unaligned_constant.patch 1213
MD5 cdb57d67164c7a63a167c33426c0a7a3 files/gnupg-1.2.4.ppc64.patch 471
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
-
-iD8DBQFB7sKZmdTrptrqvGERAldoAJwPS9tBuHdQshHL9FaoWc7+MMn5oQCbB6qp
-jDj/tvgOB3Rcl6RM69DdO7g=
-=tVf8
------END PGP SIGNATURE-----
diff --git a/app-crypt/gnupg/files/digest-gnupg-1.4.0-r2 b/app-crypt/gnupg/files/digest-gnupg-1.4.0-r2
new file mode 100644
index 000000000000..7fc98bd1a9bb
--- /dev/null
+++ b/app-crypt/gnupg/files/digest-gnupg-1.4.0-r2
@@ -0,0 +1,3 @@
+MD5 8c303606aaf73b7756b9fe6f3d8b58c2 gnupg-1.4.0.tar.bz2 2722669
+MD5 9dc3bc086824a8c7a331f35e09a3e57f idea.c.gz 5216
+MD5 4e7e9d224879e5a3e01cb2ab4c719559 gnupg-1.4.0-ecc0.1.6.diff.bz2 16703
diff --git a/app-crypt/gnupg/files/digest-gnupg-1.9.14 b/app-crypt/gnupg/files/digest-gnupg-1.9.14
index 57be0edc52d4..63c90efe8d60 100644
--- a/app-crypt/gnupg/files/digest-gnupg-1.9.14
+++ b/app-crypt/gnupg/files/digest-gnupg-1.9.14
@@ -1,2 +1 @@
MD5 72b56586392c7be6668df4ef8ea7c879 gnupg-1.9.14.tar.gz 1925582
-MD5 9dc3bc086824a8c7a331f35e09a3e57f idea.c.gz 5216
diff --git a/app-crypt/gnupg/files/digest-gnupg-1.9.15 b/app-crypt/gnupg/files/digest-gnupg-1.9.15
new file mode 100644
index 000000000000..bc188f89d378
--- /dev/null
+++ b/app-crypt/gnupg/files/digest-gnupg-1.9.15
@@ -0,0 +1 @@
+MD5 7b1d0562b66b1853b77d511feb786629 gnupg-1.9.15.tar.bz2 1636927
diff --git a/app-crypt/gnupg/gnupg-1.2.4.ebuild b/app-crypt/gnupg/gnupg-1.2.4.ebuild
index 016f650c6a3f..61e36f5e0f68 100644
--- a/app-crypt/gnupg/gnupg-1.2.4.ebuild
+++ b/app-crypt/gnupg/gnupg-1.2.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.2.4.ebuild,v 1.27 2005/01/15 01:08:45 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.2.4.ebuild,v 1.28 2005/01/23 10:17:33 dragonheart Exp $
inherit eutils flag-o-matic
@@ -141,7 +141,7 @@ pkg_postinst() {
einfo "individuals'."
einfo
einfo "Countries where the patent applies are listed here"
- einfo "http://www.mediacrypt.com/engl/Content/patent_info.htm"
+ 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/"
fi
diff --git a/app-crypt/gnupg/gnupg-1.4.0-r1.ebuild b/app-crypt/gnupg/gnupg-1.4.0-r1.ebuild
index a97003f4dfdd..5c6378f1cc64 100644
--- a/app-crypt/gnupg/gnupg-1.4.0-r1.ebuild
+++ b/app-crypt/gnupg/gnupg-1.4.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.0-r1.ebuild,v 1.3 2005/01/15 01:08:46 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.0-r1.ebuild,v 1.4 2005/01/23 10:17:33 dragonheart Exp $
inherit eutils flag-o-matic
@@ -147,7 +147,7 @@ pkg_postinst() {
einfo "individuals'."
einfo
einfo "Countries where the patent applies are listed here"
- einfo "http://www.mediacrypt.com/engl/Content/patent_info.htm"
+ 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/"
fi
diff --git a/app-crypt/gnupg/gnupg-1.4.0-r2.ebuild b/app-crypt/gnupg/gnupg-1.4.0-r2.ebuild
new file mode 100644
index 000000000000..1527162ef22d
--- /dev/null
+++ b/app-crypt/gnupg/gnupg-1.4.0-r2.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.4.0-r2.ebuild,v 1.1 2005/01/23 10:17:33 dragonheart Exp $
+
+inherit eutils flag-o-matic
+
+ECCVER=0.1.6
+
+DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
+HOMEPAGE="http://www.gnupg.org/"
+SRC_URI="ftp://ftp.gnupg.org/gcrypt/gnupg/${P}.tar.bz2
+ idea? ( ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz )
+ ecc? ( http://alumnes.eps.udl.es/%7Ed4372211/src/${P}-ecc${ECCVER}.diff.bz2 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm -hppa ~ppc ~ppc-macos ~s390 -sparc ~x86 ~ia64 ~mips ~ppc64"
+IUSE="ecc ldap nls readline caps zlib idea bzip2 selinux smartcard"
+#
+# Disabling X until media-gfx/xli has sufficient keywords
+# missing ~alpha ~ia64 ~mips = bug #76234
+
+#static not working yet
+#!static? (
+# ldap? ( net-nds/openldap )
+# bzip2? ( app-arch/bzip2 )
+# zlib? ( sys-libs/zlib )
+# )
+
+RDEPEND="
+ ldap? ( net-nds/openldap )
+ bzip2? ( app-arch/bzip2 )
+ zlib? ( sys-libs/zlib )
+ nls? ( sys-devel/gettext )
+ virtual/libc
+ readline? ( sys-libs/readline )
+ smartcard? ( dev-libs/libusb )"
+
+
+# X? ( media-gfx/xloadimage media-gfx/xli )
+
+# dev-lang/perl
+# virtual/mta
+
+
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+src_unpack() {
+ unpack ${A}
+ # Please read http://www.gnupg.org/why-not-idea.html
+ if use idea; then
+ mv ${WORKDIR}/idea.c ${S}/cipher/idea.c || \
+ ewarn "failed to insert IDEA module"
+ fi
+
+ cd ${S}
+ if use ecc; then
+ epatch ${WORKDIR}/${P}-ecc${ECCVER}.diff || die "ecc patch failed"
+ fi
+ 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
+
+ # Still needed?
+ # Bug #6387, --enable-m-guard causes bus error on sparcs
+ use sparc || myconf="${myconf} --enable-m-guard"
+
+ if ! use zlib; then
+ myconf="${myconf} --with-included-zlib"
+ else
+ myconf="${myconf} --without-included-zlib"
+ fi
+
+ use ppc-macos || append-ldflags -Wl,-z,now
+
+ if use ppc-macos && use caps; then
+ eerror "Capabilities support is only available for Linux."
+ fi
+
+ # `use_enable X photo-viewers` \
+ #
+ econf \
+ `use_enable ldap` \
+ --enable-mailto \
+ --enable-hkp \
+ --enable-finger \
+ `use_enable nls` \
+ `use_enable bzip2` \
+ `use_enable smartcard card-support` \
+ `use_enable selinux selinux-support` \
+ `use_enable x86 asm` \
+ `use_with caps capabilities` \
+ `use_with readline` \
+ --enable-static-rnd=linux \
+ --libexecdir=/usr/libexec \
+ --enable-sha512 \
+ ${myconf} || die
+ emake || die
+
+ # NOTE libexecdir dir is deliberately different from that in the install
+
+ if ! use caps ; then
+ fperms u+s /usr/bin/gpg
+ fi
+}
+
+src_install() {
+ emake DESTDIR=${D} libexecdir="/usr/libexec/gnupg" 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 INSTALL NEWS PROJECTS README THANKS \
+ TODO VERSION doc/{FAQ,HACKING,DETAILS,ChangeLog,OpenPGP,faq.raw}
+
+ docinto sgml
+ dodoc doc/*.sgml
+
+ dohtml doc/faq.html
+}
+
+pkg_postinst() {
+ if ! use caps; then
+ 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."
+ 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/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 "Capabilites code is experimental"
+ fi
+ einfo
+ einfo "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
+ einfo
+}
diff --git a/app-crypt/gnupg/gnupg-1.9.14.ebuild b/app-crypt/gnupg/gnupg-1.9.14.ebuild
index 028e061956da..e82c84eaa2fd 100644
--- a/app-crypt/gnupg/gnupg-1.9.14.ebuild
+++ b/app-crypt/gnupg/gnupg-1.9.14.ebuild
@@ -1,18 +1,17 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.9.14.ebuild,v 1.4 2005/01/19 20:26:59 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.9.14.ebuild,v 1.5 2005/01/23 10:17:33 dragonheart Exp $
inherit eutils flag-o-matic
DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
HOMEPAGE="http://www.gnupg.org/"
-SRC_URI="ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/${P}.tar.gz
- idea? ( ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz )"
+SRC_URI="ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/${P}.tar.gz"
-LICENSE="GPL-2 idea? ( IDEA )"
+LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="X caps ldap nls smartcard static idea"
+IUSE="X caps ldap nls smartcard static"
RDEPEND="
!static? (
@@ -43,11 +42,6 @@ DEPEND="caps? ( sys-libs/libcap )
src_unpack() {
unpack ${A}
- # Please read http://www.gnupg.org/why-not-idea.html
- if use idea; then
- mv ${WORKDIR}/idea.c ${S}/cipher/idea.c || \
- ewarn "failed to insert IDEA module"
- fi
sed -i -e 's/PIC/__PIC__/g' ${S}/intl/relocatable.c
}
@@ -100,23 +94,7 @@ pkg_postinst() {
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."
fi
- if use idea; then
- einfo "you have compiled ${PN} with support for the IDEA algorithm, this code"
- einfo "is distributed under the GPL in countries where it is permitted to do so"
- einfo "by law."
- einfo
- einfo "Please read http://www.gnupg.org/why-not-idea.html for more information."
- einfo
- einfo "If you are in a country where the IDEA algorithm is patented, you are permitted"
- einfo "to use it at no cost for 'non revenue generating data transfer between private"
- einfo "individuals'."
- einfo
- einfo "Countries where the patent applies are listed here"
- einfo "http://www.mediacrypt.com/engl/Content/patent_info.htm"
- einfo
- einfo "Further information and other licenses are availble from http://www.mediacrypt.com/"
- fi
- echo
+ einfo
ewarn "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **"
ewarn " THIS IS _ALPHA_ CODE, IT MAY NOT WORK CORRECTLY OR AT ALL. THERE"
ewarn " MAY BE UNDISCOVERED SECURITY OR DATA-LOSS ISSUES, DO NOT USE "
@@ -129,9 +107,9 @@ pkg_postinst() {
ewarn " Please see #37109"
ewarn "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **"
+ einfo
einfo "gpg-agent is now provided in app-crypt/gpg-agent"
-
- einfo ""
+ einfo
einfo "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
- einfo ""
+ einfo
}
diff --git a/app-crypt/gnupg/gnupg-1.9.15.ebuild b/app-crypt/gnupg/gnupg-1.9.15.ebuild
new file mode 100644
index 000000000000..e922ee056109
--- /dev/null
+++ b/app-crypt/gnupg/gnupg-1.9.15.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.9.15.ebuild,v 1.1 2005/01/23 10:17:33 dragonheart Exp $
+
+inherit eutils flag-o-matic
+
+ECCVER=0.1.6
+
+DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
+HOMEPAGE="http://www.gnupg.org/"
+SRC_URI="ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="X caps ldap nls smartcard static threads"
+
+RDEPEND="
+ !static? (
+ ldap? ( net-nds/openldap )
+ caps? ( sys-libs/libcap )
+ sys-libs/zlib
+ )
+ X? ( || ( media-gfx/xloadimage media-gfx/xli ) )
+ nls? ( sys-devel/gettext )
+ >=dev-libs/libgcrypt-1.1.94
+ >=dev-libs/libksba-0.9.7
+ =dev-libs/libassuan-0.6.9
+ smartcard? ( >=dev-libs/opensc-0.8.0 )
+ sys-libs/zlib
+ virtual/libc
+ dev-lang/perl
+ threads? ( >=dev-libs/pth-1.3.7 )
+ virtual/mta"
+
+DEPEND="caps? ( sys-libs/libcap )
+ ldap? ( net-nds/openldap )
+ nls? ( sys-devel/gettext )
+ >=dev-libs/libgcrypt-1.1.94
+ >=dev-libs/libksba-0.9.7
+ >=dev-libs/libassuan-0.6.9
+ smartcard? ( >=dev-libs/opensc-0.8.0 )
+ sys-libs/zlib
+ virtual/libc
+ dev-lang/perl
+ threads? ( >=dev-libs/pth-1.3.7 )"
+
+src_unpack() {
+ unpack ${A}
+ sed -i -e 's/PIC/__PIC__/g' ${S}/intl/relocatable.c
+}
+
+src_compile() {
+ local myconf=""
+
+ if use X; then
+ local viewer
+ if has_version 'media-gfx/xloadimage'; then
+ viewer=/usr/bin/xloadimage
+ else
+ viewer=/usr/bin/xli
+ fi
+ myconf="${myconf} --with-photo-viewer=${viewer}"
+ else
+ myconf="${myconf} --disable-photo-viewers"
+ fi
+
+ append-ldflags -Wl,-z,now
+
+ econf \
+ --disable-agent \
+ `use_enable smartcard scdaemon` \
+ `use_enable nls` \
+ `use_enable ldap` \
+ `use_with caps capabilities` \
+ `use_enable threads` \
+ ${myconf} \
+ || die
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dosym gpg2 /usr/bin/gpg
+
+ # keep the documentation in /usr/share/doc/...
+ rm -rf "${D}/usr/share/gnupg/FAQ" "${D}/usr/share/gnupg/faq.html"
+
+ dodoc ChangeLog INSTALL NEWS README THANKS TODO VERSION
+
+ if ! use caps ; then
+ fperms u+s /usr/bin/gpg2
+ fi
+}
+
+pkg_postinst() {
+ if ! use caps; then
+ 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."
+ fi
+ echo
+ ewarn "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **"
+ ewarn " THIS IS _ALPHA_ CODE, IT MAY NOT WORK CORRECTLY OR AT ALL. THERE"
+ ewarn " MAY BE UNDISCOVERED SECURITY OR DATA-LOSS ISSUES, DO NOT USE "
+ ewarn " IN A PRODUCTION ENVIRONMENT."
+ ewarn ""
+ ewarn " This ebuild is provided for those who wish to experiment with this"
+ ewarn " new branch of gnupg and beta-testers, not for general purpose use"
+ ewarn " by non-developers"
+ ewarn ""
+ ewarn " Please see #37109"
+ ewarn "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **"
+
+ einfo
+ einfo "gpg-agent is now provided in app-crypt/gpg-agent"
+
+ einfo ""
+ einfo "See http://www.gentoo.org/doc/en/gnupg-user.xml for documentation on gnupg"
+ einfo ""
+}