From root@inetstat.net  Thu May  8 07:41:40 2014
Return-Path: <root@inetstat.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 1C3777F2
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu,  8 May 2014 07:41:40 +0000 (UTC)
Received: from srv00.inetstat.net (unknown [IPv6:2001:41d0:1:db00:21c:c0ff:fe42:a955])
	by mx1.freebsd.org (Postfix) with ESMTP id BC2CDA93
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu,  8 May 2014 07:41:39 +0000 (UTC)
Received: from srv00.inetstat.net (localhost [127.0.0.1])
	by srv00.inetstat.net (Postfix) with ESMTP id 1ECE1D78A0;
	Thu,  8 May 2014 07:41:31 +0000 (UTC)
Received: from srv00.inetstat.net ([IPv6:::1])
	by srv00.inetstat.net (srv00.inetstat.net [IPv6:::1]) (amavisd-new, port 10026)
	with ESMTP id buelz5F5yDxD; Thu,  8 May 2014 07:41:28 +0000 (UTC)
Received: by srv00.inetstat.net (Postfix, from userid 0)
	id 607D2D789F; Thu,  8 May 2014 07:41:28 +0000 (UTC)
Message-Id: <20140508074128.607D2D789F@srv00.inetstat.net>
Date: Thu,  8 May 2014 07:41:28 +0000 (UTC)
From: Paul J Murphy <paul@inetstat.net>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: ports.maintainer@evilphi.com
Subject: [PATCH] mail/postfix-policyd-spf-perl: update to 2.010
X-Send-Pr-Version: 3.113
X-GNATS-Notify: ports.maintainer@evilphi.com

>Number:         189458
>Category:       ports
>Synopsis:       [PATCH] mail/postfix-policyd-spf-perl: update to 2.010
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 08 07:50:00 UTC 2014
>Closed-Date:    Thu May 22 05:47:21 UTC 2014
>Last-Modified:  Thu May 22 05:50:01 UTC 2014
>Originator:     Paul J Murphy
>Release:        FreeBSD 10.0-RELEASE-p2 amd64
>Organization:
iNetStat.net
>Environment:
System: FreeBSD srv00.inetstat.net 10.0-RELEASE-p2 FreeBSD 10.0-RELEASE-p2 #0 r265140: Wed Apr 30 12:18:59 UTC
>Description:
- Update to 2.010 (released on 2012-06-17, the latest revion)
- Several bugs fixed by the update
- Install location changed from PREFIX/sbin to PREFIX/libexec (it's a non-interactive daemon, rarely run directly)
- Master site updated to https://launchpad.net/postfix-policyd-spf-perl/
  (the package moved there from http://www.openspf.org/Software/ years ago)

Port maintainer (ports.maintainer@evilphi.com) is cc'd.

Generated with FreeBSD Port Tools 1.02 (mode: update, diff: SVN)
>How-To-Repeat:
>Fix:

--- postfix-policyd-spf-perl-2.010.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 353278)
+++ Makefile	(working copy)
@@ -2,22 +2,24 @@
 # $FreeBSD$
 
 PORTNAME=	postfix-policyd-spf-perl
-PORTVERSION=	2.007
+PORTVERSION=	2.010
 CATEGORIES=	mail
-MASTER_SITES=	http://www.openspf.org/blobs/
+MASTER_SITES=	https://launchpadlibrarian.net/107864701/
 
 MAINTAINER=	ports.maintainer@evilphi.com
 COMMENT=	SPF policy service for Postfix written in Perl
 
-RUN_DEPENDS=	p5-Mail-SPF>=0:${PORTSDIR}/mail/p5-Mail-SPF \
+RUN_DEPENDS=	p5-Mail-SPF>=2.006:${PORTSDIR}/mail/p5-Mail-SPF \
 		p5-NetAddr-IP>=4:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \
+		p5-Sys-Hostname-Long>=0:${PORTSDIR}/sysutils/p5-Sys-Hostname-Long \
 		p5-version>=0:${PORTSDIR}/devel/p5-version
 
-USES=		perl5
+USES=		perl5 shebangfix
 USE_PERL5=	run
 NO_BUILD=	yes
 
-PLIST_FILES=	sbin/postfix-policyd-spf-perl
+PLIST_FILES=	libexec/postfix-policyd-spf-perl
+SHEBANG_FILES=	postfix-policyd-spf-perl
 
 SUB_LIST=	PREFIX=${PREFIX}
 SUB_FILES=	pkg-message
@@ -42,6 +44,6 @@
 	@${REINPLACE_CMD} -e '${REINPLACE}' ${WRKSRC}/postfix-policyd-spf-perl
 
 do-install:
-	@${INSTALL_SCRIPT} ${WRKSRC}/postfix-policyd-spf-perl ${STAGEDIR}${PREFIX}/sbin
+	@${INSTALL_SCRIPT} ${WRKSRC}/postfix-policyd-spf-perl ${STAGEDIR}${PREFIX}/libexec
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo	(revision 353278)
+++ distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (postfix-policyd-spf-perl-2.007.tar.gz) = 5137b03d9b6009684fe432451acb25db5513d7e9f69ccd218279d81d152a8cd3
-SIZE (postfix-policyd-spf-perl-2.007.tar.gz) = 13460
+SHA256 (postfix-policyd-spf-perl-2.010.tar.gz) = aafc09ed52e946572acf804b3c79caf464a1062df5710c2f2426276442f04042
+SIZE (postfix-policyd-spf-perl-2.010.tar.gz) = 13981
Index: files/patch-postfix-policyd-spf-perl
===================================================================
--- files/patch-postfix-policyd-spf-perl	(revision 353278)
+++ files/patch-postfix-policyd-spf-perl	(working copy)
@@ -1,25 +1,26 @@
---- postfix-policyd-spf-perl.orig	2008-07-25 19:35:01.000000000 -0700
-+++ postfix-policyd-spf-perl	2009-01-25 16:46:38.991336330 -0800
-@@ -263,14 +263,14 @@
-             info => "%s: SPF %s: HELO/EHLO: %s",
-             $attr->{queue_id}, $helo_result, $attr->{helo_name}
-         );
+--- ./postfix-policyd-spf-perl.orig	2012-06-18 03:50:55.000000000 +0000
++++ ./postfix-policyd-spf-perl	2014-05-08 00:22:28.000000000 +0000
+@@ -284,7 +284,7 @@
+                 $attr->{helo_name} || '<UNKNOWN>'
+             );
+         };
 -        return "550 $helo_authority_exp";
 +        return "%%SPF_FAIL%% $helo_authority_exp";
      }
      elsif ($helo_result->is_code('temperror')) {
-         syslog(
-             info => "%s: SPF %s: HELO/EHLO: %s",
-             $attr->{queue_id}, $helo_result, $attr->{helo_name}
-         );
+         if ($VERBOSE) {
+@@ -294,7 +294,7 @@
+                 $attr->{helo_name} || '<UNKNOWN>'
+             );
+         };
 -        return "DEFER_IF_PERMIT SPF-Result=$helo_local_exp";
 +        return "%%SPF_TEMPERROR%% SPF-Result=$helo_local_exp";
      }
      elsif ($attr->{sender} eq '') {
-         syslog(
-@@ -334,10 +334,10 @@
-         $attr->{queue_id}, $mfrom_result, $attr->{sender}
-     );
+         if ($VERBOSE) {
+@@ -368,10 +368,10 @@
+         );
+     };
      if ($mfrom_result->is_code('fail')) {
 -        return "550 $mfrom_authority_exp";
 +        return "%%SPF_FAIL%% $mfrom_authority_exp";
Index: files/pkg-message.in
===================================================================
--- files/pkg-message.in	(revision 353278)
+++ files/pkg-message.in	(working copy)
@@ -3,7 +3,7 @@
 1. Add the following to /etc/postfix/master.cf:
 
 	spf-policy unix -       n       n       -       0       spawn
-	  user=nobody argv=%%PREFIX%%/sbin/postfix-policyd-spf-perl
+	  user=nobody argv=%%PREFIX%%/libexec/postfix-policyd-spf-perl
 
    The user nobody is fine if you have no other daemons running as nobody.
    Otherwise, you should use a dedicated user and group for this policy
Index: pkg-descr
===================================================================
--- pkg-descr	(revision 353278)
+++ pkg-descr	(working copy)
@@ -1,4 +1,4 @@
 postfix-policyd-spf-perl is an RFC-4408-compliant SPF policy service for
 postfix written in Perl.
 
-WWW: http://www.openspf.org/Software/
+WWW: https://launchpad.net/postfix-policyd-spf-perl/
--- postfix-policyd-spf-perl-2.010.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu May 8 07:50:05 UTC 2014 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: ports.maintainer@evilphi.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/189458: [PATCH] mail/postfix-policyd-spf-perl: update to 2.010
Date: Thu, 8 May 2014 07:50:04 UT

 Maintainer of mail/postfix-policyd-spf-perl,
 
 Please note that PR ports/189458 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/189458
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Darren Pilgrim <ports.maintainer@evilphi.com>
To: bug-followup@FreeBSD.org, paul@inetstat.net
Cc:  
Subject: Re: ports/189458: [PATCH] mail/postfix-policyd-spf-perl: update to
 2.010
Date: Sat, 10 May 2014 19:09:47 -0700

 Looks good.  Please commit as submitted.  Thanks!
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Thu May 22 05:47:20 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/189458: commit references a PR
Date: Thu, 22 May 2014 05:47:28 +0000 (UTC)

 Author: miwi
 Date: Thu May 22 05:47:20 2014
 New Revision: 354775
 URL: http://svnweb.freebsd.org/changeset/ports/354775
 QAT: https://qat.redports.org/buildarchive/r354775/
 
 Log:
   - Update to 2.1.10
   
   PR:		189458
   Submitted by:	Paul J Murphy <paul@inetstat.net>
   Approved by:	maintainer
 
 Modified:
   head/mail/postfix-policyd-spf-perl/Makefile
   head/mail/postfix-policyd-spf-perl/distinfo
   head/mail/postfix-policyd-spf-perl/files/patch-postfix-policyd-spf-perl
   head/mail/postfix-policyd-spf-perl/files/pkg-message.in
   head/mail/postfix-policyd-spf-perl/pkg-descr
 
 Modified: head/mail/postfix-policyd-spf-perl/Makefile
 ==============================================================================
 --- head/mail/postfix-policyd-spf-perl/Makefile	Thu May 22 05:46:25 2014	(r354774)
 +++ head/mail/postfix-policyd-spf-perl/Makefile	Thu May 22 05:47:20 2014	(r354775)
 @@ -2,22 +2,24 @@
  # $FreeBSD$
  
  PORTNAME=	postfix-policyd-spf-perl
 -PORTVERSION=	2.007
 +PORTVERSION=	2.010
  CATEGORIES=	mail
 -MASTER_SITES=	http://www.openspf.org/blobs/
 +MASTER_SITES=	https://launchpadlibrarian.net/107864701/
  
  MAINTAINER=	ports.maintainer@evilphi.com
  COMMENT=	SPF policy service for Postfix written in Perl
  
 -RUN_DEPENDS=	p5-Mail-SPF>=0:${PORTSDIR}/mail/p5-Mail-SPF \
 +RUN_DEPENDS=	p5-Mail-SPF>=2.006:${PORTSDIR}/mail/p5-Mail-SPF \
  		p5-NetAddr-IP>=4:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \
 +		p5-Sys-Hostname-Long>=0:${PORTSDIR}/sysutils/p5-Sys-Hostname-Long \
  		p5-version>=0:${PORTSDIR}/devel/p5-version
  
 -USES=		perl5
 +USES=		perl5 shebangfix
  USE_PERL5=	run
  NO_BUILD=	yes
  
 -PLIST_FILES=	sbin/postfix-policyd-spf-perl
 +PLIST_FILES=	libexec/postfix-policyd-spf-perl
 +SHEBANG_FILES=	postfix-policyd-spf-perl
  
  SUB_LIST=	PREFIX=${PREFIX}
  SUB_FILES=	pkg-message
 @@ -42,6 +44,6 @@ post-patch:
  	@${REINPLACE_CMD} -e '${REINPLACE}' ${WRKSRC}/postfix-policyd-spf-perl
  
  do-install:
 -	@${INSTALL_SCRIPT} ${WRKSRC}/postfix-policyd-spf-perl ${STAGEDIR}${PREFIX}/sbin
 +	@${INSTALL_SCRIPT} ${WRKSRC}/postfix-policyd-spf-perl ${STAGEDIR}${PREFIX}/libexec
  
  .include <bsd.port.mk>
 
 Modified: head/mail/postfix-policyd-spf-perl/distinfo
 ==============================================================================
 --- head/mail/postfix-policyd-spf-perl/distinfo	Thu May 22 05:46:25 2014	(r354774)
 +++ head/mail/postfix-policyd-spf-perl/distinfo	Thu May 22 05:47:20 2014	(r354775)
 @@ -1,2 +1,2 @@
 -SHA256 (postfix-policyd-spf-perl-2.007.tar.gz) = 5137b03d9b6009684fe432451acb25db5513d7e9f69ccd218279d81d152a8cd3
 -SIZE (postfix-policyd-spf-perl-2.007.tar.gz) = 13460
 +SHA256 (postfix-policyd-spf-perl-2.010.tar.gz) = aafc09ed52e946572acf804b3c79caf464a1062df5710c2f2426276442f04042
 +SIZE (postfix-policyd-spf-perl-2.010.tar.gz) = 13981
 
 Modified: head/mail/postfix-policyd-spf-perl/files/patch-postfix-policyd-spf-perl
 ==============================================================================
 --- head/mail/postfix-policyd-spf-perl/files/patch-postfix-policyd-spf-perl	Thu May 22 05:46:25 2014	(r354774)
 +++ head/mail/postfix-policyd-spf-perl/files/patch-postfix-policyd-spf-perl	Thu May 22 05:47:20 2014	(r354775)
 @@ -1,25 +1,26 @@
 ---- postfix-policyd-spf-perl.orig	2008-07-25 19:35:01.000000000 -0700
 -+++ postfix-policyd-spf-perl	2009-01-25 16:46:38.991336330 -0800
 -@@ -263,14 +263,14 @@
 -             info => "%s: SPF %s: HELO/EHLO: %s",
 -             $attr->{queue_id}, $helo_result, $attr->{helo_name}
 -         );
 +--- ./postfix-policyd-spf-perl.orig	2012-06-18 03:50:55.000000000 +0000
 ++++ ./postfix-policyd-spf-perl	2014-05-08 00:22:28.000000000 +0000
 +@@ -284,7 +284,7 @@
 +                 $attr->{helo_name} || '<UNKNOWN>'
 +             );
 +         };
  -        return "550 $helo_authority_exp";
  +        return "%%SPF_FAIL%% $helo_authority_exp";
       }
       elsif ($helo_result->is_code('temperror')) {
 -         syslog(
 -             info => "%s: SPF %s: HELO/EHLO: %s",
 -             $attr->{queue_id}, $helo_result, $attr->{helo_name}
 -         );
 +         if ($VERBOSE) {
 +@@ -294,7 +294,7 @@
 +                 $attr->{helo_name} || '<UNKNOWN>'
 +             );
 +         };
  -        return "DEFER_IF_PERMIT SPF-Result=$helo_local_exp";
  +        return "%%SPF_TEMPERROR%% SPF-Result=$helo_local_exp";
       }
       elsif ($attr->{sender} eq '') {
 -         syslog(
 -@@ -334,10 +334,10 @@
 -         $attr->{queue_id}, $mfrom_result, $attr->{sender}
 -     );
 +         if ($VERBOSE) {
 +@@ -368,10 +368,10 @@
 +         );
 +     };
       if ($mfrom_result->is_code('fail')) {
  -        return "550 $mfrom_authority_exp";
  +        return "%%SPF_FAIL%% $mfrom_authority_exp";
 
 Modified: head/mail/postfix-policyd-spf-perl/files/pkg-message.in
 ==============================================================================
 --- head/mail/postfix-policyd-spf-perl/files/pkg-message.in	Thu May 22 05:46:25 2014	(r354774)
 +++ head/mail/postfix-policyd-spf-perl/files/pkg-message.in	Thu May 22 05:47:20 2014	(r354775)
 @@ -3,7 +3,7 @@ The service is not enabled by default.  
  1. Add the following to /etc/postfix/master.cf:
  
  	spf-policy unix -       n       n       -       0       spawn
 -	  user=nobody argv=%%PREFIX%%/sbin/postfix-policyd-spf-perl
 +	  user=nobody argv=%%PREFIX%%/libexec/postfix-policyd-spf-perl
  
     The user nobody is fine if you have no other daemons running as nobody.
     Otherwise, you should use a dedicated user and group for this policy
 
 Modified: head/mail/postfix-policyd-spf-perl/pkg-descr
 ==============================================================================
 --- head/mail/postfix-policyd-spf-perl/pkg-descr	Thu May 22 05:46:25 2014	(r354774)
 +++ head/mail/postfix-policyd-spf-perl/pkg-descr	Thu May 22 05:47:20 2014	(r354775)
 @@ -1,4 +1,4 @@
  postfix-policyd-spf-perl is an RFC-4408-compliant SPF policy service for
  postfix written in Perl.
  
 -WWW: http://www.openspf.org/Software/
 +WWW: https://launchpad.net/postfix-policyd-spf-perl/
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
