From jdc@pentarou.parodius.com  Mon May 16 15:52:43 2005
Return-Path: <jdc@pentarou.parodius.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2A95116A4D0
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 May 2005 15:52:43 +0000 (GMT)
Received: from mx1.parodius.com (mx1.parodius.com [64.62.145.229])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C0F8043D45
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 May 2005 15:52:42 +0000 (GMT)
	(envelope-from jdc@pentarou.parodius.com)
Received: from pentarou.parodius.com (localhost [127.0.0.1])
	by mx1.parodius.com (8.13.3/8.13.3) with ESMTP id j4GFqcGr057417
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 May 2005 08:52:38 -0700 (PDT)
	(envelope-from jdc@pentarou.parodius.com)
Received: (from jdc@localhost)
	by pentarou.parodius.com (8.13.3/8.13.3/Submit) id j4GFqcuf057416;
	Mon, 16 May 2005 08:52:38 -0700 (PDT)
	(envelope-from jdc)
Message-Id: <200505161552.j4GFqcuf057416@pentarou.parodius.com>
Date: Mon, 16 May 2005 08:52:38 -0700 (PDT)
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reply-To: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mail/p5-Mail-SpamAssassin update -- make Razor support optional
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81112
>Category:       ports
>Synopsis:       mail/p5-Mail-SpamAssassin update -- make Razor support optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    perl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 16 16:00:17 GMT 2005
>Closed-Date:    Thu May 26 16:51:47 GMT 2005
>Last-Modified:  Thu May 26 16:51:47 GMT 2005
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
Parodius Networking
>Environment:
System: FreeBSD pentarou.parodius.com 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu May 12 04:37:52 PDT 2005 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PENTAROU i386
>Description:
	I've never understood why Razor support was mandatory in this port,
	since SpamAssassin clearly states it's optional.  Whoever maintains the
	razor-agents port needs to clean it up anyways, as it ends up doing
	silly things like sticking log files in the root filesystem and other
	nonsense.

	Either way, this patch adds the OPTIONS "RAZOR" hook, and a check for
	the appropriate option flag, so that those of us who don't want
	razor-agents don't have to have it.  However, BY DEFAULT, Razor support
	is ENABLED (to keep 100% compatible with historic installations).

	I've tested this patch on our production mail servers, and it works
	great.

	Port maintainer or committer may want to increase PORTREVISION for
	this, but I personally didn't see the point.
>How-To-Repeat:
	n/a
>Fix:
	Apply below patch.


diff -ruN p5-Mail-SpamAssassin.orig/Makefile p5-Mail-SpamAssassin/Makefile
--- p5-Mail-SpamAssassin.orig/Makefile	Thu May 12 03:32:07 2005
+++ p5-Mail-SpamAssassin/Makefile	Mon May 16 08:41:18 2005
@@ -20,8 +20,7 @@
 BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
 		${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
 		${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools
-RUN_DEPENDS=	${BUILD_DEPENDS} \
-		razor-client:${PORTSDIR}/mail/razor-agents
+RUN_DEPENDS=	${BUILD_DEPENDS}
 
 PERL_CONFIGURE=	yes
 CONFIGURE_ARGS=	SYSCONFDIR="${PREFIX}/etc" \
@@ -32,6 +31,7 @@
 		SSL "Build with SSL support for spamd/spamc" on \
 		MYSQL "Add MySQL support" off \
 		PGSQL "Add PostreSQL support" off \
+		RAZOR "Add Vipul's Razor support" on \
 		SPF_QUERY "Add SPF query support" off \
 		TOOLS "Install SpamAssassin tools" off
 
@@ -60,6 +60,10 @@
 .if defined(WITH_PGSQL)
 RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
 USE_SQLDB=	yes
+.endif
+
+.if !defined(WITHOUT_RAZOR)
+RUN_DEPENDS+=	razor-client:${PORTSDIR}/mail/razor-agents
 .endif
 
 .if defined(WITH_TOOLS)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: erwin 
Responsible-Changed-When: Mon May 16 16:49:31 GMT 2005 
Responsible-Changed-Why:  
Over to maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81112 
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Thu May 26 16:51:31 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

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