On 8/7/07, Rakhesh Sasidharan <[EMAIL PROTECTED]> wrote: > RW wrote: > >> 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. > > I think you are right, it doesn't work. I modified the pine4 Makefile to > pass the PASSFILE variable but Pine doesn't seem to be built with PASSFILE > support. > As you found out setting the PASSFILE variable via the Makefile or /etc/make.conf didn't work.
I was able to make it work with the hint from RW by modifying pine/osdep/os-bsf.h, and then creating a new patch-ac file. Attached is the patch for the ports Makefile, and files/patch-ac. The only thing missing is your change for the warning message when the PASSFILE option is enabled. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Index: Makefile =================================================================== RCS file: /home/ncvs/ports/mail/pine4/Makefile,v retrieving revision 1.87 diff -u -r1.87 Makefile --- Makefile 15 Oct 2006 21:15:24 -0000 1.87 +++ Makefile 8 Aug 2007 05:58:14 -0000 @@ -23,6 +23,7 @@ OPTIONS= PICO "Build and install pico, the default editor" on \ MAILDIR "Add a patch that provides maildir support" off \ + PASSFILE "Add support for a Pine Password File (DANGEROUS)" off \ LDAP "Add support for LDAP" off \ IPV6 "Add support for IPv6" off @@ -59,8 +60,14 @@ EXTRA_OPTS+= IP=6 .endif +.if defined(WITH_PASSFILE) +PASSFILE?= .pine.pwd +EXTRA_OPTS+= EXTRACFLAGS="-DWITH_PASSFILE" +.endif + MAN1= pine.1 pilot.1 rpdump.1 rpload.1 + pre-fetch: .if !defined(BATCH) && !defined(PACKAGE_BUILDING) ${SH} pkg-install @@ -96,6 +103,7 @@ ${SED} -e "s:/usr/local/etc/:${PREFIX}/etc/:g" \ -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \ -e "s:@@PREFIX@@:${PREFIX}:g" \ + -e "s:@@PASSFILE@@:${PASSFILE}:g" \ -e "s:/usr/local/pine.conf:${PREFIX}/etc/pine.conf:g" \ $$i.presed > $$i ; \ done Index: files/patch-ac =================================================================== RCS file: /home/ncvs/ports/mail/pine4/files/patch-ac,v retrieving revision 1.13 diff -u -r1.13 patch-ac --- files/patch-ac 10 Sep 2003 19:03:19 -0000 1.13 +++ files/patch-ac 8 Aug 2007 05:39:50 -0000 @@ -1,47 +1,43 @@ -*** pine/osdep/os-bsf.h.orig Fri May 23 09:05:21 2003 ---- pine/osdep/os-bsf.h Fri Sep 5 01:44:20 2003 -*************** -*** 87,93 **** - NOTE: You'll also have to make sure the appropriate osdep/postreap.* - file is included in the os-*.ic file for your system. - ----*/ -! /* #define BACKGROUND_POST */ - - - ---- 87,93 ---- - NOTE: You'll also have to make sure the appropriate osdep/postreap.* - file is included in the os-*.ic file for your system. - ----*/ -! #define BACKGROUND_POST - - - -*************** -*** 209,214 **** ---- 209,216 ---- - #define DF_KBLOCK_PASSWD_COUNT "1" - #define DF_REMOTE_ABOOK_HISTORY "3" - -+ #define DF_SPELLER "@@PREFIX@@/bin/ispell" -+ - /*---------------------------------------------------------------------- - The default printer when pine starts up for the first time with no printer - ----*/ -*************** -*** 280,286 **** - 8 - 9 logs gross details of command execution - ----*/ -! #define DEFAULT_DEBUG 2 - - - ---- 282,288 ---- - 8 - 9 logs gross details of command execution - ----*/ -! #define DEFAULT_DEBUG 0 - - - +--- pine/osdep/os-bsf.h.orig 2003-05-23 11:05:21.000000000 -0500 ++++ pine/osdep/os-bsf.h 2007-08-08 00:37:43.052862356 -0500 +@@ -87,7 +87,7 @@ + NOTE: You'll also have to make sure the appropriate osdep/postreap.* + file is included in the os-*.ic file for your system. + ----*/ +-/* #define BACKGROUND_POST */ ++#define BACKGROUND_POST + + + +@@ -209,6 +209,8 @@ + #define DF_KBLOCK_PASSWD_COUNT "1" + #define DF_REMOTE_ABOOK_HISTORY "3" + ++#define DF_SPELLER "@@PREFIX@@/bin/ispell" ++ + /*---------------------------------------------------------------------- + The default printer when pine starts up for the first time with no printer + ----*/ +@@ -250,6 +252,13 @@ + #define MAX_SCREEN_COLS (170) + #define MAX_SCREEN_ROWS (200) + ++/*---------------------------------------------------------------------- ++ File name used to store the user's server/id/password triple between ++ session. It is rooted in the same directory as the PINERC. ++ ----*/ ++#ifdef WITH_PASSFILE ++#define PASSFILE "@@PASSFILE@@" ++#endif + + /*---------------------------------------------------------------------- + Where to put the output of pine in debug mode. Files are created +@@ -280,7 +289,7 @@ + 8 + 9 logs gross details of command execution + ----*/ +-#define DEFAULT_DEBUG 2 ++#define DEFAULT_DEBUG 0 + + +
_______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"