From sgk@kolobov.com  Fri Jul 11 07:18:17 2003
Return-Path: <sgk@kolobov.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 898E237B404
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 07:18:17 -0700 (PDT)
Received: from outpost.globcon.net (outpost.globcon.net [62.141.88.161])
	by mx1.FreeBSD.org (Postfix) with SMTP id 1BFD043FB1
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 07:18:15 -0700 (PDT)
	(envelope-from sgk@kolobov.com)
Received: (qmail 43329 invoked from network); 11 Jul 2003 14:11:34 -0000
Received: from agdcgw01.akingump.com (HELO kolobov.com) (12.40.174.2)
  by outpost.globcon.net with SMTP; 11 Jul 2003 14:11:34 -0000
Received: (qmail 23963 invoked by uid 911); 11 Jul 2003 14:10:41 -0000
Message-Id: <20030711141041.23962.qmail@kolobov.com>
Date: 11 Jul 2003 14:10:41 -0000
From: Sergei Kolobov <sergei@kolobov.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: petef@FreeBSD.org
Subject: [PATCH] mail/qmHandle: update to 1.1.1
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54373
>Category:       ports
>Synopsis:       [PATCH] mail/qmHandle: update to 1.1.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    petef
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 11 07:20:01 PDT 2003
>Closed-Date:    Sun Jan 04 17:19:52 CST 2004
>Last-Modified:  Sun Jan 04 17:19:52 CST 2004
>Originator:     Sergei Kolobov
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD elf.chetwood.ru 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Thu Jun  5 02:19:41 MSD
>Description:
- Update to 1.1.1
- Change awk(1) instead of cut(1) in pidof replacement pipe
- Use DOCSDIR macro in pkg-plist

Include fixes from ports/52939:
- Update to 1.1.0:                                                                                  
  * Development resume at SourceForge                                                               
    * Added new -a option (send ALRM signal to qmail-send to flush its queue)                         
    - Minor Makefile tweaks while I'm here                                                              
                                                                                                        
Obsoletes:	ports/52939

Port maintainer (petef@FreeBSD.org) is cc'd.
>How-To-Repeat:
>Fix:

--- qmHandle-1.1.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /FreeBSD/cvs/ports/mail/qmHandle/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	6 Apr 2003 19:51:37 -0000	1.5
+++ Makefile	11 Jul 2003 12:43:33 -0000
@@ -6,26 +6,22 @@
 #
 
 PORTNAME=	qmHandle
-PORTVERSION=	1.0.0
-PORTREVISION=	1
+PORTVERSION=	1.1.1
 CATEGORIES=	mail
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=	qmhandle
+MASTER_SITE_SUBDIR=	${PORTNAME:L}
+DISTNAME=	${PORTNAME:L}-${PORTVERSION}
 
 MAINTAINER=	petef@FreeBSD.org
 COMMENT=	Tool to view and manage a qmail queue
 
-RUN_DEPENDS=	${QMAIL_DIR}/bin/qmail-qstat:${PORTSDIR}/mail/qmail
+RUN_DEPENDS=	qmail-qstat:${PORTSDIR}/mail/qmail
 
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 USE_PERL5=	yes
 
-.if exists(${LOCALBASE}/qmail/bin/qmail-qstat)
-QMAIL_DIR?=	${LOCALBASE}/qmail
-.else
-QMAIL_DIR?=	/var/qmail
-.endif
+DOCS=		HISTORY README
 
 post-patch:
 	@${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},; \
@@ -35,9 +31,7 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${PREFIX}/bin
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-.for file in HISTORY README
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /FreeBSD/cvs/ports/mail/qmHandle/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	6 Apr 2003 19:51:37 -0000	1.3
+++ distinfo	11 Jul 2003 12:43:44 -0000
@@ -1 +1 @@
-MD5 (qmHandle-1.0.0.tar.gz) = 4522172ffaba5830757b2f1730ecb534
+MD5 (qmhandle-1.1.1.tar.gz) = ed3d31647c386a5c33f1695e1444b558
Index: pkg-plist
===================================================================
RCS file: /FreeBSD/cvs/ports/mail/qmHandle/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	24 Aug 2001 18:29:56 -0000	1.1
+++ pkg-plist	11 Jul 2003 12:52:04 -0000
@@ -1,4 +1,4 @@
 bin/qmHandle
-%%PORTDOCS%%share/doc/qmHandle/HISTORY
-%%PORTDOCS%%share/doc/qmHandle/README
-%%PORTDOCS%%@dirrm share/doc/qmHandle
+%%PORTDOCS%%%%DOCSDIR%%/HISTORY
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
Index: files/patch-qmHandle
===================================================================
RCS file: /FreeBSD/cvs/ports/mail/qmHandle/files/patch-qmHandle,v
retrieving revision 1.1
diff -u -r1.1 patch-qmHandle
--- files/patch-qmHandle	23 Jan 2003 13:32:09 -0000	1.1
+++ files/patch-qmHandle	11 Jul 2003 14:03:58 -0000
@@ -24,7 +24,7 @@
 -my ($pidcmd) = 'pidof qmail-send';
 +#my ($pidcmd) = 'pidof qmail-send';
 +# This is for FreeBSD with a standard qmail installation:
-+my ($pidcmd) = 'ps -U qmails | grep qmail-send | cut -s -d " " -f 3';
++my ($pidcmd) = 'ps -U qmails | grep qmail-send | awk "{print \$1;}"';
 +
  
  ####################  USER CONFIGURATION END  ####################
--- qmHandle-1.1.1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->petef 
Responsible-Changed-By: osa 
Responsible-Changed-When: Fri Jul 11 07:55:47 PDT 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54373 
State-Changed-From-To: open->feedback 
State-Changed-By: petef 
State-Changed-When: Sat Aug 16 11:05:41 CDT 2003 
State-Changed-Why:  
Sorry about the delay on this! 

Is there any reason we're removing the QMAIL_DIR logic?  This is 
required for the dependency to be satisfied if I don't have /var/qmail/bin 
in my path (and bento's automated build doesn't). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54373 
State-Changed-From-To: feedback->closed 
State-Changed-By: petef 
State-Changed-When: Sun Jan 4 17:19:50 CST 2004 
State-Changed-Why:  
We're at 1.2 now, thanks! 

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