From leeym@utopia.leeym.com  Sun Feb 16 16:08:52 2003
Return-Path: <leeym@utopia.leeym.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AC78137B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Feb 2003 16:08:52 -0800 (PST)
Received: from utopia.leeym.com (utopia.leeym.com [61.218.64.93])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 04B5743F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Feb 2003 16:08:52 -0800 (PST)
	(envelope-from leeym@utopia.leeym.com)
Received: from localhost (localhost [127.0.0.1])
	by utopia.leeym.com (Postfix) with ESMTP id 1BD173E9CA5
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Feb 2003 08:08:51 +0800 (CST)
Received: by utopia.leeym.com (Postfix, from userid 1000)
	id 994703E9CA4; Mon, 17 Feb 2003 08:08:49 +0800 (CST)
Message-Id: <20030217000849.994703E9CA4@utopia.leeym.com>
Date: Mon, 17 Feb 2003 08:08:49 +0800 (CST)
From: Yen-Ming Lee <leeym@utopia.leeym.com>
Reply-To: Yen-Ming Lee <leeym@utopia.leeym.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: update mail/p5-Mail-SpamAssassin[-snapshot]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48349
>Category:       ports
>Synopsis:       update mail/p5-Mail-SpamAssassin[-snapshot]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 16 16:10:14 PST 2003
>Closed-Date:    Fri Feb 21 01:33:21 PST 2003
>Last-Modified:  Fri Feb 21 01:33:21 PST 2003
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.0-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 5.0-RELEASE-p1 FreeBSD 5.0-RELEASE-p1 #16: Thu Feb 6 06:27:39 CST 2003 root@utopia.leeym.com:/mnt/obj/usr/src/sys/UTOPIA i386


	
>Description:
/usr/local/lib/perl5/${PERL_VER}/Pod/Usage.pm is included in perl 5.6.1 or 5.8
p5-Mail-SpamAssassin depends on p5-PodParser only when PERL_LEVEL < 500600

the same situation for p5-Mail-SpamAssassin-snapshot

>How-To-Repeat:
	
>Fix:

	

--- p5-Mail-SpamAssassin.diff begins here ---
Index: p5-Mail-SpamAssassin/Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/p5-Mail-SpamAssassin/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- p5-Mail-SpamAssassin/Makefile	1 Feb 2003 08:40:41 -0000	1.36
+++ p5-Mail-SpamAssassin/Makefile	17 Feb 2003 00:05:39 -0000
@@ -22,9 +22,13 @@
 		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
 		razor-client:${PORTSDIR}/mail/razor-agents
 
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
 PODPARSER=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
 RUN_DEPENDS+=	${PODPARSER}
 BUILD_DEPENDS+=	${PODPARSER}
+.endif
 
 PERL_CONFIGURE=	yes
 CONFIGURE_ARGS+=	SYSCONFDIR="${PREFIX}/etc"
@@ -54,4 +58,4 @@
 	    ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: p5-Mail-SpamAssassin-snapshot/Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/p5-Mail-SpamAssassin-snapshot/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- p5-Mail-SpamAssassin-snapshot/Makefile	30 Jan 2003 11:07:43 -0000	1.3
+++ p5-Mail-SpamAssassin-snapshot/Makefile	17 Feb 2003 00:05:39 -0000
@@ -23,11 +23,15 @@
 		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
 		razor-client:${PORTSDIR}/mail/razor-agents
 
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
 PODPARSER=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
 RUN_DEPENDS+=	${PODPARSER}
 BUILD_DEPENDS+=	${PODPARSER}
-NO_LATEST_LINK=	yes
+.endif
 
+NO_LATEST_LINK=	yes
 PERL_CONFIGURE=	yes
 CONFIGURE_ARGS+=	SYSCONFDIR="${PREFIX}/etc" RUN_RAZOR1_TESTS="no" \
 			RUN_RAZOR2_TESTS="no"
@@ -64,4 +68,4 @@
 		spamd/README* sql/spamassassin.sql ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- p5-Mail-SpamAssassin.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dougb 
Responsible-Changed-By: leeym 
Responsible-Changed-When: Sun Feb 16 19:56:01 PST 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48349 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Fri Feb 21 01:26:13 PST 2003 
State-Changed-Why:  

Great idea, thanks! I'm not sure if the -snapshot version 
of this port is going to survive, but if it does I'll apply 
this patch there too. Hopefully this will cut down on my 
support mail. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48349 
>Unformatted:
