Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 2014 07:10:23 -0800
From:      "Chris H" <bsd-lists@bsdforge.com>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-ports@freebsd.org, Matt Smith <fbsd@xtaz.co.uk>
Subject:   Re: gnupg & pinentry
Message-ID:  <905f9b0e84ac19dff7be71a9f040fc40@ultimatedns.net>
In-Reply-To: <alpine.BSF.2.00.1412241222240.90549@woozle.rinet.ru>
References:  <CAJuc1zPtDsOQG2oAKoTVB%2BpVyox8h1mGZOW6CtMBw1GN7=vnOg@mail.gmail.com> <20141222094630.GF52267@xtaz.uk> <1419342257.1161578.206107753.2999EC08@webmail.messagingengine.com>, <20141223135111.GA45509@xtaz.uk> <c3a98cd3db28250390c46275862214ea@ultimatedns.net>, <alpine.BSF.2.00.1412241222240.90549@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Dec 2014 12:23:38 +0300 (MSK) Dmitry Morozovsky <marck@rinet.ru>
wrote

> On Tue, 23 Dec 2014, Chris H wrote:
> 
> > > >It looks as though it would be feasible to write an extremely
> > > >lightweight pinentry-compatible program to depend on so we can kill the
> > > >dependency bloat and have a simple shell-based password entry option.
> > > >
> > > >Anyone up for a weekend challenge? :-)
> > > 
> > > There has been another thread on this mailing list discussing making the 
> > > port honour the WITHOUT_X11 and OPTIONS_UNSET+=X11 options from 
> > > make.conf which would make it only depend on security/pinentry-curses 
> > > instead of security/pinentry. This seems like a good solution to me. It 
> > > would mean if one of those options is set it will only drag in a single 
> > > dependancy rather than all the X11 libraries and GTK.
> > A quick look @ the security/pinentry Makefile, indicates that the
> > request for this type of modification is trivial. It simply requires
> > reversing the (PORT_)OPTIONS logic -- this port could completed in
> > under 5 minutes. So unless instructed otherwise, I'll go ahead with
> > this.
> > One last question; pinentry-console, or pinentry-nox?
> 
> already defined: pinentry-curses ;)
Right you are, Dmitry. :)
> 
> (see side thread)
> 
> Patch I snet previoursy is syntax incorrect, the following seems to be more 
> useful:
> 
> Index: Makefile
> ===================================================================
> --- Makefile    (revision 375271)
> +++ 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) || !empty(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

Yes, I had a closer look at the code last night, and the only
possible addition I could find. Was possibly adding:
--disable-fallback-curses
to the -ncurses slave port. But in the end, what would be gained?
I think your patch above does it all.

Thanks for your time, and consideration, Dmitry, and
have a Merry Christmas!

--Chris

> 
> 
> -- 
> 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?905f9b0e84ac19dff7be71a9f040fc40>