From mandree@FreeBSD.org  Mon Dec 10 21:51:48 2012
Return-Path: <mandree@FreeBSD.org>
Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87])
	by hub.freebsd.org (Postfix) with ESMTP id 9B097CBE;
	Mon, 10 Dec 2012 21:51:48 +0000 (UTC)
	(envelope-from mandree@FreeBSD.org)
Received: from mandree by apollo.emma.line.org with local (Exim 4.80.1 (FreeBSD))
	(envelope-from <mandree@FreeBSD.org>)
	id 1TiBFs-0001tp-97; Mon, 10 Dec 2012 22:51:16 +0100
Message-Id: <E1TiBFs-0001tp-97@apollo.emma.line.org>
Date: Mon, 10 Dec 2012 22:51:16 +0100
From: Matthias Andree <mandree@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: chalpin@cs.wisc.edu
Subject: [PATCH] mail/fetchmail: update to 6.3.23
X-Send-Pr-Version: 3.113
X-GNATS-Notify: chalpin@cs.wisc.edu

>Number:         174345
>Category:       ports
>Synopsis:       [PATCH] mail/fetchmail: update to 6.3.23
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    araujo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 10 22:00:01 UTC 2012
>Closed-Date:    Sun Jan 06 19:41:16 UTC 2013
>Last-Modified:  Sun Jan  6 19:50:00 UTC 2013
>Originator:     Matthias Andree
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD apollo.emma.line.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1 r243469: Sat Nov 24 04:17:15 CET
>Description:
- Update to 6.3.23

Port maintainer (chalpin@cs.wisc.edu) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: ports)
>How-To-Repeat:
>Fix:

--- fetchmail-6.3.23.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/Makefile ./Makefile
--- /usr/ports/mail/fetchmail/Makefile	2012-11-17 06:59:03.000000000 +0100
+++ ./Makefile	2012-12-10 22:46:30.000000000 +0100
@@ -2,7 +2,7 @@
 # Date created:		25 Feb 2000
 # Whom:			Ville Eerola <ve@sci.fi>
 #
-# $FreeBSD: ports/mail/fetchmail/Makefile,v 1.224 2012/11/17 05:59:03 svnexp Exp $
+# $FreeBSD: head/mail/fetchmail/Makefile 303362 2012-08-30 06:24:48Z mandree $
 #
 # NOTE:  The fetchmailconf program (an interactive program for
 # writing .fetchmailrc files) requires Python, Tk, X11, etc..
@@ -11,7 +11,7 @@
 # want fetchmailconf to work, define the X11 option.
 
 PORTNAME=	fetchmail
-PORTVERSION=	6.3.22
+PORTVERSION=	6.3.23
 CATEGORIES=	mail ipv6
 MASTER_SITES=	BERLIOS/${PORTNAME}/ \
 		SF/${PORTNAME}/branch_6.3/ \
diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/distinfo ./distinfo
--- /usr/ports/mail/fetchmail/distinfo	2012-08-30 08:24:48.000000000 +0200
+++ ./distinfo	2012-12-10 22:47:04.000000000 +0100
@@ -1,2 +1,2 @@
-SHA256 (fetchmail-6.3.22.tar.xz) = 9ab51a851f79e16258f068e791c39e3e378a99927f70c9635132f4295d70b1a4
-SIZE (fetchmail-6.3.22.tar.xz) = 1260296
+SHA256 (fetchmail-6.3.23.tar.xz) = 9e1d3203905150d8b3a4bd1294e2a5c23013938deefab7f5adf8c0d9ae15d482
+SIZE (fetchmail-6.3.23.tar.xz) = 1263416
diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/files/fetchmail.in ./files/fetchmail.in
--- /usr/ports/mail/fetchmail/files/fetchmail.in	2012-11-17 06:59:03.000000000 +0100
+++ ./files/fetchmail.in	2012-10-08 23:23:15.000000000 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $FreeBSD: ports/mail/fetchmail/files/fetchmail.in,v 1.12 2012/11/17 05:59:03 svnexp Exp $
+# $FreeBSD: head/mail/fetchmail/files/fetchmail.in 300896 2012-07-14 13:54:48Z beat $
 #
 
 # PROVIDE: fetchmail
diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/files/fetchmailconf ./files/fetchmailconf
--- /usr/ports/mail/fetchmail/files/fetchmailconf	2012-11-17 06:59:03.000000000 +0100
+++ ./files/fetchmailconf	2012-10-08 23:23:15.000000000 +0200
@@ -3,7 +3,7 @@
 # Wrapper for the real fetchmailconf.  Checks whether Python and Tkinter are
 # installed, and runs the real fetchmailconf or alerts the user, as appropriate.
 #
-# $FreeBSD: ports/mail/fetchmail/files/fetchmailconf,v 1.8 2012/11/17 05:59:03 svnexp Exp $
+# $FreeBSD: head/mail/fetchmail/files/fetchmailconf 300896 2012-07-14 13:54:48Z beat $
 
 LOCALBASE=@LOCALBASE@
 
diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/pkg-plist ./pkg-plist
--- /usr/ports/mail/fetchmail/pkg-plist	2012-11-17 06:59:03.000000000 +0100
+++ ./pkg-plist	2012-10-08 23:23:15.000000000 +0200
@@ -1,4 +1,4 @@
-@comment $FreeBSD: ports/mail/fetchmail/pkg-plist,v 1.32 2012/11/17 05:59:03 svnexp Exp $
+@comment $FreeBSD: head/mail/fetchmail/pkg-plist 303362 2012-08-30 06:24:48Z mandree $
 bin/fetchmail
 bin/fetchmailconf
 libexec/fetchmailconf.py
--- fetchmail-6.3.23.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Dec 10 22:00:37 UTC 2012 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: chalpin@cs.wisc.edu
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Mon, 10 Dec 2012 22:00:36 UT

 Maintainer of mail/fetchmail,
 
 Please note that PR ports/174345 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/174345
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Corey Halpin <chalpin@cs.wisc.edu>
To: bug-followup@FreeBSD.ORG
Cc:  
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Mon, 10 Dec 2012 19:58:11 -0600

 --SUOF0GtieIMvvwua
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
   Approve.
 
 ~crh
 
 --SUOF0GtieIMvvwua
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iF4EAREIAAYFAlDGkzMACgkQR8PgTIRJoTVtOAD/S+rWktLLPI+yE+Xv0bf1oTb7
 RamV6aZLp7xdp7XF/akBAIQBd+7w771tBX17ZewA8KDUzhKeeIgWQxmrz34JC4eJ
 =TeFP
 -----END PGP SIGNATURE-----
 
 --SUOF0GtieIMvvwua--
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Tue Dec 11 03:38:58 UTC 2012 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 
Responsible-Changed-From-To: freebsd-ports-bugs->araujo 
Responsible-Changed-By: araujo 
Responsible-Changed-When: Tue Dec 11 11:09:39 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 
State-Changed-From-To: open->suspended 
State-Changed-By: mandree 
State-Changed-When: Fri Dec 14 00:38:32 UTC 2012 
State-Changed-Why:  
Please do not upgrade to 6.3.23 - there is a regression, and there are 
queued memory leak fixes queued for a future 6.3.24 release. IFF you 
want to upgrade, check 
http://gitorious.org/fetchmail/fetchmail/commits/legacy_63 for 
post-6.3.23 fixes and take them. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 

From: Corey Halpin <chalpin@cs.wisc.edu>
To: bug-followup@FreeBSD.ORG
Cc: mandree@FreeBSD.ORG
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Thu, 13 Dec 2012 19:51:01 -0600

 --69pVuxX8awAiJ7fD
 Content-Type: multipart/mixed; boundary="i9LlY+UWpKt15+FH"
 Content-Disposition: inline
 
 
 --i9LlY+UWpKt15+FH
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
   Attached is a revised patch which incorporates the changes Matthias=20
 indicated.
 
 ~crh
 
 
 
 --i9LlY+UWpKt15+FH
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: attachment; filename="fetchmail-6.3.23+patches.patch"
 Content-Transfer-Encoding: quoted-printable
 
 diff -ruN /usr/ports/mail/fetchmail/Makefile fetchmail/Makefile
 --- /usr/ports/mail/fetchmail/Makefile	2012-11-16 23:59:03.000000000 -0600
 +++ fetchmail/Makefile	2012-12-13 19:34:08.000000000 -0600
 @@ -2,7 +2,7 @@
  # Date created:		25 Feb 2000
  # Whom:			Ville Eerola <ve@sci.fi>
  #
 -# $FreeBSD: ports/mail/fetchmail/Makefile,v 1.224 2012/11/17 05:59:03 svne=
 xp Exp $
 +# $FreeBSD: head/mail/fetchmail/Makefile 303362 2012-08-30 06:24:48Z mandr=
 ee $
  #
  # NOTE:  The fetchmailconf program (an interactive program for
  # writing .fetchmailrc files) requires Python, Tk, X11, etc..
 @@ -11,7 +11,7 @@
  # want fetchmailconf to work, define the X11 option.
 =20
  PORTNAME=3D	fetchmail
 -PORTVERSION=3D	6.3.22
 +PORTVERSION=3D	6.3.23
  CATEGORIES=3D	mail ipv6
  MASTER_SITES=3D	BERLIOS/${PORTNAME}/ \
  		SF/${PORTNAME}/branch_6.3/ \
 diff -ruN /usr/ports/mail/fetchmail/distinfo fetchmail/distinfo
 --- /usr/ports/mail/fetchmail/distinfo	2012-08-30 01:24:48.000000000 -0500
 +++ fetchmail/distinfo	2012-12-13 19:34:08.000000000 -0600
 @@ -1,2 +1,2 @@
 -SHA256 (fetchmail-6.3.22.tar.xz) =3D 9ab51a851f79e16258f068e791c39e3e378a9=
 9927f70c9635132f4295d70b1a4
 -SIZE (fetchmail-6.3.22.tar.xz) =3D 1260296
 +SHA256 (fetchmail-6.3.23.tar.xz) =3D 9e1d3203905150d8b3a4bd1294e2a5c230139=
 38deefab7f5adf8c0d9ae15d482
 +SIZE (fetchmail-6.3.23.tar.xz) =3D 1263416
 diff -ruN /usr/ports/mail/fetchmail/files/fetchmail.in fetchmail/files/fetc=
 hmail.in
 --- /usr/ports/mail/fetchmail/files/fetchmail.in	2012-11-16 23:59:03.000000=
 000 -0600
 +++ fetchmail/files/fetchmail.in	2012-12-13 19:34:08.000000000 -0600
 @@ -1,6 +1,6 @@
  #!/bin/sh
  #
 -# $FreeBSD: ports/mail/fetchmail/files/fetchmail.in,v 1.12 2012/11/17 05:5=
 9:03 svnexp Exp $
 +# $FreeBSD: head/mail/fetchmail/files/fetchmail.in 300896 2012-07-14 13:54=
 :48Z beat $
  #
 =20
  # PROVIDE: fetchmail
 diff -ruN /usr/ports/mail/fetchmail/files/fetchmailconf fetchmail/files/fet=
 chmailconf
 --- /usr/ports/mail/fetchmail/files/fetchmailconf	2012-11-16 23:59:03.00000=
 0000 -0600
 +++ fetchmail/files/fetchmailconf	2012-12-13 19:34:08.000000000 -0600
 @@ -3,7 +3,7 @@
  # Wrapper for the real fetchmailconf.  Checks whether Python and Tkinter a=
 re
  # installed, and runs the real fetchmailconf or alerts the user, as approp=
 riate.
  #
 -# $FreeBSD: ports/mail/fetchmail/files/fetchmailconf,v 1.8 2012/11/17 05:5=
 9:03 svnexp Exp $
 +# $FreeBSD: head/mail/fetchmail/files/fetchmailconf 300896 2012-07-14 13:5=
 4:48Z beat $
 =20
  LOCALBASE=3D@LOCALBASE@
 =20
 diff -ruN /usr/ports/mail/fetchmail/files/patch-fix_6.3.23_memory_leak fetc=
 hmail/files/patch-fix_6.3.23_memory_leak
 --- /usr/ports/mail/fetchmail/files/patch-fix_6.3.23_memory_leak	1969-12-31=
  18:00:00.000000000 -0600
 +++ fetchmail/files/patch-fix_6.3.23_memory_leak	2012-12-13 19:33:22.000000=
 000 -0600
 @@ -0,0 +1,155 @@
 +diff -ruN fetchmail-6.3.23/NEWS fetchmail-6.3.23-patched/NEWS
 +--- fetchmail-6.3.23/NEWS	2012-12-10 14:59:46.000000000 -0600
 ++++ fetchmail-6.3.23-patched/NEWS	2012-12-13 19:03:50.000000000 -0600
 +@@ -56,12 +56,50 @@
 +=20
 + -------------------------------------------------------------------------=
 -------
 +=20
 +-fetchmail-6.3.23 (released 2012-12-10, 26106 LoC):
 ++fetchmail-6.3.24 (not yet released):
 +=20
 + # NOTE THAT THE RELEASE OF FUTURE FETCHMAIL 6.3.X VERSIONS IS UNCLEAR.
 + Should a 7.0 release be made earlier, chances are that the 6.3.X branch
 + is abandoned and its changes be folded into the 7.0 release, with changes
 +-after 6.3.22 not available on their own in a newer 6.3.X release.
 ++after 6.3.24 not available on their own in a newer 6.3.X release.
 ++
 ++# CRITICAL AND REGRESSION FIXES
 ++* Plug a memory leak in OpenSSL's certificate verification callback.
 ++  This would affect fetchmail configurations running with SSL in daemon m=
 ode
 ++  more than one-shot runs.
 ++  Reported by Erik Thiele, and pinned by Dominik Heeg,
 ++  fixes Debian Bug #688015.
 ++  This bug was introduced into fetchmail 6.2.9 (committed 2005-10-29)
 ++  when support for subjectAltName was added through a patch by Roland
 ++  Stigge, submitted as Debian Bug#201113.
 ++
 ++* The --logfile option now works again outside daemon mode, reported by H=
 einz
 ++  Diehl. The documentation that I had been reading was inconsistent with =
 the
 ++  code, and only parts of the manual page claimed that --logfile was only
 ++  effective in daemon mode.
 ++
 ++# KNOWN BUGS AND WORKAROUNDS
 ++  (This section floats upwards through the NEWS file so it stays with the
 ++  current release information)
 ++* Fetchmail does not handle messages without Message-ID header well
 ++  (See sourceforge.net bug #780933)
 ++* BSMTP is mostly untested and errors can cause corrupt output.
 ++* Sun Workshop 6 (SPARC) is known to miscompile the configuration file le=
 xer in
 ++  64-bit mode.  Either compile 32-bit code or use GCC to compile 64-bit
 ++  fetchmail.  Note that fetchmail doesn't take advantage of 64-bit code,
 ++  so compiling 32-bit SPARC code should not cause any difficulties.
 ++* Fetchmail does not track pending deletes across crashes.
 ++* The command line interface is sometimes a bit stubborn, for instance,
 ++  fetchmail -s doesn't work with a daemon running.
 ++* Linux systems may return duplicates of an IP address in some circumstan=
 ces if
 ++  no or no global IPv6 addresses are configured.
 ++  (No workaround. Ubuntu Bug#582585, Novell Bug#606980.)
 ++* Kerberos 5 may be broken, particularly on Heimdal, and provide bogus er=
 ror
 ++  messages. This will not be fixed, because the maintainer has no Kerbero=
 s 5
 ++  server to test against. Use GSSAPI.
 ++
 ++
 ++fetchmail-6.3.23 (released 2012-12-10, 26106 LoC):
 +=20
 + # REGRESSION FIXES
 + * Fix compilation with OpenSSL implementations before 0.9.8m that lack
 +@@ -94,26 +132,6 @@
 + [sv] Swedish, by G=C3=B6ran Uddeborg
 + [vi] Vietnamese, Tr=E1=BA=A7n Ng=E1=BB=8Dc Qu=C3=A2n
 +=20
 +-# KNOWN BUGS AND WORKAROUNDS
 +-  (This section floats upwards through the NEWS file so it stays with the
 +-  current release information)
 +-* Fetchmail does not handle messages without Message-ID header well
 +-  (See sourceforge.net bug #780933)
 +-* BSMTP is mostly untested and errors can cause corrupt output.
 +-* Sun Workshop 6 (SPARC) is known to miscompile the configuration file le=
 xer in
 +-  64-bit mode.  Either compile 32-bit code or use GCC to compile 64-bit
 +-  fetchmail.  Note that fetchmail doesn't take advantage of 64-bit code,
 +-  so compiling 32-bit SPARC code should not cause any difficulties.
 +-* Fetchmail does not track pending deletes across crashes.
 +-* The command line interface is sometimes a bit stubborn, for instance,
 +-  fetchmail -s doesn't work with a daemon running.
 +-* Linux systems may return duplicates of an IP address in some circumstan=
 ces if
 +-  no or no global IPv6 addresses are configured.
 +-  (No workaround. Ubuntu Bug#582585, Novell Bug#606980.)
 +-* Kerberos 5 may be broken, particularly on Heimdal, and provide bogus er=
 ror
 +-  messages. This will not be fixed, because the maintainer has no Kerbero=
 s 5
 +-  server to test against. Use GSSAPI.
 +-
 +=20
 + fetchmail-6.3.22 (released 2012-08-29, 26077 LoC):
 +=20
 +diff -ruN fetchmail-6.3.23/configure.ac fetchmail-6.3.23-patched/configure=
 =2Eac
 +--- fetchmail-6.3.23/configure.ac	2012-12-10 14:58:12.000000000 -0600
 ++++ fetchmail-6.3.23-patched/configure.ac	2012-12-13 19:03:39.000000000 -0=
 600
 +@@ -9,7 +9,7 @@
 + dnl
 +=20
 + dnl XXX - if bumping version here, check fetchmail.man, too!
 +-AC_INIT([fetchmail],[6.3.23],[fetchmail-users@lists.berlios.de])
 ++AC_INIT([fetchmail],[6.3.24],[fetchmail-users@lists.berlios.de])
 + AC_CONFIG_SRCDIR([fetchmail.h])
 + AC_CONFIG_HEADERS([config.h])
 + AC_CONFIG_LIBOBJ_DIR([.])
 +diff -ruN fetchmail-6.3.23/fetchmail.c fetchmail-6.3.23-patched/fetchmail.c
 +--- fetchmail-6.3.23/fetchmail.c	2012-11-21 16:37:05.000000000 -0600
 ++++ fetchmail-6.3.23-patched/fetchmail.c	2012-12-13 19:03:39.000000000 -06=
 00
 +@@ -310,25 +310,27 @@
 +     if (run.logfile) {
 + 	/* nodetach -> turn off logfile option */
 + 	if (nodetach) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("The nodetach optio=
 n is in effect, ignoring logfile option.\n")); }
 ++	    if (outlevel >=3D O_NORMAL) { fprintf(stderr, GT_("The nodetach opti=
 on is in effect, ignoring logfile option.\n")); }
 + 	    xfree(run.logfile);
 + 	}
 +=20
 ++#if 0
 + 	/* not in daemon mode -> turn off logfile option */
 + 	if (0 =3D=3D run.poll_interval) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("Not running in dae=
 mon mode, ignoring logfile option.\n")); }
 ++	    if (outlevel >=3D O_NORMAL) { fprintf(stderr, GT_("Not running in da=
 emon mode, ignoring logfile option.\n")); }
 + 	    xfree(run.logfile);
 + 	}
 ++#endif
 +=20
 + 	/* log file not writable -> turn off logfile option */
 + 	if (run.logfile && 0 !=3D access(run.logfile, F_OK)) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" doe=
 s not exist, ignoring logfile option.\n"), run.logfile); }
 ++	    if (outlevel >=3D O_NORMAL) { fprintf(stderr, GT_("Logfile \"%s\" do=
 es not exist, ignoring logfile option.\n"), run.logfile); }
 + 	    xfree(run.logfile);
 + 	}
 +=20
 + 	/* log file not writable -> turn off logfile option */
 + 	if (run.logfile && 0 !=3D access(run.logfile, W_OK)) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" is =
 not writable, aborting.\n"), run.logfile); }
 ++	    fprintf(stderr, GT_("Logfile \"%s\" is not writable, aborting.\n"), =
 run.logfile);
 + 	    xfree(run.logfile);
 + 	    exit(PS_UNDEFINED);
 + 	}
 +diff -ruN fetchmail-6.3.23/fetchmail.man fetchmail-6.3.23-patched/fetchmai=
 l.man
 +--- fetchmail-6.3.23/fetchmail.man	2012-12-05 16:14:06.000000000 -0600
 ++++ fetchmail-6.3.23-patched/fetchmail.man	2012-12-13 19:32:57.000000000 -=
 0600
 +@@ -2230,8 +2230,7 @@
 + There are some global option statements: 'set logfile'
 + followed by a string sets the same global specified by \-\-logfile.  A
 + command-line \-\-logfile option will override this. Note that \-\-logfile=
  is
 +-only effective if fetchmail detaches itself from the terminal, is in
 +-daemon mode, and if the
 ++only effective if fetchmail detaches itself from the terminal and the
 + logfile already exists before fetchmail is run, and it overrides
 + \-\-syslog in this case.  Also,
 + \&'set daemon' sets the poll interval as \-\-daemon does.  This can be
 +diff -ruN fetchmail-6.3.23/socket.c fetchmail-6.3.23-patched/socket.c
 +--- fetchmail-6.3.23/socket.c	2012-11-21 16:37:05.000000000 -0600
 ++++ fetchmail-6.3.23-patched/socket.c	2012-12-13 19:03:43.000000000 -0600
 +@@ -689,7 +689,7 @@
 + 							}
 + 						}
 + 					}
 +-					sk_GENERAL_NAME_free(gens);
 ++					GENERAL_NAMES_free(gens);
 + 				}
 + 				if (name_match(p1, p2)) {
 + 					matched =3D 1;
 diff -ruN /usr/ports/mail/fetchmail/pkg-plist fetchmail/pkg-plist
 --- /usr/ports/mail/fetchmail/pkg-plist	2012-11-16 23:59:03.000000000 -0600
 +++ fetchmail/pkg-plist	2012-12-13 19:34:08.000000000 -0600
 @@ -1,4 +1,4 @@
 -@comment $FreeBSD: ports/mail/fetchmail/pkg-plist,v 1.32 2012/11/17 05:59:=
 03 svnexp Exp $
 +@comment $FreeBSD: head/mail/fetchmail/pkg-plist 303362 2012-08-30 06:24:4=
 8Z mandree $
  bin/fetchmail
  bin/fetchmailconf
  libexec/fetchmailconf.py
 
 --i9LlY+UWpKt15+FH--
 
 --69pVuxX8awAiJ7fD
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iF4EAREIAAYFAlDKhgQACgkQR8PgTIRJoTVSBgD9E4FvK1Ma/bxGc6WGn2v2U2aZ
 XQeHBB71M74sNOSaj0ABAIDNxFWR0RCqnYHKxrvOXDQijRxhcJrgQrEZvL9Y1wLX
 =lAtR
 -----END PGP SIGNATURE-----
 
 --69pVuxX8awAiJ7fD--

From: Matthias Andree <mandree@FreeBSD.org>
To: Corey Halpin <chalpin@cs.wisc.edu>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Fri, 14 Dec 2012 03:07:37 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig4EE451938CFACCA62583DEEC
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 Am 14.12.2012 02:51, schrieb Corey Halpin:
 >   Attached is a revised patch which incorporates the changes Matthias=20
 > indicated.
 
 Hi Corey,
 
 thanks for the prompt follow-up.
 
 I am not yet sure if that will be 6.3.24, or if there will be more
 changes. I suggest leaving configure.ac alone (remove that part of the
 patch), and possibly force PORTREVISION=3D1 just to make clear this isn't=
 
 6.3.23.
 
 Best regards
 Matthias
 
 
 --------------enig4EE451938CFACCA62583DEEC
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEARECAAYFAlDKiekACgkQvmGDOQUufZVj1gCg+TbPabNZlV26SfcaNzgt3VFI
 2iQAniHOgDhBYhquDbosrnGdUDPoW1to
 =kNHk
 -----END PGP SIGNATURE-----
 
 --------------enig4EE451938CFACCA62583DEEC--
State-Changed-From-To: suspended->feedback 
State-Changed-By: araujo 
State-Changed-When: Fri Dec 14 02:11:55 UTC 2012 
State-Changed-Why:  
The patch does not apply clean. Please double check with the latest 
revision from SVN. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 
State-Changed-From-To: feedback->open 
State-Changed-By: araujo 
State-Changed-When: Fri Dec 14 02:45:05 UTC 2012 
State-Changed-Why:  
Feedback received. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 

From: Corey Halpin <chalpin@cs.wisc.edu>
To: araujo@FreeBSD.org
Cc: mandree@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Thu, 13 Dec 2012 20:40:25 -0600

 --ILuaRSyQpoVaJ1HG
 Content-Type: multipart/mixed; boundary="5gxpn/Q6ypwruk0T"
 Content-Disposition: inline
 
 
 --5gxpn/Q6ypwruk0T
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
   A revised patch is attached.  It removes the section of configure.ac that=
 =20
 Matthias referred to, and bumps PORTREVISION.  It also removes the changes =
 to=20
 SVN tags from the previous version, which I'd suspect is what caused the=20
 unclean apply.
 
 ~crh
 
 --5gxpn/Q6ypwruk0T
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: attachment; filename="fetchmail-6.3.23_1.patch"
 Content-Transfer-Encoding: quoted-printable
 
 diff -ruN /usr/ports/mail/fetchmail/Makefile fetchmail/Makefile
 --- /usr/ports/mail/fetchmail/Makefile	2012-11-16 23:59:03.000000000 -0600
 +++ fetchmail/Makefile	2012-12-13 20:30:36.000000000 -0600
 @@ -11,7 +11,8 @@
  # want fetchmailconf to work, define the X11 option.
 =20
  PORTNAME=3D	fetchmail
 -PORTVERSION=3D	6.3.22
 +PORTVERSION=3D	6.3.23
 +PORTREVISION=3D   1
  CATEGORIES=3D	mail ipv6
  MASTER_SITES=3D	BERLIOS/${PORTNAME}/ \
  		SF/${PORTNAME}/branch_6.3/ \
 diff -ruN /usr/ports/mail/fetchmail/distinfo fetchmail/distinfo
 --- /usr/ports/mail/fetchmail/distinfo	2012-08-30 01:24:48.000000000 -0500
 +++ fetchmail/distinfo	2012-12-13 20:20:49.000000000 -0600
 @@ -1,2 +1,2 @@
 -SHA256 (fetchmail-6.3.22.tar.xz) =3D 9ab51a851f79e16258f068e791c39e3e378a9=
 9927f70c9635132f4295d70b1a4
 -SIZE (fetchmail-6.3.22.tar.xz) =3D 1260296
 +SHA256 (fetchmail-6.3.23.tar.xz) =3D 9e1d3203905150d8b3a4bd1294e2a5c230139=
 38deefab7f5adf8c0d9ae15d482
 +SIZE (fetchmail-6.3.23.tar.xz) =3D 1263416
 diff -ruN /usr/ports/mail/fetchmail/files/patch-fix_6.3.23_memory_leak fetc=
 hmail/files/patch-fix_6.3.23_memory_leak
 --- /usr/ports/mail/fetchmail/files/patch-fix_6.3.23_memory_leak	1969-12-31=
  18:00:00.000000000 -0600
 +++ fetchmail/files/patch-fix_6.3.23_memory_leak	2012-12-13 20:22:00.000000=
 000 -0600
 @@ -0,0 +1,143 @@
 +diff -ruN fetchmail-6.3.23/NEWS fetchmail-6.3.23-patched/NEWS
 +--- fetchmail-6.3.23/NEWS	2012-12-10 14:59:46.000000000 -0600
 ++++ fetchmail-6.3.23-patched/NEWS	2012-12-13 19:03:50.000000000 -0600
 +@@ -56,12 +56,50 @@
 +=20
 + -------------------------------------------------------------------------=
 -------
 +=20
 +-fetchmail-6.3.23 (released 2012-12-10, 26106 LoC):
 ++fetchmail-6.3.24 (not yet released):
 +=20
 + # NOTE THAT THE RELEASE OF FUTURE FETCHMAIL 6.3.X VERSIONS IS UNCLEAR.
 + Should a 7.0 release be made earlier, chances are that the 6.3.X branch
 + is abandoned and its changes be folded into the 7.0 release, with changes
 +-after 6.3.22 not available on their own in a newer 6.3.X release.
 ++after 6.3.24 not available on their own in a newer 6.3.X release.
 ++
 ++# CRITICAL AND REGRESSION FIXES
 ++* Plug a memory leak in OpenSSL's certificate verification callback.
 ++  This would affect fetchmail configurations running with SSL in daemon m=
 ode
 ++  more than one-shot runs.
 ++  Reported by Erik Thiele, and pinned by Dominik Heeg,
 ++  fixes Debian Bug #688015.
 ++  This bug was introduced into fetchmail 6.2.9 (committed 2005-10-29)
 ++  when support for subjectAltName was added through a patch by Roland
 ++  Stigge, submitted as Debian Bug#201113.
 ++
 ++* The --logfile option now works again outside daemon mode, reported by H=
 einz
 ++  Diehl. The documentation that I had been reading was inconsistent with =
 the
 ++  code, and only parts of the manual page claimed that --logfile was only
 ++  effective in daemon mode.
 ++
 ++# KNOWN BUGS AND WORKAROUNDS
 ++  (This section floats upwards through the NEWS file so it stays with the
 ++  current release information)
 ++* Fetchmail does not handle messages without Message-ID header well
 ++  (See sourceforge.net bug #780933)
 ++* BSMTP is mostly untested and errors can cause corrupt output.
 ++* Sun Workshop 6 (SPARC) is known to miscompile the configuration file le=
 xer in
 ++  64-bit mode.  Either compile 32-bit code or use GCC to compile 64-bit
 ++  fetchmail.  Note that fetchmail doesn't take advantage of 64-bit code,
 ++  so compiling 32-bit SPARC code should not cause any difficulties.
 ++* Fetchmail does not track pending deletes across crashes.
 ++* The command line interface is sometimes a bit stubborn, for instance,
 ++  fetchmail -s doesn't work with a daemon running.
 ++* Linux systems may return duplicates of an IP address in some circumstan=
 ces if
 ++  no or no global IPv6 addresses are configured.
 ++  (No workaround. Ubuntu Bug#582585, Novell Bug#606980.)
 ++* Kerberos 5 may be broken, particularly on Heimdal, and provide bogus er=
 ror
 ++  messages. This will not be fixed, because the maintainer has no Kerbero=
 s 5
 ++  server to test against. Use GSSAPI.
 ++
 ++
 ++fetchmail-6.3.23 (released 2012-12-10, 26106 LoC):
 +=20
 + # REGRESSION FIXES
 + * Fix compilation with OpenSSL implementations before 0.9.8m that lack
 +@@ -94,26 +132,6 @@
 + [sv] Swedish, by G=C3=B6ran Uddeborg
 + [vi] Vietnamese, Tr=E1=BA=A7n Ng=E1=BB=8Dc Qu=C3=A2n
 +=20
 +-# KNOWN BUGS AND WORKAROUNDS
 +-  (This section floats upwards through the NEWS file so it stays with the
 +-  current release information)
 +-* Fetchmail does not handle messages without Message-ID header well
 +-  (See sourceforge.net bug #780933)
 +-* BSMTP is mostly untested and errors can cause corrupt output.
 +-* Sun Workshop 6 (SPARC) is known to miscompile the configuration file le=
 xer in
 +-  64-bit mode.  Either compile 32-bit code or use GCC to compile 64-bit
 +-  fetchmail.  Note that fetchmail doesn't take advantage of 64-bit code,
 +-  so compiling 32-bit SPARC code should not cause any difficulties.
 +-* Fetchmail does not track pending deletes across crashes.
 +-* The command line interface is sometimes a bit stubborn, for instance,
 +-  fetchmail -s doesn't work with a daemon running.
 +-* Linux systems may return duplicates of an IP address in some circumstan=
 ces if
 +-  no or no global IPv6 addresses are configured.
 +-  (No workaround. Ubuntu Bug#582585, Novell Bug#606980.)
 +-* Kerberos 5 may be broken, particularly on Heimdal, and provide bogus er=
 ror
 +-  messages. This will not be fixed, because the maintainer has no Kerbero=
 s 5
 +-  server to test against. Use GSSAPI.
 +-
 +=20
 + fetchmail-6.3.22 (released 2012-08-29, 26077 LoC):
 +=20
 +diff -ruN fetchmail-6.3.23/fetchmail.c fetchmail-6.3.23-patched/fetchmail.c
 +--- fetchmail-6.3.23/fetchmail.c	2012-11-21 16:37:05.000000000 -0600
 ++++ fetchmail-6.3.23-patched/fetchmail.c	2012-12-13 19:03:39.000000000 -06=
 00
 +@@ -310,25 +310,27 @@
 +     if (run.logfile) {
 + 	/* nodetach -> turn off logfile option */
 + 	if (nodetach) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("The nodetach optio=
 n is in effect, ignoring logfile option.\n")); }
 ++	    if (outlevel >=3D O_NORMAL) { fprintf(stderr, GT_("The nodetach opti=
 on is in effect, ignoring logfile option.\n")); }
 + 	    xfree(run.logfile);
 + 	}
 +=20
 ++#if 0
 + 	/* not in daemon mode -> turn off logfile option */
 + 	if (0 =3D=3D run.poll_interval) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("Not running in dae=
 mon mode, ignoring logfile option.\n")); }
 ++	    if (outlevel >=3D O_NORMAL) { fprintf(stderr, GT_("Not running in da=
 emon mode, ignoring logfile option.\n")); }
 + 	    xfree(run.logfile);
 + 	}
 ++#endif
 +=20
 + 	/* log file not writable -> turn off logfile option */
 + 	if (run.logfile && 0 !=3D access(run.logfile, F_OK)) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" doe=
 s not exist, ignoring logfile option.\n"), run.logfile); }
 ++	    if (outlevel >=3D O_NORMAL) { fprintf(stderr, GT_("Logfile \"%s\" do=
 es not exist, ignoring logfile option.\n"), run.logfile); }
 + 	    xfree(run.logfile);
 + 	}
 +=20
 + 	/* log file not writable -> turn off logfile option */
 + 	if (run.logfile && 0 !=3D access(run.logfile, W_OK)) {
 +-	    if (outlevel >=3D O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" is =
 not writable, aborting.\n"), run.logfile); }
 ++	    fprintf(stderr, GT_("Logfile \"%s\" is not writable, aborting.\n"), =
 run.logfile);
 + 	    xfree(run.logfile);
 + 	    exit(PS_UNDEFINED);
 + 	}
 +diff -ruN fetchmail-6.3.23/fetchmail.man fetchmail-6.3.23-patched/fetchmai=
 l.man
 +--- fetchmail-6.3.23/fetchmail.man	2012-12-05 16:14:06.000000000 -0600
 ++++ fetchmail-6.3.23-patched/fetchmail.man	2012-12-13 19:32:57.000000000 -=
 0600
 +@@ -2230,8 +2230,7 @@
 + There are some global option statements: 'set logfile'
 + followed by a string sets the same global specified by \-\-logfile.  A
 + command-line \-\-logfile option will override this. Note that \-\-logfile=
  is
 +-only effective if fetchmail detaches itself from the terminal, is in
 +-daemon mode, and if the
 ++only effective if fetchmail detaches itself from the terminal and the
 + logfile already exists before fetchmail is run, and it overrides
 + \-\-syslog in this case.  Also,
 + \&'set daemon' sets the poll interval as \-\-daemon does.  This can be
 +diff -ruN fetchmail-6.3.23/socket.c fetchmail-6.3.23-patched/socket.c
 +--- fetchmail-6.3.23/socket.c	2012-11-21 16:37:05.000000000 -0600
 ++++ fetchmail-6.3.23-patched/socket.c	2012-12-13 19:03:43.000000000 -0600
 +@@ -689,7 +689,7 @@
 + 							}
 + 						}
 + 					}
 +-					sk_GENERAL_NAME_free(gens);
 ++					GENERAL_NAMES_free(gens);
 + 				}
 + 				if (name_match(p1, p2)) {
 + 					matched =3D 1;
 
 --5gxpn/Q6ypwruk0T--
 
 --ILuaRSyQpoVaJ1HG
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iF4EAREIAAYFAlDKkZgACgkQR8PgTIRJoTWsggEAtBPbPzs8Ok2IF84xxPoBiwgs
 At0jacBDG5IGf2+14QsBAJCMqw+R4MuKYy84eWuHmnhD5+4VpRb2uoT+x2iacBGm
 =6Z2o
 -----END PGP SIGNATURE-----
 
 --ILuaRSyQpoVaJ1HG--
State-Changed-From-To: open->feedback 
State-Changed-By: araujo 
State-Changed-When: Mon Dec 17 03:23:53 UTC 2012 
State-Changed-Why:  
Please, verify the download path, I cannot do "make fetch" all mirrors 
seems to be broken. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 

From: Takefu <takefu@airport.fm>
To: bug-followup@FreeBSD.org, mandree@FreeBSD.org
Cc:  
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Tue, 18 Dec 2012 17:45:02 +0900

 fix OptionsNG
 
 It is the same as the difference immediately before things except Makefile.
 
 
 --- fetchmail-6.3.23_1.patch begins here ---
 diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/Makefile ./Makefile
 --- /usr/ports/mail/fetchmail/Makefile	2012-11-17 14:59:03.000000000 +0900
 +++ ./Makefile	2012-12-18 17:07:13.000000000 +0900
 @@ -1,7 +1,4 @@
 -# New ports collection makefile for:	fetchmail
 -# Date created:		25 Feb 2000
 -# Whom:			Ville Eerola <ve@sci.fi>
 -#
 +# Created: Ville Eerola <ve@sci.fi>
  # $FreeBSD: ports/mail/fetchmail/Makefile,v 1.224 2012/11/17 05:59:03 svnexp Exp $
  #
  # NOTE:  The fetchmailconf program (an interactive program for
 @@ -11,7 +8,8 @@
  # want fetchmailconf to work, define the X11 option.
 
  PORTNAME=	fetchmail
 -PORTVERSION=	6.3.22
 +PORTVERSION=	6.3.23
 +PORTREVISION=	1
  CATEGORIES=	mail ipv6
  MASTER_SITES=	BERLIOS/${PORTNAME}/ \
  		SF/${PORTNAME}/branch_6.3/ \
 @@ -23,9 +21,14 @@
 
  RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
 
 +OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI
 +OPTIONS_DEFAULT=NLS GSSAPI
 +
  # Note USERS can only contain a single word as parts below rely on that.
  USERS=		${PORTNAME}
  GROUPS=		${USERS}
 +BASEDIR?=	# None. portlint compliance
 +NULLDIR?=	# None. portlint compliance
 
  USE_RC_SUBR=	fetchmail
  FETCHMAILRC=	${PREFIX}/etc/fetchmailrc
 @@ -45,14 +48,9 @@
  MAN1=		fetchmail.1
  MLINKS=		fetchmail.1 fetchmailconf.1
 
 -OPTIONS=	X11	"Python/Tkinter dependencies for fetchmailconf" off \
 -		NLS	"National language support (NLS)."		on \
 -		NTLM	"Build in support for NTLM/MSN authentication." off \
 -		GSSAPI	"Build GSSAPI/Kerberos 5 support" 		on
 -
  .include <bsd.port.options.mk>
 
 -.if defined(WITH_X11)
 +.if ${PORT_OPTIONS:MX11}
  USE_PYTHON=	yes
  RUN_DEPENDS+=	${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
  .endif
 @@ -60,30 +58,30 @@
  .include <bsd.port.pre.mk>
 
  # Pop2 is obsolete
 -.if defined(WITH_POP2)
 +.if ${PORT_OPTIONS:MPOP2}
  CONFIGURE_ARGS+=--enable-POP2
  .endif
 
 -CONFIGURE_ARGS+=	--with-ssl=${OPENSSLBASE}
 +CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE}
 
  DOCS=		FAQ FEATURES NEWS NOTES README README.SSL \
  		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
  		esrs-design-notes.html
 
 -.if !defined(WITHOUT_NLS)
 -CONFIGURE_ARGS+=	--enable-nls
 -PLIST_SUB+=		NLS=""
 -USE_GETTEXT=		yes
 +.if ${PORT_OPTIONS:MNLS}
 +CONFIGURE_ARGS+=--enable-nls
 +PLIST_SUB+=	NLS=""
 +USE_GETTEXT=	yes
  .else
 -CONFIGURE_ARGS+=	--disable-nls
 -PLIST_SUB+=		NLS="@comment "
 +CONFIGURE_ARGS+=--disable-nls
 +PLIST_SUB+=	NLS="@comment "
  .endif
 
  .if !defined(KRB5_HOME)
  .if exists(${LOCALBASE}/lib/libkrb5.a)
  KRB5_HOME=	${LOCALBASE}
  .elif exists(/usr/lib/libkrb5.a)
 -KRB5_HOME=	/usr
 +KRB5_HOME=	${NULLDIR}/usr
  .endif
  .endif
 
 @@ -91,14 +89,14 @@
  BROKEN=		KRB5_HOME is set but doesn't provide lib/libkrb5.a
  .endif
 
 -.if defined(WITH_GSSAPI)
 +.if ${PORT_OPTIONS:MGSSAPI}
  .if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
 -CONFIGURE_ARGS += --with-gssapi=${KRB5_HOME}
 +CONFIGURE_ARGS+=--with-gssapi=${KRB5_HOME}
  .endif
  .endif
 
 -.if defined(WITH_NTLM)
 -CONFIGURE_ARGS += --enable-NTLM
 +.if ${PORT_OPTIONS:MNTLM}
 +CONFIGURE_ARGS+=--enable-NTLM
  DOCS+=		README.NTLM
  PLIST_SUB+=	NTLMDOCS="%%PORTDOCS%%"
  .else
 @@ -110,13 +108,13 @@
  		${WRKSRC}/fetchmailconf.py
  	@${CP} ${FILESDIR}/fetchmailconf ${WRKDIR}/fetchmailconf
  	@${REINPLACE_CMD} -e "s,@LOCALBASE@,${LOCALBASE},g" \
 -		 ${WRKDIR}/fetchmailconf
 +		${WRKDIR}/fetchmailconf
 
  post-build:
  	@cd ${WRKSRC} && ${MAKE} check
 
  post-install:
 -.if !defined(NOPORTDOCS)
 +.if ${PORT_OPTIONS:MDOCS}
  	${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
  	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
  .endif
 @@ -124,8 +122,8 @@
  	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
  	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
 
 -	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
 -	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
 +	${MKDIR} -m 0755 "${BASEDIR}/var/run/${PORTNAME}"
 +	${CHOWN} "${USERS}:${GROUPS}" "${BASEDIR}/var/run/${PORTNAME}"
  	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
  	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
  		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
 diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/distinfo ./distinfo
 --- /usr/ports/mail/fetchmail/distinfo	2012-08-30 15:24:48.000000000 +0900
 +++ ./distinfo	2012-12-18 16:17:28.000000000 +0900
 @@ -1,2 +1,2 @@
 -SHA256 (fetchmail-6.3.22.tar.xz) = 9ab51a851f79e16258f068e791c39e3e378a99927f70c9635132f4295d70b1a4
 -SIZE (fetchmail-6.3.22.tar.xz) = 1260296
 +SHA256 (fetchmail-6.3.23.tar.xz) = 9e1d3203905150d8b3a4bd1294e2a5c23013938deefab7f5adf8c0d9ae15d482
 +SIZE (fetchmail-6.3.23.tar.xz) = 1263416
 diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/files/patch-fix_6.3.23_memory_leak ./files/patch-fix_6.3.23_memory_leak
 --- /usr/ports/mail/fetchmail/files/patch-fix_6.3.23_memory_leak	1970-01-01 09:00:00.000000000 +0900
 +++ ./files/patch-fix_6.3.23_memory_leak	2012-12-18 16:17:28.000000000 +0900
 @@ -0,0 +1,143 @@
 +diff -ruN fetchmail-6.3.23/NEWS fetchmail-6.3.23-patched/NEWS
 +--- fetchmail-6.3.23/NEWS	2012-12-10 14:59:46.000000000 -0600
 ++++ fetchmail-6.3.23-patched/NEWS	2012-12-13 19:03:50.000000000 -0600
 +@@ -56,12 +56,50 @@
 +
 + --------------------------------------------------------------------------------
 +
 +-fetchmail-6.3.23 (released 2012-12-10, 26106 LoC):
 ++fetchmail-6.3.24 (not yet released):
 +
 + # NOTE THAT THE RELEASE OF FUTURE FETCHMAIL 6.3.X VERSIONS IS UNCLEAR.
 + Should a 7.0 release be made earlier, chances are that the 6.3.X branch
 + is abandoned and its changes be folded into the 7.0 release, with changes
 +-after 6.3.22 not available on their own in a newer 6.3.X release.
 ++after 6.3.24 not available on their own in a newer 6.3.X release.
 ++
 ++# CRITICAL AND REGRESSION FIXES
 ++* Plug a memory leak in OpenSSL's certificate verification callback.
 ++  This would affect fetchmail configurations running with SSL in daemon mode
 ++  more than one-shot runs.
 ++  Reported by Erik Thiele, and pinned by Dominik Heeg,
 ++  fixes Debian Bug #688015.
 ++  This bug was introduced into fetchmail 6.2.9 (committed 2005-10-29)
 ++  when support for subjectAltName was added through a patch by Roland
 ++  Stigge, submitted as Debian Bug#201113.
 ++
 ++* The --logfile option now works again outside daemon mode, reported by Heinz
 ++  Diehl. The documentation that I had been reading was inconsistent with the
 ++  code, and only parts of the manual page claimed that --logfile was only
 ++  effective in daemon mode.
 ++
 ++# KNOWN BUGS AND WORKAROUNDS
 ++  (This section floats upwards through the NEWS file so it stays with the
 ++  current release information)
 ++* Fetchmail does not handle messages without Message-ID header well
 ++  (See sourceforge.net bug #780933)
 ++* BSMTP is mostly untested and errors can cause corrupt output.
 ++* Sun Workshop 6 (SPARC) is known to miscompile the configuration file lexer in
 ++  64-bit mode.  Either compile 32-bit code or use GCC to compile 64-bit
 ++  fetchmail.  Note that fetchmail doesn't take advantage of 64-bit code,
 ++  so compiling 32-bit SPARC code should not cause any difficulties.
 ++* Fetchmail does not track pending deletes across crashes.
 ++* The command line interface is sometimes a bit stubborn, for instance,
 ++  fetchmail -s doesn't work with a daemon running.
 ++* Linux systems may return duplicates of an IP address in some circumstances if
 ++  no or no global IPv6 addresses are configured.
 ++  (No workaround. Ubuntu Bug#582585, Novell Bug#606980.)
 ++* Kerberos 5 may be broken, particularly on Heimdal, and provide bogus error
 ++  messages. This will not be fixed, because the maintainer has no Kerberos 5
 ++  server to test against. Use GSSAPI.
 ++
 ++
 ++fetchmail-6.3.23 (released 2012-12-10, 26106 LoC):
 +
 + # REGRESSION FIXES
 + * Fix compilation with OpenSSL implementations before 0.9.8m that lack
 +@@ -94,26 +132,6 @@
 + [sv] Swedish, by Göran Uddeborg
 + [vi] Vietnamese, Trần Ngọc Quân
 +
 +-# KNOWN BUGS AND WORKAROUNDS
 +-  (This section floats upwards through the NEWS file so it stays with the
 +-  current release information)
 +-* Fetchmail does not handle messages without Message-ID header well
 +-  (See sourceforge.net bug #780933)
 +-* BSMTP is mostly untested and errors can cause corrupt output.
 +-* Sun Workshop 6 (SPARC) is known to miscompile the configuration file lexer in
 +-  64-bit mode.  Either compile 32-bit code or use GCC to compile 64-bit
 +-  fetchmail.  Note that fetchmail doesn't take advantage of 64-bit code,
 +-  so compiling 32-bit SPARC code should not cause any difficulties.
 +-* Fetchmail does not track pending deletes across crashes.
 +-* The command line interface is sometimes a bit stubborn, for instance,
 +-  fetchmail -s doesn't work with a daemon running.
 +-* Linux systems may return duplicates of an IP address in some circumstances if
 +-  no or no global IPv6 addresses are configured.
 +-  (No workaround. Ubuntu Bug#582585, Novell Bug#606980.)
 +-* Kerberos 5 may be broken, particularly on Heimdal, and provide bogus error
 +-  messages. This will not be fixed, because the maintainer has no Kerberos 5
 +-  server to test against. Use GSSAPI.
 +-
 +
 + fetchmail-6.3.22 (released 2012-08-29, 26077 LoC):
 +
 +diff -ruN fetchmail-6.3.23/fetchmail.c fetchmail-6.3.23-patched/fetchmail.c
 +--- fetchmail-6.3.23/fetchmail.c	2012-11-21 16:37:05.000000000 -0600
 ++++ fetchmail-6.3.23-patched/fetchmail.c	2012-12-13 19:03:39.000000000 -0600
 +@@ -310,25 +310,27 @@
 +     if (run.logfile) {
 + 	/* nodetach -> turn off logfile option */
 + 	if (nodetach) {
 +-	    if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("The nodetach option is in effect, ignoring logfile option.\n")); }
 ++	    if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("The nodetach option is in effect, ignoring logfile option.\n")); }
 + 	    xfree(run.logfile);
 + 	}
 +
 ++#if 0
 + 	/* not in daemon mode -> turn off logfile option */
 + 	if (0 == run.poll_interval) {
 +-	    if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("Not running in daemon mode, ignoring logfile option.\n")); }
 ++	    if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("Not running in daemon mode, ignoring logfile option.\n")); }
 + 	    xfree(run.logfile);
 + 	}
 ++#endif
 +
 + 	/* log file not writable -> turn off logfile option */
 + 	if (run.logfile && 0 != access(run.logfile, F_OK)) {
 +-	    if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" does not exist, ignoring logfile option.\n"), run.logfile); }
 ++	    if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("Logfile \"%s\" does not exist, ignoring logfile option.\n"), run.logfile); }
 + 	    xfree(run.logfile);
 + 	}
 +
 + 	/* log file not writable -> turn off logfile option */
 + 	if (run.logfile && 0 != access(run.logfile, W_OK)) {
 +-	    if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" is not writable, aborting.\n"), run.logfile); }
 ++	    fprintf(stderr, GT_("Logfile \"%s\" is not writable, aborting.\n"), run.logfile);
 + 	    xfree(run.logfile);
 + 	    exit(PS_UNDEFINED);
 + 	}
 +diff -ruN fetchmail-6.3.23/fetchmail.man fetchmail-6.3.23-patched/fetchmail.man
 +--- fetchmail-6.3.23/fetchmail.man	2012-12-05 16:14:06.000000000 -0600
 ++++ fetchmail-6.3.23-patched/fetchmail.man	2012-12-13 19:32:57.000000000 -0600
 +@@ -2230,8 +2230,7 @@
 + There are some global option statements: 'set logfile'
 + followed by a string sets the same global specified by \-\-logfile.  A
 + command-line \-\-logfile option will override this. Note that \-\-logfile is
 +-only effective if fetchmail detaches itself from the terminal, is in
 +-daemon mode, and if the
 ++only effective if fetchmail detaches itself from the terminal and the
 + logfile already exists before fetchmail is run, and it overrides
 + \-\-syslog in this case.  Also,
 + \&'set daemon' sets the poll interval as \-\-daemon does.  This can be
 +diff -ruN fetchmail-6.3.23/socket.c fetchmail-6.3.23-patched/socket.c
 +--- fetchmail-6.3.23/socket.c	2012-11-21 16:37:05.000000000 -0600
 ++++ fetchmail-6.3.23-patched/socket.c	2012-12-13 19:03:43.000000000 -0600
 +@@ -689,7 +689,7 @@
 + 							}
 + 						}
 + 					}
 +-					sk_GENERAL_NAME_free(gens);
 ++					GENERAL_NAMES_free(gens);
 + 				}
 + 				if (name_match(p1, p2)) {
 + 					matched
 \ No newline at end of file
 --- fetchmail-6.3.23_1.patch ends here ---
 
 --

From: Matthias Andree <mandree@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Sun, 23 Dec 2012 18:13:22 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enigDE4BC589F5A0A985D3E8E45C
 Content-Type: text/plain; charset=ISO-8859-15
 Content-Transfer-Encoding: quoted-printable
 
 Note that I have released 6.3.24 today.
 
 
 --------------enigDE4BC589F5A0A985D3E8E45C
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iEYEARECAAYFAlDXO7IACgkQvmGDOQUufZVViQCguhAPCIUxqxa3I6TO4+u50oLg
 NtcAn0a727k0JTHw3Ycg/LvlphAtEvJi
 =VkgQ
 -----END PGP SIGNATURE-----
 
 --------------enigDE4BC589F5A0A985D3E8E45C--
State-Changed-From-To: feedback->open 
State-Changed-By: mandree 
State-Changed-When: Mon Dec 31 11:24:44 UTC 2012 
State-Changed-Why:  
araujo, please re-check download capability and remove ibiblio/metalab 
mirrors. berlios/sourceforge should have been fine for a couple of days; 
there had been issues with full disks on sf.net a few days ago 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 

From: Corey Halpin <chalpin@cs.wisc.edu>
To: bug-followup@FreeBSD.ORG
Cc: araujo@FreeBSD.ORG, mandree@FreeBSD.ORG
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Sun, 6 Jan 2013 13:14:33 -0600

 --QRj9sO5tAVLaXnSD
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
   Can ports/174345 be closed and marked superseded by ports/174873 ?
 
   Thank you.
 
 ~crh
 
 --QRj9sO5tAVLaXnSD
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iF4EAREIAAYFAlDpzRgACgkQR8PgTIRJoTXTmAD+PoDQPmJ+DWdf6/5E+hXn9r64
 Qi2C8XoPbVkHdqcpy8cA/09H9uSEl+sFEai/QY/l9fqwsrwLW0mxmicSEPpbMcWg
 =zLeY
 -----END PGP SIGNATURE-----
 
 --QRj9sO5tAVLaXnSD--
State-Changed-From-To: open->closed 
State-Changed-By: mandree 
State-Changed-When: Sun Jan 6 19:41:16 UTC 2013 
State-Changed-Why:  
superseded by ports/174873, at port maintainer's request 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174345 

From: Matthias Andree <mandree@FreeBSD.org>
To: Corey Halpin <chalpin@cs.wisc.edu>
Cc: bug-followup@FreeBSD.org, araujo@FreeBSD.org
Subject: Re: ports/174345: [PATCH] mail/fetchmail: update to 6.3.23
Date: Sun, 06 Jan 2013 20:41:32 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig90D240EE4E28E6D2034BAE41
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Am 06.01.2013 20:14, schrieb Corey Halpin:
 >   Can ports/174345 be closed and marked superseded by ports/174873 ?
 
 Done. Thank you.
 
 
 
 --------------enig90D240EE4E28E6D2034BAE41
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with undefined - http://www.enigmail.net/
 
 iEYEARECAAYFAlDp02wACgkQvmGDOQUufZVjtwCdHGGJ6E/E/F4vsw30YHtoz2Ld
 fi8An2ZGHQ1gnIp/GFIfykOEGoFdQIgD
 =DnpT
 -----END PGP SIGNATURE-----
 
 --------------enig90D240EE4E28E6D2034BAE41--
>Unformatted:
