ports/120880: [PATCH] net/vnstat doc/vnstat-cron has wrong entries

Randy Pratt bsd-unix at embarqmail.com
Wed Feb 20 12:50:03 UTC 2008


>Number:         120880
>Category:       ports
>Synopsis:       [PATCH] net/vnstat doc/vnstat-cron has wrong entries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 20 12:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Randy Pratt
>Release:        6.3-STABLE
>Organization:
>Environment:
FreeBSD kt.weeeble.com 6.3-STABLE FreeBSD 6.3-STABLE #0: Thu Feb 14 16:02:22 EST 2008     rpratt at kt.weeeble.com:/usr/obj/usr/src/sys/CUSTOM  i386
>Description:
Suggested entry for /etc/crontab shows wrong paths.

cat /usr/local/share/doc/vnstat/vnstat-cron 
*/5 *   * * *   root    if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi

should be:

*/5 *   * * *   root    if [ -x /usr/local/bin/vnstat ] && [ `ls /var/db/vnstat/ | wc -l` -ge 1 ]; then /usr/local/bin/vnstat -u; fi
>How-To-Repeat:
See problem description.
>Fix:
add a patch to files/

--- vnstat-cron.orig    2008-02-20 07:25:56.000000000 -0500
+++ vnstat-cron 2008-02-20 07:26:55.000000000 -0500
@@ -1 +1 @@
-*/5 *  * * *   root    if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi
+*/5 *  * * *   root    if [ -x /usr/local/bin/vnstat ] && [ `ls /var/db/vnstat/ | wc -l` -ge 1 ]; then /usr/local/bin/vnstat -u; fi

Patch attached with submission follows:

--- vnstat-cron.orig	2008-02-20 07:25:56.000000000 -0500
+++ vnstat-cron	2008-02-20 07:26:55.000000000 -0500
@@ -1 +1 @@
-*/5 *	* * *	root	if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi
+*/5 *	* * *	root	if [ -x /usr/local/bin/vnstat ] && [ `ls /var/db/vnstat/ | wc -l` -ge 1 ]; then /usr/local/bin/vnstat -u; fi


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



More information about the freebsd-ports-bugs mailing list