From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 23 15:10:14 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8B5C1065687 for ; Fri, 23 Dec 2011 15:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1DC1F8FC15 for ; Fri, 23 Dec 2011 15:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBNFAB5q049900 for ; Fri, 23 Dec 2011 15:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBNFABLV049899; Fri, 23 Dec 2011 15:10:11 GMT (envelope-from gnats) Resent-Date: Fri, 23 Dec 2011 15:10:11 GMT Resent-Message-Id: <201112231510.pBNFABLV049899@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, "Mikhail T." Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 498691065675 for ; Fri, 23 Dec 2011 15:03:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF518FC12 for ; Fri, 23 Dec 2011 15:03:21 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBNF3KD2094559 for ; Fri, 23 Dec 2011 15:03:20 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pBNF3KLc094550; Fri, 23 Dec 2011 15:03:20 GMT (envelope-from nobody) Message-Id: <201112231503.pBNF3KLc094550@red.freebsd.org> Date: Fri, 23 Dec 2011 15:03:20 GMT From: "Mikhail T." To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/163564: [maintainer] [patch] mail/mimedefang fix rc.d script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2011 15:10:15 -0000 >Number: 163564 >Category: ports >Synopsis: [maintainer] [patch] mail/mimedefang fix rc.d script >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Dec 23 15:10:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Mikhail T. >Release: >Organization: >Environment: >Description: - Force to always wait for daemon shutdown in stop_it func. Otherwise mimedefang may not work if stop/start was made too fast. Suggested by: Daniel O'Connor - Bump PORTREVISION >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/mail/mimedefang/Makefile,v retrieving revision 1.74 diff -u -r1.74 Makefile --- Makefile 13 Aug 2011 07:52:29 -0000 1.74 +++ Makefile 23 Dec 2011 14:58:12 -0000 @@ -7,6 +7,7 @@ PORTNAME= mimedefang PORTVERSION= 2.72 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.mimedefang.org/static/ cvs diff: Diffing files Index: files/patch-examples__init-script.in =================================================================== RCS file: /home/ncvs/ports/mail/mimedefang/files/patch-examples__init-script.in,v retrieving revision 1.1 diff -u -r1.1 patch-examples__init-script.in --- files/patch-examples__init-script.in 13 Aug 2010 08:41:13 -0000 1.1 +++ files/patch-examples__init-script.in 23 Dec 2011 14:58:12 -0000 @@ -1,5 +1,5 @@ ---- examples/init-script.in.orig 2009-05-04 17:34:32.000000000 +0200 -+++ examples/init-script.in 2010-08-13 10:34:05.000000000 +0200 +--- examples/init-script.in.orig 2010-06-30 01:50:32.000000000 +0400 ++++ examples/init-script.in 2011-12-14 00:40:09.284988761 +0400 @@ -39,6 +39,12 @@ # The socket used by mimedefang to communicate with sendmail # SOCKET=$SPOOLDIR/mimedefang.sock @@ -27,7 +27,7 @@ # If you want to use the "notification" facility, set the appropriate port. # See the mimedefang-notify man page for details. -@@ -189,6 +195,7 @@ +@@ -193,6 +199,7 @@ procname=$PROGDIR/$prog-multiplexor start_cmd="start_it" stop_cmd="stop_it" @@ -35,7 +35,7 @@ sig_reload="INT" reread_cmd="reread_it" # provide both "reload", the FreeBSD default, with a direct signal to -@@ -199,6 +206,8 @@ +@@ -203,6 +210,8 @@ # Make sure required vars are set SOCKET=${SOCKET:=$SPOOLDIR/$prog.sock} MX_SOCKET=${MX_SOCKET:=$SPOOLDIR/$prog-multiplexor.sock} @@ -44,7 +44,7 @@ start_it() { if test -r $PID ; then -@@ -281,6 +290,29 @@ +@@ -286,6 +295,29 @@ kill `cat $MXPID` return 1 fi @@ -74,7 +74,16 @@ return 0 } -@@ -368,6 +400,12 @@ +@@ -321,7 +353,7 @@ + rm -f $MX_SOCKET > /dev/null 2>&1 + rm -f $SOCKET > /dev/null 2>&1 + +- if [ "$1" = "wait" ] ; then ++ if [ 1 ] ; then + printf "Waiting for daemons to exit." + WAITPID="" + test -f $PID && WAITPID=`cat $PID` +@@ -373,6 +405,12 @@ fi } >Release-Note: >Audit-Trail: >Unformatted: