Building Pine with PASSFILE option

RW fbsd06 at mlists.homeunix.com
Tue Aug 7 08:09:30 PDT 2007


On Tue, 7 Aug 2007 08:56:39 -0500
"Scot Hetzel" <swhetzel at gmail.com> wrote:

> On 8/7/07, Rakhesh Sasidharan <rakhesh at rakhesh.com> wrote:
> > I understand one can compile the email client Pine with an option
> > PASSFILE=<some file name> to enable the option of saving your mail
> > account passwords. The Pine website talks about it and so do many
> > sites all over the net.

I wish something formal could be sorted out for this, for many people
the security implications of this are negligible.

> > FreeBSD's ports do not seem to offer such an option. I went through
> > the Pine Makefile, however, and I see that the "EXTRA_OPTS"
> > variable is what's used to compile Pine with extra configurable
> > options.
> >
> > So my question is this: if I want to compile Pine from ports with
> > this PASSFILE option, can I do something like the following in
> > /usr/ports/mail/pine4?
> >
> > # make EXTRA_OPTS+=PASSFILE=.pine.pwd install
> >
> 
> This won't work from the command line.
> 
> > I used the "+=" coz I got the got the impression that adds onto the
> > existing extra options. And if I want to make this permanent, can I
> > define it in /etc/make.conf accordingly?
> >
> > .if ${.CURDIR:M*/mail/pine4}
> > EXTRA_OPTS+=	PASSFILE=.pine.pwd
> > .endif
> >
> But it will work from /etc/make.conf (using either "=" or "+="), as
> long as you don't select LDAP support.

Have you actually tried this? A few years ago I couldn't get it, nor
several variations on it, to work. IIRC there were a lot of other people
who had problems with it on various mailing lists.

In the end I created a port patchfile - which gets applied automatically
by the ports system. The only problem with it is that if you use
portsnap you will have to replace it after a "extract", although an
"update" should be OK.

Anyway here's the file:

$ cat /usr/ports/mail/pine4/files/patch-passfile
--- pine/osdep/os-bsf.h.safe    Thu Aug 17 20:55:53 2006
+++ pine/osdep/os-bsf.h Thu Aug 17 21:04:04 2006
@@ -54,6 +54,8 @@

  ----*/

+#define PASSFILE   ".pinepw"
+
 /*----------------------------------------------------------------------
    Define this if you want the disk quota to be checked on startup.
    Of course, this only makes sense if your system has quotas.  If it
doesn't,



More information about the freebsd-ports mailing list