Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 58193

Summary: bwbar-1.2.2.ebuild (New package)
Product: Gentoo Linux Reporter: Frank Benkstein <benkstein>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: enhancement CC: benkstein, duncan, jva-misc, netmon
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: All   
URL: http://www.kernel.org/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: bwbar-1.2.2.ebuild

Description Frank Benkstein 2004-07-24 08:11:25 UTC
Hi,

Please find attached bwbar-1.2.2.ebuild.

bwbar is a small program for generating png images representing
current outgoing or incoming network traffic on an interface.
You may most probably already seen it in action at http://www.kernel.org

I suggest net-misc/bwbar Also, this ebuild depends on libpng which should
be installed on most systems.

Have good time
Frank Benkstein.
Comment 1 Frank Benkstein 2004-07-24 08:13:01 UTC
Created attachment 36062 [details]
bwbar-1.2.2.ebuild
Comment 2 Frank Benkstein 2004-07-24 09:07:42 UTC
I had some trouble before this work so maybe this helps somebody else:

Put this in /etc/conf.d/net

<code>
postup() {
    case "$1" in
        eth0)
            ebegin "    Starting bwbar for $1"
            start-stop-daemon --start --quiet --oknodo --exec /usr/bin/bwbar --pidfile /var/run/bwbar-"$1"-in.pid \
                --background --make-pidfile\
            --  --input --interval 2 --height 10 --kbps \
                --text-file /var/www/localhost/htdocs/ubar-$1-in.txt \
                --png-file /var/www/localshost/htdocs/ubar-$1-in.png \
                $1 100
            start-stop-daemon --start --quiet --oknodo --exec /usr/bin/bwbar --pidfile /var/run/bwbar-"$1"-out.pid \
                --background --make-pidfile\
            --  --output --interval 2 --height 10 --kbps \
                --text-file /var/www/localhost/htdocs/ubar-$1-out.txt \
                --png-file /var/www/localhost/htdocs/ubar-$1-out.png \
                $1 100
            eend $?
            ;;
    esac
}

predown() {
    case "$1" in
        eth0)
            ebegin "    Stopping bwbar for $1"
            start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/bwbar-"$1"-in.pid
            start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/bwbar-"$1"-out.pid
            eend $?
            ;;
    esac
}                                                                        
</code>
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2005-02-23 13:53:18 UTC
*** Bug 83105 has been marked as a duplicate of this bug. ***
Comment 4 Marcelo Goes (RETIRED) gentoo-dev 2006-01-10 11:31:22 UTC
In cvs. Thanks for reporting!