From clsung@dragon2.net  Thu Oct 30 19:55:33 2003
Return-Path: <clsung@dragon2.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0AD1D16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Oct 2003 19:55:33 -0800 (PST)
Received: from mail.dragon2.net (sungsung.csie.nctu.edu.tw [140.113.215.201])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AAA6B43FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Oct 2003 19:55:29 -0800 (PST)
	(envelope-from clsung@dragon2.net)
Received: from localhost (localhost.csie.nctu.edu.tw [127.0.0.1])
	by mail.dragon2.net (Postfix) with ESMTP
	id 6BD9415328; Fri, 31 Oct 2003 03:56:53 +0000 (GMT)
Received: from mail.dragon2.net ([127.0.0.1])
 by localhost (sungsung.csie.nctu.edu.tw [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 56365-01; Fri, 31 Oct 2003 11:56:53 +0800 (CST)
Received: by mail.dragon2.net (Postfix, from userid 1022)
	id DD7DB15324; Fri, 31 Oct 2003 11:56:52 +0800 (CST)
Message-Id: <20031031035652.DD7DB15324@mail.dragon2.net>
Date: Fri, 31 Oct 2003 11:56:52 +0800 (CST)
From: Cheng-Lung Sung <clsung@dragon2.net>
Reply-To: Cheng-Lung Sung <clsung@dragon2.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: clsung@tiger2.net
Subject: New port: mail/mboxstats
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         58748
>Category:       ports
>Synopsis:       New port: mail/mboxstats
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sergei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 30 20:00:36 PST 2003
>Closed-Date:    Fri Oct 31 02:30:39 PST 2003
>Last-Modified:  Fri Oct 31 02:30:39 PST 2003
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.9-RELEASE FreeBSD 4.9-RELEASE #5: Wed Oct 29 20:13:25 CST 2003 root@sungsung.csie.nctu.edu.tw:/usr/obj/usr/src/sys/SUNGSUNG i386

>Description:
- new port:  Creates top-10 lists of the messages in a mailbox
>How-To-Repeat:
>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mboxstats
#	mboxstats/files
#	mboxstats/files/patch-main.cpp
#	mboxstats/Makefile
#	mboxstats/distinfo
#	mboxstats/pkg-descr
#	mboxstats/pkg-plist
#
echo c - mboxstats
mkdir -p mboxstats > /dev/null 2>&1
echo c - mboxstats/files
mkdir -p mboxstats/files > /dev/null 2>&1
echo x - mboxstats/files/patch-main.cpp
sed 's/^X//' >mboxstats/files/patch-main.cpp << 'END-of-mboxstats/files/patch-main.cpp'
X--- main.cpp.orig	Sun Sep  7 03:06:37 2003
X+++ main.cpp	Fri Oct 31 11:45:36 2003
X@@ -39,6 +39,7 @@
X #include <stdlib.h>
X #include <string.h>
X #include <time.h>
X+#include <sys/syslimits.h>
X #include <sys/types.h>
X #include <sys/stat.h>
X #include <fcntl.h>
END-of-mboxstats/files/patch-main.cpp
echo x - mboxstats/Makefile
sed 's/^X//' >mboxstats/Makefile << 'END-of-mboxstats/Makefile'
X# ex:ts=8
X# New ports collection makefile for:	mboxstats
X# Date created:			Oct 31 2003
X# Whom:				clsung
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mboxstats
XPORTVERSION=	1.3
XCATEGORIES=	mail
XMASTER_SITES=	http://vanheusden.com/mboxstats/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	clsung@dragon2.net
XCOMMENT=	Creates top-10 lists of the messages in a mailbox
X
XUSE_REINPLACE=	yes
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|ssize_t|size_t|g' ${WRKSRC}/io.h
X
X.include <bsd.port.mk>
END-of-mboxstats/Makefile
echo x - mboxstats/distinfo
sed 's/^X//' >mboxstats/distinfo << 'END-of-mboxstats/distinfo'
XMD5 (mboxstats-1.3.tgz) = 14e4b1cba0b778dff00db8eb10b9291c
END-of-mboxstats/distinfo
echo x - mboxstats/pkg-descr
sed 's/^X//' >mboxstats/pkg-descr << 'END-of-mboxstats/pkg-descr'
Xmboxstats creates several top-10 lists from a file containing message 
Xin mbox-format.  List of top10 lists:
X
Xo Top writes 
Xo Top receivers 
Xo Top subjects 
Xo Top cc'ers 
Xo Top top-level-domain 
Xo Top timezones 
Xo Top organisations 
Xo Top useragents (mailprograms) 
Xo Top month/day-of-month/day-of-week/hour 
Xo Average number of lines per message 
Xo All kinds of per-user statistics 
X
XAnd much more! 
X
XWWW: http://vanheusden.com/mboxstats/
END-of-mboxstats/pkg-descr
echo x - mboxstats/pkg-plist
sed 's/^X//' >mboxstats/pkg-plist << 'END-of-mboxstats/pkg-plist'
Xbin/mboxstats
END-of-mboxstats/pkg-plist
exit


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sergei 
Responsible-Changed-By: sergei 
Responsible-Changed-When: Thu Oct 30 23:45:13 PST 2003 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58748 

From: Yen-Ming Lee <leeym@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, clsung@dragon2.net
Cc:  
Subject: Re: ports/58748: New port: mail/mboxstats
Date: Fri, 31 Oct 2003 16:30:42 +0800

 --TakKZr9L6Hm6aLOc
 Content-Type: multipart/mixed; boundary="d6Gm4EdcadzBjdND"
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 
 
 --d6Gm4EdcadzBjdND
 Content-Type: text/plain; charset=big5
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 
 Hi, Alan and sergei,
 
 How about this shar file? just minor modifications:
 
 - use port's do-install: instead of original package's install:
     respect INSTALL_PROGRAM and PREFIX
     
 - <sys/syslimits.h> is included only for variable PATH_MAX
     use FILENAME_MAX instead, which is already included in stdio.h
 
 regards,
 -- 
 Yen-Ming Lee [۩] KeyID: 0x5EB52E51 : www.leeym.com : Taipei, Taiwan
 
 --d6Gm4EdcadzBjdND
 Content-Type: application/x-shar
 Content-Disposition: attachment; filename="mboxstats.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # This is a shell archive.  Save it in a file, remove anything before=0A# t=
 his line, and then unpack it by entering "sh file".  Note, it may=0A# creat=
 e directories; files and directories will be owned by you and=0A# have defa=
 ult permissions.=0A#=0A# This archive contains:=0A#=0A#	mboxstats=0A#	mboxs=
 tats/Makefile=0A#	mboxstats/distinfo=0A#	mboxstats/pkg-descr=0A#	mboxstats/=
 pkg-plist=0A#=0Aecho c - mboxstats=0Amkdir -p mboxstats > /dev/null 2>&1=0A=
 echo x - mboxstats/Makefile=0Ased 's/^X//' >mboxstats/Makefile << 'END-of-m=
 boxstats/Makefile'=0AX# ex:ts=3D8=0AX# New ports collection makefile for:	m=
 boxstats=0AX# Date created:			Oct 31 2003=0AX# Whom:				clsung=0AX#=0AX# $F=
 reeBSD$=0AX#=0AX=0AXPORTNAME=3D	mboxstats=0AXPORTVERSION=3D	1.3=0AXCATEGORI=
 ES=3D	mail=0AXMASTER_SITES=3D	http://vanheusden.com/mboxstats/=0AXEXTRACT_S=
 UFX=3D	.tgz=0AX=0AXMAINTAINER=3D	clsung@dragon2.net=0AXCOMMENT=3D	Creates t=
 op-10 lists of the messages in a mailbox=0AX=0AXUSE_REINPLACE=3D	yes=0AX=0A=
 Xpost-patch:=0AX	@${REINPLACE_CMD} -e 's|ssize_t|size_t|g' ${WRKSRC}/io.h=
 =0AX	@${REINPLACE_CMD} -e 's|PATH_MAX|FILENAME_MAX|g' ${WRKSRC}/main.cpp=0A=
 X=0AXdo-install:=0AX	${INSTALL_PROGRAM} ${WRKSRC}/mboxstats ${PREFIX}/bin=
 =0AX=0AX.include <bsd.port.mk>=0AEND-of-mboxstats/Makefile=0Aecho x - mboxs=
 tats/distinfo=0Ased 's/^X//' >mboxstats/distinfo << 'END-of-mboxstats/disti=
 nfo'=0AXMD5 (mboxstats-1.3.tgz) =3D 14e4b1cba0b778dff00db8eb10b9291c=0AEND-=
 of-mboxstats/distinfo=0Aecho x - mboxstats/pkg-descr=0Ased 's/^X//' >mboxst=
 ats/pkg-descr << 'END-of-mboxstats/pkg-descr'=0AXmboxstats creates several =
 top-10 lists from a file containing message =0AXin mbox-format.  List of to=
 p10 lists:=0AX=0AXo Top writes =0AXo Top receivers =0AXo Top subjects =0AXo=
  Top cc'ers =0AXo Top top-level-domain =0AXo Top timezones =0AXo Top organi=
 sations =0AXo Top useragents (mailprograms) =0AXo Top month/day-of-month/da=
 y-of-week/hour =0AXo Average number of lines per message =0AXo All kinds of=
  per-user statistics =0AX=0AXAnd much more! =0AX=0AXWWW: http://vanheusden.=
 com/mboxstats/=0AEND-of-mboxstats/pkg-descr=0Aecho x - mboxstats/pkg-plist=
 =0Ased 's/^X//' >mboxstats/pkg-plist << 'END-of-mboxstats/pkg-plist'=0AXbin=
 /mboxstats=0AEND-of-mboxstats/pkg-plist=0Aexit=0A=0A
 --d6Gm4EdcadzBjdND--
 
 --TakKZr9L6Hm6aLOc
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.3 (FreeBSD)
 
 iQCVAwUBP6IdssnMx0NetS5RAQHZ3wQA1GToASh7RD1d3vdiTg0rXmKrZI+eeKCg
 J2LVQIgWNw8y8lDeKBH72fCAdwN3ReObSY3I211GY5GcDZ4/O0HV7CJ6us2zSJyC
 JHI2Ny3D1ndpfep3qqwm/5zIr+4/Qstq/DrQwIoM9Pe2GM0lwLHppM2JQFFJMilf
 +CgY3CapNsM=
 =58r/
 -----END PGP SIGNATURE-----
 
 --TakKZr9L6Hm6aLOc--

From: Cheng-Lung Sung <clsung@dragon2.net>
To: Yen-Ming Lee <leeym@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org, clsung@tiger2.net
Subject: Re: ports/58748: New port: mail/mboxstats
Date: Fri, 31 Oct 2003 16:37:40 +0800

 --wac7ysb48OaltWcw
 Content-Type: text/plain; charset=big5
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 
 I agree with leeym.
 
 Thanks to Yen-Ming :)
 
 On Fri, Oct 31, 2003 at 04:30:42PM +0800, Yen-Ming Lee wrote:
 > Hi, Alan and sergei,
 >=20
 > How about this shar file? just minor modifications:
 >=20
 > - use port's do-install: instead of original package's install:
 >     respect INSTALL_PROGRAM and PREFIX
 >    =20
 > - <sys/syslimits.h> is included only for variable PATH_MAX
 >     use FILENAME_MAX instead, which is already included in stdio.h
 >=20
 > regards,
 > --=20
 > Yen-Ming Lee [=A7=F5=AB=DB=A9=FA] KeyID: 0x5EB52E51 : www.leeym.com : Tai=
 pei, Taiwan
 
 
 
 
 
 --wac7ysb48OaltWcw
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.3 (FreeBSD)
 
 iD8DBQE/oh9T+AeJ85Vui8ERAsr9AJ99S7syzwuweGlfLh9OvNIF3iAHhgCeIR/j
 6lZVqVqZbU8VX8OvYdJIhBQ=
 =HfG1
 -----END PGP SIGNATURE-----
 
 --wac7ysb48OaltWcw--
State-Changed-From-To: open->closed 
State-Changed-By: leeym 
State-Changed-When: Fri Oct 31 02:30:36 PST 2003 
State-Changed-Why:  
Committed, thanks. 

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