blob: b2455c4f3800b2e1863f28359ca501a395de1ee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# 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.19.ebuild,v 1.1 2005/09/19 19:19:50 vanquirius 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="mirror://gnupg/alpha/gnupg/${GPG_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE="caps nls smartcard"
RDEPEND="app-crypt/gnupg
nls? ( sys-devel/gettext )
>=dev-libs/libassuan-0.6.10
caps? ( sys-libs/libcap )
>=dev-libs/libgpg-error-1.0
>=dev-libs/libgcrypt-1.1.94
>=dev-libs/libksba-0.9.12
smartcard? ( >=dev-libs/opensc-0.8.0 )
>=dev-libs/pth-1.3.7"
DEPEND="${RDEPEND}
dev-lang/perl"
src_compile() {
# We install +s only if USE=-caps and not OS X
if ! use ppc-macos && ! use caps
then
append-ldflags '-Wl,-z,now'
fi
econf \
--enable-agent-only \
--disable-scdaemon \
--disable-gpgsm \
--enable-symcryptrun \
$(use_enable nls) \
$(use_with caps capabilities) \
|| die
emake || die
}
src_test() {
ewarn "self test is broken"
}
src_install() {
make DESTDIR="${D}" install || die
dodoc README
if ! use caps ; then
fperms u+s,go-r /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
}
|