From zaa@zaa.pp.ru  Thu Nov 23 15:50:38 2006
Return-Path: <zaa@zaa.pp.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 45D9A16A4A7
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Nov 2006 15:50:38 +0000 (UTC)
	(envelope-from zaa@zaa.pp.ru)
Received: from kernel.ulstu.ru (kernel.ulstu.ru [62.76.34.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 32C7A43DB4
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Nov 2006 15:49:28 +0000 (GMT)
	(envelope-from zaa@zaa.pp.ru)
Received: from localhost (localhost [127.0.0.1])
	by kernel.ulstu.ru (ulstuMail) with ESMTP id 8487E4AEDE;
	Thu, 23 Nov 2006 18:49:55 +0300 (MSK)
Received: from kernel.ulstu.ru ([127.0.0.1])
	by localhost (kernel.ulstu.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id lQk264IFoPK5; Thu, 23 Nov 2006 18:49:49 +0300 (MSK)
Received: from wave.zaa.local (zaa.ulstu.ru [62.76.34.17])
	by kernel.ulstu.ru (ulstuMail) with ESMTP id E0CD04AECA
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Nov 2006 18:49:46 +0300 (MSK)
Received: by wave.zaa.local (Postfix, from userid 3909)
	id 364C0B816; Thu, 23 Nov 2006 18:49:50 +0300 (MSK)
Message-Id: <20061123154950.364C0B816@wave.zaa.local>
Date: Thu, 23 Nov 2006 18:49:50 +0300 (MSK)
From: Alexander Zhuravlev <zaa@zaa.pp.ru>
Reply-To: Alexander Zhuravlev <zaa@zaa.pp.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [NEW PORT] databases/mysqlsla Mysqlsla analyzes general, slow, and raw MySQL statement logs
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         105788
>Category:       ports
>Synopsis:       [NEW PORT] databases/mysqlsla Mysqlsla analyzes general, slow, and raw MySQL statement logs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 23 16:00:33 GMT 2006
>Closed-Date:    Thu Nov 23 22:24:31 GMT 2006
>Last-Modified:  Thu Nov 23 22:30:13 GMT 2006
>Originator:     Alexander Zhuravlev
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD wave.zaa.local 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #34: Thu Nov 23 16:32:08 MSK 2006 root@wave.zaa.local:/usr/obj/usr/src/sys/WAVE i386


	
>Description:

	mysqlsla analyzes general, slow, and raw MySQL statement logs.
	mysqlsla can read multiple MySQL general and slow logs (and logs
	containing raw SQL statements), combine them, then run various
	analyses on all the queries.  In addition, mysqlsla can correlate
	the analyses so that the queries in one analysis are used as the
	basis for subsequent analyses.  Other options include limiting the
	output of each analysis to the top N queries, averaging execution
	time over N runs, customizing the order in which the analyses are
	ran, statement filtering, statement pattern matching, and
	mysqldumpslow-like formatting.

>How-To-Repeat:
	
>Fix:

	

--- mysqlsla.port begins here ---
# 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:
#
#	mysqlsla/
#	mysqlsla/pkg-descr
#	mysqlsla/distinfo
#	mysqlsla/Makefile
#	mysqlsla/files
#	mysqlsla/files/patch-mysqlsla
#
echo c - mysqlsla/
mkdir -p mysqlsla/ > /dev/null 2>&1
echo x - mysqlsla/pkg-descr
sed 's/^X//' >mysqlsla/pkg-descr << 'END-of-mysqlsla/pkg-descr'
Xmysqlsla analyzes general, slow, and raw MySQL statement logs.
Xmysqlsla can read multiple MySQL general and slow logs (and logs
Xcontaining raw SQL statements), combine them, then run various
Xanalyses on all the queries.  In addition, mysqlsla can correlate
Xthe analyses so that the queries in one analysis are used as the
Xbasis for subsequent analyses.  Other options include limiting the
Xoutput of each analysis to the top N queries, averaging execution
Xtime over N runs, customizing the order in which the analyses are
Xran, statement filtering, statement pattern matching, and
Xmysqldumpslow-like formatting.
X
XWWW: http://hackmysql.com/mysqlsla
END-of-mysqlsla/pkg-descr
echo x - mysqlsla/distinfo
sed 's/^X//' >mysqlsla/distinfo << 'END-of-mysqlsla/distinfo'
XMD5 (mysqlsla-1.3.tgz) = fc426c50e084e3be5aedfccd6f395fac
XSHA256 (mysqlsla-1.3.tgz) = bd286d4071de17a04cfafaccae05bdab9fb9089cafe626d0b6fba14b46eba7a0
XSIZE (mysqlsla-1.3.tgz) = 14372
END-of-mysqlsla/distinfo
echo x - mysqlsla/Makefile
sed 's/^X//' >mysqlsla/Makefile << 'END-of-mysqlsla/Makefile'
X# New ports collection makefile for:	mysqlsla
X# Date created:			2006-11-23
X# Whom:				Alexander Zhuravlev <zaa@zaa.pp.ru>
X#
X# $FreeBSD$
X
XPORTNAME=	mysqlsla
XPORTVERSION=	1.3
XCATEGORIES=	databases
XMASTER_SITES=	http://hackmysql.com/scripts/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	zaa@zaa.pp.ru
XCOMMENT=	Mysqlsla analyzes general, slow, and raw MySQL statement logs
X
XRUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
X		${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
X
XUSE_PERL5=	yes
XNO_BUILD=	yes
XNO_WRKSUBDIR=	yes
X
XPLIST_FILES=	bin/mysqlsla
XPORTDOCS=	mysqlsladoc.html
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500805
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
X.endif
X
Xdo-install:
X	@${INSTALL_SCRIPT} ${WRKSRC}/mysqlsla ${PREFIX}/bin
X
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} "===>   Installing documentation for ${PKGNAME}"
X	@${MKDIR} ${DOCSDIR}
X.	for i in ${PORTDOCS}
X		@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
X.	endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-mysqlsla/Makefile
echo c - mysqlsla/files
mkdir -p mysqlsla/files > /dev/null 2>&1
echo x - mysqlsla/files/patch-mysqlsla
sed 's/^X//' >mysqlsla/files/patch-mysqlsla << 'END-of-mysqlsla/files/patch-mysqlsla'
X--- mysqlsla.orig	Thu Nov 23 18:31:31 2006
X+++ mysqlsla	Thu Nov 23 18:31:47 2006
X@@ -115,7 +115,7 @@ if( (!$op{'general'} && !$op{'slow'} && 
X 
X $op{'host'}   ||= 'localhost';
X $op{'port'}   ||= 3306;
X-$op{'socket'} ||= '/var/run/mysqld/mysqld.sock';
X+$op{'socket'} ||= '/tmp/mysql.sock';
X $op{'avg'}    ||= 1;
X $op{'top'}    ||= 0;
X if(have_op 'safe')   { $op{'filter'} = "-*,+SELECT,+USE"; }
END-of-mysqlsla/files/patch-mysqlsla
exit
--- mysqlsla.port ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Thu Nov 23 16:12:14 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105788 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Thu Nov 23 22:24:30 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/105788: commit references a PR
Date: Thu, 23 Nov 2006 22:22:30 +0000 (UTC)

 miwi        2006-11-23 22:22:25 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases            Makefile 
   Added files:
     databases/mysqlsla   Makefile distinfo pkg-descr 
     databases/mysqlsla/files patch-mysqlsla 
   Log:
   mysqlsla analyzes general, slow, and raw MySQL statement logs.
   mysqlsla can read multiple MySQL general and slow logs (and logs
   containing raw SQL statements), combine them, then run various
   analyses on all the queries.  In addition, mysqlsla can correlate
   the analyses so that the queries in one analysis are used as the
   basis for subsequent analyses.  Other options include limiting the
   output of each analysis to the top N queries, averaging execution
   time over N runs, customizing the order in which the analyses are
   ran, statement filtering, statement pattern matching, and
   mysqldumpslow-like formatting.
   
   WWW: http://hackmysql.com/mysqlsla
   
   PR:             ports/105788
   Submitted by:   Alexander Zhuravlev <zaa at zaa.pp.ru>
   
   Revision  Changes    Path
   1.563     +1 -0      ports/databases/Makefile
   1.1       +43 -0     ports/databases/mysqlsla/Makefile (new)
   1.1       +3 -0      ports/databases/mysqlsla/distinfo (new)
   1.1       +11 -0     ports/databases/mysqlsla/files/patch-mysqlsla (new)
   1.1       +12 -0     ports/databases/mysqlsla/pkg-descr (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
