Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2014 00:36:24 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Max Brazhnikov <makc@freebsd.org>
Cc:        freebsd-ports@freebsd.org, kuriyama@freebsd.org
Subject:   Re: security/pinentry patch for WINOUT_X11 systems
Message-ID:  <alpine.BSF.2.00.1412230029510.43012@woozle.rinet.ru>
In-Reply-To: <2268647.U1Fxhxdyog@mercury.ph.man.ac.uk>
References:  <alpine.BSF.2.00.1412191524060.3820@woozle.rinet.ru> <2268647.U1Fxhxdyog@mercury.ph.man.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Dec 2014, Max Brazhnikov wrote:

> > pinentry currently brokes if WITHOUT_X11 (or, by new world orderm 
> > OPTIONS_UNSET+=X11) is set.
> 
> You can use security/pinentry-curses if you don't want Qt/GTK+ gui.

Ah I see.  Maybe then security/gnupg should detect headless config and switch 
between generic and curses ports, perhaps?

Index: security/gnupg/Makefile
===================================================================
--- security/gnupg/Makefile     (revision 375271)
+++ security/gnupg/Makefile     (working copy)
@@ -22,7 +22,11 @@
                libksba.so:${PORTSDIR}/security/libksba \
                libnpth.so:${PORTSDIR}/devel/npth
 BUILD_DEPENDS= libgpg-error>=1.11:${PORTSDIR}/security/libgpg-error
+.if defined(WITHOUT_X11) || ${OPTIONS_UNSET:MX11}
+RUN_DEPENDS=   pinentry>0:${PORTSDIR}/security/pinentry-curses
+.else
 RUN_DEPENDS=   pinentry>0:${PORTSDIR}/security/pinentry
+.endif

 GNU_CONFIGURE= YES
 USES=          gmake iconv tar:bzip2


-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1412230029510.43012>