ports/138913: [Maintainer Update] port mail/spamd correct bad startup script

olli hauer ohauer at gmx.de
Thu Sep 17 19:40:02 UTC 2009


>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 at 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 at os2.kiev.ua>
+olli hauer <ohauer at 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:



More information about the freebsd-ports-bugs mailing list