From nobody@FreeBSD.org  Tue May 10 09:13:18 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2ED64106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2011 09:13:18 +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 1EC298FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2011 09:13:18 +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 p4A9DHVF060046
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2011 09:13:17 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4A9DH0b060041;
	Tue, 10 May 2011 09:13:17 GMT
	(envelope-from nobody)
Message-Id: <201105100913.p4A9DH0b060041@red.freebsd.org>
Date: Tue, 10 May 2011 09:13:17 GMT
From: Alexander Moisseev <moiseev@mezonplus.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [maintainer update] www/free-sa-devel: update to 2.0.0b4.p7
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156924
>Category:       ports
>Synopsis:       [maintainer update] www/free-sa-devel: update to 2.0.0b4.p7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    beech
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 10 09:20:08 UTC 2011
>Closed-Date:    Sun May 15 01:01:09 UTC 2011
>Last-Modified:  Sun May 15 01:10:11 UTC 2011
>Originator:     Alexander Moisseev
>Release:        
>Organization:
>Environment:
>Description:
- Update to 2.0.0b4.p7
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN free-sa-devel.orig/Makefile free-sa-devel/Makefile
--- free-sa-devel.orig/Makefile	Tue Apr 26 12:17:14 2011
+++ free-sa-devel/Makefile	Tue May 10 11:20:07 2011
@@ -6,11 +6,12 @@
 #
 
 PORTNAME=	free-sa
-PORTVERSION=	2.0.0b4
+PORTVERSION=	2.0.0b4.p7
 CATEGORIES=	www
 MASTER_SITES=	SF
-MASTER_SITE_SUBDIR=	free-sa/free-sa-dev/2.0.0b4/
+MASTER_SITE_SUBDIR=	free-sa/free-sa-dev/2.0.0b4p6/
 PKGNAMESUFFIX=	-devel
+DISTNAME=	free-sa-2.0.0b4p6
 
 MAINTAINER=	moiseev@mezonplus.ru
 COMMENT=	Statistic analyzer for daemons log files similar to SARG
diff -ruN free-sa-devel.orig/distinfo free-sa-devel/distinfo
--- free-sa-devel.orig/distinfo	Tue Apr 26 12:17:14 2011
+++ free-sa-devel/distinfo	Tue May 10 10:54:45 2011
@@ -1,2 +1,2 @@
-SHA256 (free-sa-2.0.0b4.tar.gz) = 5ca6b80e826b9af923dcbc9d3ce48270e9368834e624dbd77c84dbcf0640167f
-SIZE (free-sa-2.0.0b4.tar.gz) = 93728
+SHA256 (free-sa-2.0.0b4p6.tar.gz) = 81c062a8235322475ec710cb3e76a20730bce1d2c319334ef09a6a59b4af771b
+SIZE (free-sa-2.0.0b4p6.tar.gz) = 95175
diff -ruN free-sa-devel.orig/files/patch-2.0.0b4p7 free-sa-devel/files/patch-2.0.0b4p7
--- free-sa-devel.orig/files/patch-2.0.0b4p7	Thu Jan  1 03:00:00 1970
+++ free-sa-devel/files/patch-2.0.0b4p7	Tue May 10 11:09:02 2011
@@ -0,0 +1,151 @@
+diff -urN ChangeLog free-sa-2.0.0b4p7/ChangeLog
+--- ChangeLog	2011-05-02 19:28:57.000000000 +0400
++++ free-sa-2.0.0b4p7/ChangeLog	2011-05-07 23:10:07.024000097 +0400
+@@ -1,4 +1,4 @@
+-2.0.0b4p6:
++2.0.0b4p7:
+     * FR3024195 (w_config.c)
+ 	You may use TAB for separating usertab entries.
+     * (w_svg.*)
+@@ -15,6 +15,9 @@
+     * (w_config.*, r_topusers.c, free-sa.conf*)
+ 	New options 'users_excess' and 'users_excess_limit' were added for
+ 	generating plain text report file with users exceeding specified limit.
++    * FR3137680 (w_log_operations.c)
++	Clear cache directory in case if no records were found and exit with good
++	return code.
+ 
+ 2.0.0b4:
+     * (pt.iso88591.in, lt.iso885913.in)
+diff -urN global.mk free-sa-2.0.0b4p7/global.mk
+--- global.mk	2011-05-02 19:29:17.000000000 +0400
++++ free-sa-2.0.0b4p7/global.mk	2011-05-07 23:07:59.715999989 +0400
+@@ -25,7 +25,7 @@
+ include $(GMKPATH)/configs/$(OSTYPE).mk
+ 
+ PROGNAME = Free-SA
+-PROGVERSION = 2.0.0b4p6
++PROGVERSION = 2.0.0b4p7
+ PROGURL = http://free-sa.sourceforge.net
+ PROGLNAME = free-sa
+ PROGCOPYRIGHT = Copyright (C) 1997, 2006-2011 Oleg Sapon <xsov@mail.ru>
+diff -urN src/free-sa.c free-sa-2.0.0b4p7/src/free-sa.c
+--- src/free-sa.c	2010-11-01 01:18:34.000000000 +0300
++++ free-sa-2.0.0b4p7/src/free-sa.c	2011-05-07 21:11:47.995999949 +0400
+@@ -42,6 +42,7 @@
+     SAdebug("Open file count: %d\nUsers entries count: %d\n", ofcount, icfg.ueCount);
+ #endif
+ 
++
+     EDEBUG();
+     return(EXIT_SUCCESS);
+ }
+diff -urN src/work/w_log_operations.c free-sa-2.0.0b4p7/src/work/w_log_operations.c
+--- src/work/w_log_operations.c	2010-10-17 20:09:09.000000000 +0400
++++ free-sa-2.0.0b4p7/src/work/w_log_operations.c	2011-05-07 23:01:50.483000189 +0400
+@@ -124,7 +124,7 @@
+ 	    ures = (struct SAusertab *)bsearch(&ukey, icfg.Usertab, (size_t)icfg.utCount, sizeof(struct SAusertab), (int (*)(const void *, const void *))compSAusertab);
+ 	    if (ures != NULL) cures->vname = ures->ename;
+ 	}
+-	    
++	
+ 	/* If we still not filled vname then fill it with value of name */
+ 	if (!cures->vname) cures->vname = cures->name;
+ 	
+@@ -264,7 +264,11 @@
+ #endif
+ 
+     /* Exit if no records found */
+-    if (!icfg.ueCount) SAexit("No records found");
++    if (!icfg.ueCount) {
++	SArm(cfg.cache_directory);
++	SAwarning("No records found");
++	exit(EXIT_SUCCESS);
++    }
+ 
+     /* Close log file */
+     SAfclose(Log);
+@@ -294,7 +298,7 @@
+ 
+ 	/* Save EOF position as end of 1st range (because ShowLogI seeks to EOF) */
+ 	eseek = SAftell(Log);
+-	
++
+ 	/* Fast (?) binary search */
+ 	for (;;) {
+ 	    /* Break if range is little enough to process it sequentally 
+@@ -333,7 +337,7 @@
+ 	SAdebug("Final position found: %lld", (long long int)rseek);
+ #endif
+     } else SAwarning("Non-linear and/or non-seekable log format detected, can't seek for fast data processing");
+-    
++
+     return 0;
+ }
+ 
+@@ -341,11 +345,11 @@
+ /* Function initial/finish log position: start/end */
+ void ShowLogI(FILE *Log, time_t *mindate, time_t *maxdate) {
+     time_t ttime;
+-    
+-    
++
++
+     *mindate = SAMAXTIMET;
+     *maxdate = 0L;
+-    
++
+     if (LogFormats[cfg.log_format].mode == 3) { /* Log file is linear and seekable */
+ 	/* Read first record date */
+ 	if (!READ_DT(Log, &ttime)) SAexit("Can't read log");
+@@ -390,10 +394,10 @@
+     FILE *tLog;
+     char *tbuf, tfname[FILENAMESIZE];
+ 
+-    
++
+     SAsnprintf(tfname, sizeof(tfname), "%s.new", cfg.log_file);
+     tLog = SAfopenI("w", tfname);
+-    
++
+     tbuf = (char *)SAmalloc(RECORDSIZE);
+     while (READ_FULLDT(Log, &ttime, tbuf)) {
+ 	/* Skip records in specified date range */
+@@ -403,7 +407,7 @@
+ 	SAfwrite1("\n", 1L, tLog);
+     }
+     free(tbuf);
+-    
++
+     SAfclose(tLog);
+     SAfcloseU(Log, cfg.log_file);
+     if (rename(tfname, cfg.log_file)) SAexit("Can't rename %s to %s. %s", tfname, cfg.log_file, strerror(errno));
+@@ -414,23 +418,23 @@
+ FILE *InitLog(void) {
+     FILE *retval;
+     struct stat tstat;
+-    
+-    
++
++
+     retval = SAfopenI("r", cfg.log_file);
+     if (fstat(fileno(retval), &tstat) == -1) SAexit("Can't stat %s", cfg.log_file);
+     if (S_ISFIFO(tstat.st_mode)) {
+ 	SAwarning("Log file is FIFO pipe, switching to non-seekable mode");
+ 	SAclrbit(LogFormats[cfg.log_format].mode, 0);
+     }
+-    
++
+     /* Set READ_RECORD for manually specified log format (others - for all) */
+     READ_RECORDM = LogFormats[cfg.log_format].ReadRecordM;
+     READ_RECORDI = LogFormats[cfg.log_format].ReadRecord;
+     READ_DTI = LogFormats[cfg.log_format].ReadDT;
+     READ_FULLDTI = LogFormats[cfg.log_format].ReadFullDT;
+     READ_ALIGN = LogFormats[cfg.log_format].ReadAlign;
+-    
+-    
++
++
+     return retval;
+ }
+ 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->beech 
Responsible-Changed-By: beech 
Responsible-Changed-When: Wed May 11 17:29:42 UTC 2011 
Responsible-Changed-Why:  
I'll take it 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156924 
State-Changed-From-To: open->closed 
State-Changed-By: beech 
State-Changed-When: Sun May 15 01:00:53 UTC 2011 
State-Changed-Why:  
Committed, Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156924: commit references a PR
Date: Sun, 15 May 2011 01:02:58 +0000 (UTC)

 beech       2011-05-15 00:59:45 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/free-sa-devel    Makefile distinfo 
   Added files:
     www/free-sa-devel/files patch-2.0.0b4p7 
   Log:
   -Update to 2.0.0b4.p7
   
   PR:             ports/156924
   Submitted by:   Alexander Moisseev <moiseev@mezonplus.ru> (maintainer)
   Approved by:    itetcu (mentor)(implicit)
   
   Revision  Changes    Path
   1.7       +3 -2      ports/www/free-sa-devel/Makefile
   1.5       +2 -2      ports/www/free-sa-devel/distinfo
   1.1       +151 -0    ports/www/free-sa-devel/files/patch-2.0.0b4p7 (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:
