From: Daniel Black Date: Sun, 2 Jan 2005 07:05:34 +0000 (+0000) Subject: Initial version from bug #70811 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5aa4ea0189ae1d230bf656a88bb0215c840e6ed;p=gentoo.git Initial version from bug #70811 --- diff --git a/app-crypt/gpg-agent/ChangeLog b/app-crypt/gpg-agent/ChangeLog new file mode 100644 index 000000000000..2c42b7d7085f --- /dev/null +++ b/app-crypt/gpg-agent/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-crypt/gpg-agent +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gpg-agent/ChangeLog,v 1.1 2005/01/02 07:05:34 dragonheart Exp $ + +*gpg-agent-1.9.14 (02 Jan 2005) + + 02 Jan 2005; Daniel Black +metadata.xml, + +gpg-agent-1.9.14.ebuild: + Initial version from bug #70811. Ebuild initially by Diego Pettenò + + diff --git a/app-crypt/gpg-agent/Manifest b/app-crypt/gpg-agent/Manifest new file mode 100644 index 000000000000..794c045b888c --- /dev/null +++ b/app-crypt/gpg-agent/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 dc609d814cc99e3194285fc3ef907098 gpg-agent-1.9.14.ebuild 2015 +MD5 cc29ca12082ee7e053b860db86333e60 ChangeLog 447 +MD5 b1a4c3f100342f9335a6974737f5e5ec metadata.xml 872 +MD5 337c9671ff169f922ba7d007a3ceaae6 files/digest-gpg-agent-1.9.14 66 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.0 (GNU/Linux) + +iD8DBQFB151EmdTrptrqvGERAlKaAJ9dkX7IqZMp+12XyFxFnzwjxW/RNgCfSvm7 +DNWM16CQFC/GW0DZWfC/3+s= +=xeHL +-----END PGP SIGNATURE----- diff --git a/app-crypt/gpg-agent/files/digest-gpg-agent-1.9.14 b/app-crypt/gpg-agent/files/digest-gpg-agent-1.9.14 new file mode 100644 index 000000000000..3b16262cdbf9 --- /dev/null +++ b/app-crypt/gpg-agent/files/digest-gpg-agent-1.9.14 @@ -0,0 +1 @@ +MD5 fd121b7d368cf27928bfa4ef4e4cc982 gnupg-1.9.14.tar.bz2 1631267 diff --git a/app-crypt/gpg-agent/gpg-agent-1.9.14.ebuild b/app-crypt/gpg-agent/gpg-agent-1.9.14.ebuild new file mode 100644 index 000000000000..7286572a60ce --- /dev/null +++ b/app-crypt/gpg-agent/gpg-agent-1.9.14.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/gpg-agent/gpg-agent-1.9.14.ebuild,v 1.1 2005/01/02 07:05:34 dragonheart Exp $ + +inherit eutils flag-o-matic + +# gpg-agent is took from gnupg package. +GPG_P=gnupg-${PV} +S=${WORKDIR}/${GPG_P} + +DESCRIPTION="The GNU Privacy Guard Agent" +HOMEPAGE="http://www.gnupg.org/" +SRC_URI="ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/${GPG_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86" +# ~arm ~ia64 ~mips ~s390 ~sparce missing until libassuan gets the keywords + +IUSE="nls caps" + +RDEPEND="=dev-libs/libassuan-0.6.9 + caps? ( sys-libs/libcap ) + >=dev-libs/libgpg-error-0.7 + >=dev-libs/libgcrypt-1.1.94" + +DEPEND="${RDEPEND} + dev-lang/perl + sys-apps/sed" + +src_unpack() { + unpack ${A} + sed -e 's:GNUPG_LIBEXECDIR:"/usr/lib/gnupg":' -i ${S}/g10/keyserver.c +} + +src_compile() { + + append-ldflags -Wl,-z,now + econf \ + --libexecdir=/usr/lib \ + --enable-agent-only \ + `use_with caps capabilities` \ + || die + + emake || die +} + +src_test() { + einfo "self test is broken" +} + +src_install() { + cd ${S} + emake DESTDIR=${D} libexecdir="/usr/lib/gnupg" install || die + + # keep the documentation in /usr/share/doc/... + rm -rf "${D}/usr/share/gnupg/FAQ" "${D}/usr/share/gnupg/faq.html" + + dodoc README + + if ! use caps ; then + fperms u+s /usr/bin/gpg-agent + fi +} + +pkg_postinst() { + + 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." + + 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 +} diff --git a/app-crypt/gpg-agent/metadata.xml b/app-crypt/gpg-agent/metadata.xml new file mode 100644 index 000000000000..479005f01d7d --- /dev/null +++ b/app-crypt/gpg-agent/metadata.xml @@ -0,0 +1,20 @@ + + + +crypto + + crypto@gentoo.org + Crypto Herd + + +In an ideal world, Assuan is irrelevant. Assuan's primary use is to +allow a client to interact with a non-persistent server. Using Assuan, +this is accomplished by forking a subprocess and communicating with it +via, for example, a pipe or unix domain socket. This method is neither +elegant nor efficient especially when there is a lot of data spread +across several transactions: not only is there a penalty for an +increased number of context switches, but also a significant amount of +data is MEMCPYed from the client to a file descriptor and from the file +descriptor to the server. + +