Bug 120880

Summary: [PATCH] net/vnstat doc/vnstat-cron has wrong entries
Product: Ports & Packages Reporter: Randy Pratt <bsd-unix>
Component: Individual Port(s)Assignee: Beech Rintoul <beech>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
patch-vnstat none

Description Randy Pratt 2008-02-20 12:50:01 UTC
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

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:
How-To-Repeat: See problem description.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-02-20 12:50:07 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Dennis Herrmann 2008-02-20 16:32:37 UTC
It's okay please fix it :)

Wed, 20 Feb 2008 12:50:05 UT, Edwin Groothuis <edwin@freebsd.org>:
>
> Maintainer of net/vnstat,
>
> Please note that PR ports/120880 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/120880
>
>
> --
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
>
Comment 3 Dennis Herrmann 2008-02-20 19:11:11 UTC
I write bullshit sorry really sorry i forgett that the cron copied before it
install Randy Pratt <bsd-unix@embarqmail.com> is ok and run !!!!!!!!!
please forgett my fucking patch i so confused the last days
Comment 4 Beech Rintoul freebsd_committer freebsd_triage 2008-02-20 21:27:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

I'll take it
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-02-20 21:53:41 UTC
beech       2008-02-20 21:53:36 UTC

  FreeBSD ports repository

  Modified files:
    net/vnstat           Makefile 
  Log:
  - Fix path in vnstat-cron
  - Bump portrevision
  
  PR:             ports/120880
  Submitted by:   Randy Pratt <bsd-unix@embarqmail.com>
  Approved by:    Dennis Herrmann <adox@mcx2.org> (maintainer)
  
  Revision  Changes    Path
  1.2       +3 -0      ports/net/vnstat/Makefile
_______________________________________________
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"
Comment 6 Beech Rintoul freebsd_committer freebsd_triage 2008-02-20 21:54:30 UTC
State Changed
From-To: feedback->closed

Fix Committed, Thanks!