ports/133030: [PATCH] net/cvsup-mirror: Don't compress cvsup.log

Xin LI delphij at FreeBSD.org
Wed Mar 25 00:00:14 UTC 2009


>Number:         133030
>Category:       ports
>Synopsis:       [PATCH] net/cvsup-mirror: Don't compress cvsup.log
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 25 00:00:12 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Xin LI
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD freefall.freebsd.org 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #36: Mon Dec 29 15:15:30 UTC 2008 simon at freefall.freebsd.org:/usr/src/sys/i386/compile/FREEFALL i386


>Description:
	By default, cvsup-mirror would create a newsyslog entry which not
only cut the cvsup.log file, but also compress it.  On the other hand, the
port does not implement proper logging mechanism which can be notified when
the log file is rotated.

	This would cause problem when the updating changeset is very large,
the system administrator just loses the opportunity to watch the progress
of the synchornization.

	The attached patch changes the flag from 'Z' to '-'.
>How-To-Repeat:
	Install a new cvsup mirror and watch the log.
>Fix:


--- cvsup-mirror.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/cvsup-mirror/Makefile,v
retrieving revision 1.28
diff -u -p -r1.28 Makefile
--- Makefile	13 Mar 2008 21:31:02 -0000	1.28
+++ Makefile	24 Mar 2009 23:54:10 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	cvsup-mirror
 PORTVERSION=	1.3
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	net
 DISTFILES=
 
Index: pkg-install
===================================================================
RCS file: /home/ncvs/ports/net/cvsup-mirror/pkg-install,v
retrieving revision 1.7
diff -u -p -r1.7 pkg-install
--- pkg-install	2 Jan 2006 10:05:11 -0000	1.7
+++ pkg-install	24 Mar 2009 23:54:01 -0000
@@ -190,7 +190,7 @@ EOF
 
 	    echo "Adding cvsup and cvsupd log entry to \"/etc/newsyslog.conf\"."
 	    cat <<EOF >>/etc/newsyslog.conf
-/var/log/cvsup.log			664  7    *    24    Z
+/var/log/cvsup.log			664  7    *    24    -
 /var/log/cvsupd.log			664  7    *    24    Z
 EOF
 	    echo "Done."
--- cvsup-mirror.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list