Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2011 13:00:09 GMT
From:      Alexander Moisseev <moiseev@mezonplus.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/157087: www/free-sa-devel: update to 2.0.0b4.8
Message-ID:  <201105161300.p4GD09RB007340@red.freebsd.org>
Resent-Message-ID: <201105161300.p4GD0LPL077453@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         157087
>Category:       ports
>Synopsis:       www/free-sa-devel: update to 2.0.0b4.8
>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:   Mon May 16 13:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Moisseev
>Release:        
>Organization:
>Environment:
>Description:
- Update to 2.0.0b4.8
>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	2011-05-15 04:59:44.000000000 +0400
+++ free-sa-devel/Makefile	2011-05-16 13:51:01.000000000 +0400
@@ -6,12 +6,12 @@
 #
 
 PORTNAME=	free-sa
-PORTVERSION=	2.0.0b4.p7
+PORTVERSION=	2.0.0b4.8
 CATEGORIES=	www
 MASTER_SITES=	SF
-MASTER_SITE_SUBDIR=	free-sa/free-sa-dev/2.0.0b4p6/
+MASTER_SITE_SUBDIR=	free-sa/free-sa-dev/2.0.0b4p8/
 PKGNAMESUFFIX=	-devel
-DISTNAME=	free-sa-2.0.0b4p6
+DISTNAME=	free-sa-2.0.0b4p8
 
 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	2011-05-15 04:59:44.000000000 +0400
+++ free-sa-devel/distinfo	2011-05-16 13:51:59.000000000 +0400
@@ -1,2 +1,2 @@
-SHA256 (free-sa-2.0.0b4p6.tar.gz) = 81c062a8235322475ec710cb3e76a20730bce1d2c319334ef09a6a59b4af771b
-SIZE (free-sa-2.0.0b4p6.tar.gz) = 95175
+SHA256 (free-sa-2.0.0b4p8.tar.gz) = 5dfd231e97df8701767aa17e6a58bc3c1abcf9b863d089a168589359eb630171
+SIZE (free-sa-2.0.0b4p8.tar.gz) = 96094
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	2011-05-15 04:59:45.000000000 +0400
+++ free-sa-devel/files/patch-2.0.0b4p7	1970-01-01 03:00:00.000000000 +0300
@@ -1,151 +0,0 @@
-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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105161300.p4GD09RB007340>