From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 16 16:00:20 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54D7116A4D2 for ; Mon, 16 May 2005 16:00:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0847543D6E for ; Mon, 16 May 2005 16:00:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4GG0HcU059994 for ; Mon, 16 May 2005 16:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4GG0H8u059979; Mon, 16 May 2005 16:00:17 GMT (envelope-from gnats) Resent-Date: Mon, 16 May 2005 16:00:17 GMT Resent-Message-Id: <200505161600.j4GG0H8u059979@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jeremy Chadwick Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A95116A4D0 for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/81112: mail/p5-Mail-SpamAssassin update -- make Razor support optional X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jeremy Chadwick List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 16:00:20 -0000 >Number: 81112 >Category: ports >Synopsis: mail/p5-Mail-SpamAssassin update -- make Razor support optional >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon May 16 16:00:17 GMT 2005 >Closed-Date: >Last-Modified: >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: >Unformatted: