Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58193 - bwbar-1.2.2.ebuild (New package)
Summary: bwbar-1.2.2.ebuild (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.kernel.org/
Whiteboard:
Keywords: EBUILD
: 83105 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-24 08:11 UTC by Frank Benkstein
Modified: 2006-01-10 11:31 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bwbar-1.2.2.ebuild (bwbar-1.2.2.ebuild,423 bytes, text/plain)
2004-07-24 08:13 UTC, Frank Benkstein
Details

Note You need to log in before you can comment on or make changes to this bug.
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!