ChangeLog

# ChangeLog for app-crypt/pinentry
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/ChangeLog,v 1.89 2008/06/18 16:09:20 jer Exp $

18 Jun 2008; Jeroen Roovers pinentry-0.7.5.ebuild:
Stable for HPPA (bug #217845).

12 May 2008; Markus Rothe pinentry-0.7.5.ebuild:
Stable on ppc64

03 May 2008; Richard Freeman pinentry-0.7.5.ebuild:
amd64 stable - 217845

17 Apr 2008; nixnut pinentry-0.7.5.ebuild:
Stable on ppc wrt bug 217845

17 Apr 2008; Raúl Porcel pinentry-0.7.5.ebuild:
ia64/sparc/x86 stable wrt #217845

16 Apr 2008; Tobias Klausmann pinentry-0.7.5.ebuild:
Stable on alpha, bug #217845

*pinentry-0.7.5 (23 Mar 2008)

23 Mar 2008; Sven Wegener
+files/pinentry-0.7.5-grab.patch, +files/pinentry-gmem.patch,
pinentry-0.7.3.ebuild, pinentry-0.7.4-r1.ebuild, +pinentry-0.7.5.ebuild:
Version bump, bug #213383. Drop bindnow-flags, bug #213669. Workaround for
API change in >=glib-2.16.1, bug #213382.

13 Feb 2008; Alon Bar-Lev -pinentry-0.7.2-r3.ebuild:
Cleanup

21 Jan 2008; Jeroen Roovers pinentry-0.7.4-r1.ebuild:
Stable for HPPA (bug #206664).

20 Jan 2008; Raúl Porcel pinentry-0.7.4-r1.ebuild:
alpha/ia64/sparc/x86 stable wrt #206664

20 Jan 2008; Christoph Mende
pinentry-0.7.4-r1.ebuild:
Stable on amd64 wrt bug #206664

20 Jan 2008; nixnut pinentry-0.7.4-r1.ebuild:
Stable on ppc wrt bug 206664

20 Jan 2008; Brent Baude ChangeLog:
Marking pinentry-0.7.4-r1 ppc64 for bug 206664

20 Jan 2008; Brent Baude pinentry-0.7.4-r1.ebuild:
Marking pinentry-0.7.4-r1 ppc64 for bug 206664

*pinentry-0.7.4-r1 (22 Dec 2007)

22 Dec 2007; Alon Bar-Lev
files/pinentry-0.7.4-grab.patch, -pinentry-0.7.4.ebuild,
+pinentry-0.7.4-r1.ebuild:
Fix grab (again), this time, remove the map-event completely, bug#201951

21 Dec 2007; Alon Bar-Lev pinentry-0.7.4.ebuild:
Readd flag-o-matic

20 Dec 2007; Alon Bar-Lev
+files/pinentry-0.7.4-grab.patch, pinentry-0.7.4.ebuild:
Readd grab patch, bug#165493

20 Dec 2007; Alon Bar-Lev
+files/pinentry-0.7.4-grab.patch, pinentry-0.7.4.ebuild:
Readd grab patch, bug#165493

*pinentry-0.7.4 (20 Dec 2007)

20 Dec 2007; Alon Bar-Lev -pinentry-0.7.2-r4.ebuild,
+pinentry-0.7.4.ebuild:
Version bump

09 Oct 2007; Christoph Mende pinentry-0.7.3.ebuild:
Stable on amd64 wrt bug #194113

03 Oct 2007; Tom Gall pinentry-0.7.3.ebuild:
stable on ppc64

02 Oct 2007; Raúl Porcel pinentry-0.7.3.ebuild:
alpha/ia64 stable wrt #194113

30 Sep 2007; Markus Meier pinentry-0.7.3.ebuild:
x86 stable, bug #194113

29 Sep 2007; Lars Weiler pinentry-0.7.3.ebuild:
stable ppc, bug #194113

29 Sep 2007; Jeroen Roovers pinentry-0.7.3.ebuild:
Stable for HPPA (bug #194113).

28 Sep 2007; Ferris McCormick pinentry-0.7.3.ebuild:
Sparc stable --- Bug #194113 --- Acts like Manual Sec. 2 says.

*pinentry-0.7.3 (06 Jul 2007)

06 Jul 2007; Alon Bar-Lev +pinentry-0.7.3.ebuild:
Version bump

*pinentry-0.7.2-r4 (15 Jun 2007)

15 Jun 2007; Alon Bar-Lev
+files/pinentry-0.7.2-grab.patch, +pinentry-0.7.2-r4.ebuild:
Fix gtk2+ grab issue, bug#165493, thanks to Vincent Pit

24 Apr 2007; Sven Wegener -pinentry-0.7.2-r2.ebuild:
Cleanup.

12 Apr 2007; Christian Faulhammer
pinentry-0.7.2-r3.ebuild:
stable amd64, bug 167230

01 Mar 2007; Christian Faulhammer
pinentry-0.7.2-r3.ebuild:
stable x86; bug 167230

24 Jan 2007; Marius Mauch pinentry-0.7.2-r2.ebuild,
pinentry-0.7.2-r3.ebuild:
Replacing einfo with elog

09 Jan 2007; Sven Wegener pinentry-0.7.2-r3.ebuild:
Add WANT_AUTO* variables, should fix bug #161165.

10 Oct 2006; Gustavo Zacarias
pinentry-0.7.2-r3.ebuild:
Stable on sparc

24 Sep 2006; Sven Wegener +files/0.7.2-info.patch,
pinentry-0.7.2-r3.ebuild:
Use correct format for direntry to make emacs users happy, bug #133048.

16 Sep 2006; Tobias Scherbaum
pinentry-0.7.2-r3.ebuild:
ppc stable

19 Aug 2006; Bryan Østergaard
pinentry-0.7.2-r3.ebuild:
Stable on alpha.

22 Jul 2006; pinentry-0.7.2-r3.ebuild:
stable on mips

12 Jul 2006; Aron Griffis pinentry-0.7.2-r3.ebuild:
Mark 0.7.2-r3 stable on ia64

12 Jul 2006; Danny van Dyk
pinentry-0.7.2-r3.ebuild:
QA: Changed qt to qt3.

26 Jun 2006; Javier Villavicencio
pinentry-0.7.2-r3.ebuild:
Add ~x86-fbsd keyword.

23 Jun 2006; Doug Goldstein pinentry-0.7.2-r2.ebuild,
pinentry-0.7.2-r3.ebuild:
USE flag qt->qt3/qt4 change

05 Jun 2006; Guy Martin pinentry-0.7.2-r3.ebuild:
Stable on hppa.

18 May 2006; Sven Wegener -pinentry-0.7.2.ebuild:
Remove old version.

16 May 2006; Markus Rothe pinentry-0.7.2-r3.ebuild:
Stable on ppc64; bug #132343

27 Apr 2006; Marien Zwart
files/digest-pinentry-0.7.2, files/digest-pinentry-0.7.2-r2,
files/digest-pinentry-0.7.2-r3, Manifest:
Fixing SHA256 digest for real, pass three...

27 Apr 2006; Marien Zwart
files/digest-pinentry-0.7.2, files/digest-pinentry-0.7.2-r2,
files/digest-pinentry-0.7.2-r3, Manifest:
Fixing SHA256 digest, pass two.

22 Apr 2006; Markus Rothe pinentry-0.7.2-r3.ebuild:
Added ~ppc64; bug #130718

*pinentry-0.7.2-r3 (23 Feb 2006)

23 Feb 2006; Sven Wegener +files/0.7.2-libcap.patch,
+pinentry-0.7.2-r3.ebuild:
Revision bump to include optional capabilities support. Thanks to Diego in
bug #108845.

06 Feb 2006; Herbie Hopkins pinentry-0.7.2-r2.ebuild:
Fix problem detecting qt on amd64's no-symlink profile.

03 Jan 2006; pinentry-0.7.2-r2.ebuild:
Stable on IA64.

30 Dec 2005; Fernando J. Pereda
pinentry-0.7.2-r2.ebuild:
Stable on alpha wrt security bug #116822

29 Dec 2005; Tobias Scherbaum
pinentry-0.7.2-r2.ebuild:
ppc stable, bug #116822

28 Dec 2005; Mark Loeser pinentry-0.7.2-r2.ebuild:
Stable on x86; bug #116822

28 Dec 2005; Gustavo Zacarias
pinentry-0.7.2-r2.ebuild:
Stable on sparc wrt security #116822

28 Dec 2005; Simon Stelling pinentry-0.7.2-r2.ebuild:
stable on amd64 wrt bug 116822

*pinentry-0.7.2-r2 (27 Dec 2005)

27 Dec 2005; Sven Wegener pinentry-0.7.2.ebuild,
-pinentry-0.7.2-r1.ebuild, +pinentry-0.7.2-r2.ebuild:
Fix the fperms call, security bug #116822.

25 Dec 2005; Diego Pettenò
pinentry-0.7.2-r1.ebuild:
Use bindnow-flags function instead of -Wl,-z,now.

*pinentry-0.7.2-r1 (22 Sep 2005)

22 Sep 2005; Sven Wegener +pinentry-0.7.2-r1.ebuild:
Deprecate gtk2 USE flag, bug #106560.

19 Sep 2005; Gustavo Zacarias pinentry-0.7.2.ebuild:
Stable on sparc

07 Aug 2005; Daniel Black pinentry-0.7.2.ebuild:
changed to mirror://gnupg

31 Jul 2005; Aaron Walker pinentry-0.7.2.ebuild:
Added ~mips.

28 Jul 2005; Caleb Tennis pinentry-0.7.2.ebuild:
Made qt dep qt3 explicit per bug #100235

08 May 2005; Sven Wegener
-files/qt-compile-fix.diff, -pinentry-0.7.1-r1.ebuild:
Removed old ebuild.

01 Apr 2005; Michael Hanselmann pinentry-0.7.2.ebuild:
Stable on ppc.

15 Mar 2005; Michael Cummings pinentry-0.7.2.ebuild:
Keywording for ~sparc - makes manifest signing so much nicer. Bug 85376

13 Mar 2005; Marcus D. Hanwell pinentry-0.7.2.ebuild:
Marked stable on amd64.

12 Mar 2005; Aron Griffis pinentry-0.7.2.ebuild:
stable on alpha, ia64 and x86

*pinentry-0.7.2 (28 Jan 2005)

28 Jan 2005; Sven Wegener
-pinentry-0.7.1_p20041207.ebuild, +pinentry-0.7.2.ebuild:
Version bump, bug #79801.

02 Jan 2005; Ciaran McCreesh :
Change encoding to UTF-8 for GLEP 31 compliance

*pinentry-0.7.1_p20041207 (07 Dec 2004)

07 Dec 2004; Sven Wegener metadata.xml,
-pinentry-0.7.0.ebuild, +pinentry-0.7.1_p20041207.ebuild:
Version bump, CVS snapshot with gtk+-2 support. Closes bug #73704.

05 Oct 2004; Pieter Van den Abeele
pinentry-0.7.0.ebuild, pinentry-0.7.1-r1.ebuild:
Masked pinentry-0.7.1-r1.ebuild stable for ppc

05 Oct 2004; Pieter Van den Abeele
pinentry-0.7.0.ebuild:
Masked pinentry-0.7.0.ebuild stable for ppc

25 Aug 2004; Travis Tilley pinentry-0.7.1-r1.ebuild:
stable on amd64

07 Aug 2004; Daniel Black -pinentry-0.6.9.ebuild,
pinentry-0.7.1-r1.ebuild, -pinentry-0.7.1.ebuild:
Version 0.7.1 was broken. added x86 keyword to 0.7.1-r1. removed old version

*pinentry-0.7.1-r1 (21 Jun 2004)

21 Jun 2004; Bryan Østergaard
+files/qt-compile-fix.diff, +pinentry-0.7.1-r1.ebuild:
Add qt compile fix submitted by Sebastian Trueg
in bug #54225. Also use emake and einstall.

07 Jun 2004; Daniel Black +metadata.xml,
pinentry-0.7.0.ebuild, pinentry-0.7.1.ebuild:
x86 keyword

20 May 2004; pinentry-0.7.1.ebuild:
Works on amd64 perfectly

*pinentry-0.7.1 (01 May 2004)

01 May 2004; Bryan Østergaard +pinentry-0.7.1.ebuild:
Bump version, bug #48917.

26 Apr 2004; Aron Griffis pinentry-0.6.9.ebuild:
Add die following econf for bug 48950

*pinentry-0.7.0 (28 Feb 2004)

28 Feb 2004; Mike Frysinger :
Version bumpage. Cause the ebuild to fall back to ncurses if user
has -gtk -qt and -ncurses in USE instead of calling die itself.

*pinentry-0.6.9 (21 Sep 2003)

21 Sep 2003; Caleb Tennis pinentry-0.6.8.ebuild,
pinentry-0.6.8.ebuild, pinentry-0.6.9.ebuild:
version bump, old one didn't compile with qt-3.2

*pinentry-0.6.8 (07 Apr 2003)

07 Apr 2003; danarmak pinentry-0.6.8.ebuild:
New upstream version. Added because the kmail page about Aegypten says it is
needed. Makes patch from 0.6.7-r1 unnecessary as it was taken from the
pinentry cvs in the first place.

*pinentry-0.6.7-r1 (07 Feb 2003)

05 Mar 2003; Bartosch Pixa
pinentry-0.6.7-r1.ebuild:
set ~ppc in keywords

07 Feb 2003; J Robert Ray : Added patch to correct
problem with pinentry-qt. Thanks to Paul de Vrieze .

*pinentry-0.6.7 (06 Feb 2003)

06 Feb 2003; J Robert Ray : Initial ebuild. QT support
is currently broken and disabled.

Manifest

AUX 0.7.2-info.patch 541 RMD160 c62e0e0b2ef45d4b9f0134a3468863c28074cf86 SHA1 0136f0332d29e0396510b3492f5eb27f43972774 SHA256 284c24b0f8a5199e1833837ef33fd8c94c7da451e688fdf7f195ab11cb6d9359
AUX 0.7.2-libcap.patch 910 RMD160 21292ff64730826431d78d1f96a1909cb2c8997c SHA1 bc523a03e593f3bfa84437bdc603d683a21097f5 SHA256 4d142f836bcbcbfcf21412d891335e6d4351ebced3c5a699e493e5f6a4599701
AUX pinentry-0.7.2-grab.patch 658 RMD160 6ea97caf552316ba3dad87fc976f3fd2407237e2 SHA1 f5b15301427217ff8cf9144343ded6fcf74f7151 SHA256 061d9c0f7d9c1c6902eacebb4ffc520260259d8f9de5abca254c606ed6276259
AUX pinentry-0.7.4-grab.patch 717 RMD160 3dd998c7a2d06c8923345356489f58258121d3df SHA1 884f34b3aa1d79383495ee7ec653fbbbeaac8125 SHA256 747e3faccbc5b4f41999b2d65ebfe82e671708d2c6d952e737a9014320dd8319
AUX pinentry-0.7.5-grab.patch 536 RMD160 66f86ff0c8c208ec62de1dea2b2c3edeca41d0fb SHA1 cbb4a01242ce73ebb18c38d9541f03017691a265 SHA256 149fadfa505e55fa4f4e1fb5536066b87290566df4d890e6f4087d86f213188a
AUX pinentry-gmem.patch 880 RMD160 82c41513e47be43a801ec0d2e6cf89857b5e373f SHA1 34abb7caa0aecbd4d8f592695c30e40311425688 SHA256 484dafa00a7fe6e04380d32f3a468082d68923c11f8e3fb007e09018b4b617f5
DIST pinentry-0.7.3.tar.gz 417000 RMD160 b7bb850e55337cefb7ec0d4eea91924c6903cce2 SHA1 557b886bc7a7030fd185fbc085703ef1ed304db8 SHA256 df1d2c47d501031b4c995cee3e464e62578b8959559121a207a8046e2cd9a5bf
DIST pinentry-0.7.4.tar.gz 416651 RMD160 32b375586da2e2fc92c672484557af280481eeff SHA1 6cd28bda641a6c89d0bb4120e646f967605c532a SHA256 31ecfe618f67fda24a6514d21749344d8e8f9f4cd66b19f361622e73515aa04f
DIST pinentry-0.7.5.tar.gz 422801 RMD160 4ed9d06981b647f9fd39b9d30651a36307869c2d SHA1 6699a1ff94c649e8905199d480c6412cc43bad3d SHA256 cb269ac058793b2df343a12a65e3402abc4b68503e105b12e4ca903d8d8e3172
EBUILD pinentry-0.7.3.ebuild 2285 RMD160 d3706e6a1b25a336359bb9ee550aa1aa1f7c1a8a SHA1 e589b98a074e794757d8a0881dbaba812ff7c51d SHA256 064c24cb5f655b055fb577fd68d9803e5738f69d3eee6b94aceaf8043ad99258
EBUILD pinentry-0.7.4-r1.ebuild 2122 RMD160 08cd63e0e31d0b1ce47524b3cb1604f7cf4196a4 SHA1 efc1c274bd6720ac058f078b41f9c3439544bb3c SHA256 7fb46b3897c286799c6f1093e18e1e4adbdc97cd5e139afcc79a8b3b4516099f
EBUILD pinentry-0.7.5.ebuild 2114 RMD160 f477639a84df048134c46c83e889d755c7da9f59 SHA1 4780f95c561dbaa1db59e6d3ae3e691dc0726649 SHA256 2bbe930bd61efbf6563d6f5f3e391026b3320e70ee9abdc1c174f920346451bd
MISC ChangeLog 11616 RMD160 f4295e574d156896ca5ce15511a4b918c440e1df SHA1 fdb524b17a5c99eb51a2fbfd6b80a9d8fea9808e SHA256 f7f46a44e4baa691826b6993607af802ff3778c7eec7ea28731ab6771ba3567f
MISC metadata.xml 275 RMD160 7aca4724ede81b0eaad9b4536f00a6a805727cef SHA1 b1a92ff0d6bfacd26122ac4dbd4725ef2b023f81 SHA256 1e9c7343efc06a4d4143421f4bf3740c30f71ed6ce5011231505e7e911f31548

files

metadata.xml




no-herd

swegener@gentoo.org
Primary Maintainer

pinentry-0.7.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/pinentry-0.7.3.ebuild,v 1.10 2008/03/23 13:08:32 swegener Exp $

#WANT_AUTOCONF="2.5"
#WANT_AUTOMAKE="1.9"

inherit qt3 multilib eutils autotools

DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
HOMEPAGE="http://www.gnupg.org/aegypten/"
SRC_URI="mirror://gnupg/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="gtk ncurses qt3 caps"

DEPEND="gtk? ( =x11-libs/gtk+-2* )
ncurses? ( sys-libs/ncurses )
qt3? ( $(qt_min_version 3.3) )
!gtk? ( !qt3? ( !ncurses? ( sys-libs/ncurses ) ) )
caps? ( sys-libs/libcap )"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/0.7.2-libcap.patch"
epatch "${FILESDIR}/0.7.2-info.patch"
epatch "${FILESDIR}/${PN}-0.7.2-grab.patch"
epatch "${FILESDIR}/${PN}-gmem.patch"

AT_M4DIR="m4" eautoreconf
}

src_compile() {
local myconf=""

if ! ( use qt3 || use gtk || use ncurses )
then
myconf="--enable-pinentry-curses --enable-fallback-curses"
fi

# Issues finding qt on multilib systems
export QTLIB="${QTDIR}/$(get_libdir)"

econf \
--disable-dependency-tracking \
--enable-maintainer-mode \
--disable-pinentry-gtk \
$(use_enable gtk pinentry-gtk2) \
$(use_enable qt3 pinentry-qt) \
$(use_enable ncurses pinentry-curses) \
$(use_enable ncurses fallback-curses) \
$(use_with caps libcap) \
${myconf} \
|| die "econf failed"
emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die "dodoc failed"
}

pkg_postinst() {
elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
elog "The soft resource limit for memory locking specifies the limit an"
elog "unprivileged process may lock into memory. You can also use POSIX"
elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
elog "your users."
}

pinentry-0.7.4-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/pinentry-0.7.4-r1.ebuild,v 1.7 2008/03/23 13:08:32 swegener Exp $

inherit qt3 multilib eutils

DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
HOMEPAGE="http://www.gnupg.org/aegypten/"
SRC_URI="mirror://gnupg/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
IUSE="gtk ncurses qt3 caps"

DEPEND="gtk? ( =x11-libs/gtk+-2* )
ncurses? ( sys-libs/ncurses )
qt3? ( $(qt_min_version 3.3) )
!gtk? ( !qt3? ( !ncurses? ( sys-libs/ncurses ) ) )
caps? ( sys-libs/libcap )"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/${P}-grab.patch"
epatch "${FILESDIR}/${PN}-gmem.patch"
}

src_compile() {
local myconf=""

if ! ( use qt3 || use gtk || use ncurses )
then
myconf="--enable-pinentry-curses --enable-fallback-curses"
fi

# Issues finding qt on multilib systems
export QTLIB="${QTDIR}/$(get_libdir)"

econf \
--disable-dependency-tracking \
--enable-maintainer-mode \
--disable-pinentry-gtk \
$(use_enable gtk pinentry-gtk2) \
$(use_enable qt3 pinentry-qt) \
$(use_enable ncurses pinentry-curses) \
$(use_enable ncurses fallback-curses) \
$(use_with caps libcap) \
${myconf} \
|| die "econf failed"
emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die "dodoc failed"
}

pkg_postinst() {
elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
elog "The soft resource limit for memory locking specifies the limit an"
elog "unprivileged process may lock into memory. You can also use POSIX"
elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
elog "your users."
}

pinentry-0.7.5.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/pinentry-0.7.5.ebuild,v 1.7 2008/06/18 16:09:20 jer Exp $

inherit qt3 multilib eutils

DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
HOMEPAGE="http://www.gnupg.org/aegypten/"
SRC_URI="mirror://gnupg/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
IUSE="gtk ncurses qt3 caps"

DEPEND="gtk? ( =x11-libs/gtk+-2* )
ncurses? ( sys-libs/ncurses )
qt3? ( $(qt_min_version 3.3) )
!gtk? ( !qt3? ( !ncurses? ( sys-libs/ncurses ) ) )
caps? ( sys-libs/libcap )"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/${P}-grab.patch"
epatch "${FILESDIR}/${PN}-gmem.patch"
}

src_compile() {
local myconf=""

if ! ( use qt3 || use gtk || use ncurses )
then
myconf="--enable-pinentry-curses --enable-fallback-curses"
fi

# Issues finding qt on multilib systems
export QTLIB="${QTDIR}/$(get_libdir)"

econf \
--disable-dependency-tracking \
--enable-maintainer-mode \
--disable-pinentry-gtk \
$(use_enable gtk pinentry-gtk2) \
$(use_enable qt3 pinentry-qt) \
$(use_enable ncurses pinentry-curses) \
$(use_enable ncurses fallback-curses) \
$(use_with caps libcap) \
${myconf} \
|| die "econf failed"
emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die "dodoc failed"
}

pkg_postinst() {
elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
elog "The soft resource limit for memory locking specifies the limit an"
elog "unprivileged process may lock into memory. You can also use POSIX"
elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
elog "your users."
}