Date: Thu, 17 Sep 2009 21:32:42 +0200 (CEST) From: olli hauer <ohauer@gmx.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ohauer@gmx.de Subject: ports/138913: [Maintainer Update] port mail/spamd correct bad startup script Message-ID: <20090917193242.5281226145@u18-124.dsl.vianetworks.de> Resent-Message-ID: <200909171940.n8HJe1kx062315@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 138913 >Category: ports >Synopsis: [Maintainer Update] port mail/spamd correct bad startup script >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: Thu Sep 17 19:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: olli hauer <ohauer@gmx.de> >Release: FreeBSD 7.2-RELEASE i386 >Organization: >Environment: >Description: It seems I tested the last patch for PR ports/137992 not correct. The statement 'if [ $? ]; then' is missing a -eq and so it results every time to the first case (blacklist only), wich is really bad for every one using spamd in greylist mode. Please commit the following patch to resolve this issue. Additional set my mail in pkg-descr. Regards, olli >How-To-Repeat: >Fix: --- patch_mail_spamd_4.5.0_2.txt begins here --- --- Makefile.orig +++ Makefile @@ -7,7 +7,7 @@ PORTNAME= spamd PORTVERSION= 4.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= BERLIOS MASTER_SITE_SUBDIR=freebsdspamd --- pkg-descr.orig +++ pkg-descr @@ -18,4 +18,4 @@ WWW: http://freebsdspamd.berlios.de/ --Alex <samm@os2.kiev.ua> +olli hauer <ohauer@gmx.de> --- files/obspamd.in.orig +++ files/obspamd.in @@ -56,7 +56,7 @@ if [ -x %%PREFIX%%/sbin/spamd-setup ]; then if [ -r %%PREFIX%%/etc/spamd/spamd.conf ]; then echo "${obspamd_flags}" | egrep "(^\-b| \-b)" 2>&1 > /dev/null - if [ $? ]; then + if [ $? -eq 0 ]; then %%PREFIX%%/sbin/spamd-setup -bD else %%PREFIX%%/sbin/spamd-setup -D --- patch_mail_spamd_4.5.0_2.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090917193242.5281226145>