Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520822 - net-analyzer/nbwmon-0.3.2 - Ncurses bandwidth monitor
Summary: net-analyzer/nbwmon-0.3.2 - Ncurses bandwidth monitor
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Netmon project
URL: https://github.com/defer-/nbwmon
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2014-08-25 09:04 UTC by Ari Malinen
Modified: 2014-09-20 07:59 UTC (History)
1 user (show)

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


Attachments
nbwmon-0.3.2.ebuild (nbwmon-0.3.2.ebuild,383 bytes, text/plain)
2014-08-25 09:04 UTC, Ari Malinen
Details
nbwmon-0.3.2.ebuild (nbwmon-0.3.2-r1.ebuild,512 bytes, text/plain)
2014-08-29 12:50 UTC, Ari Malinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ari Malinen 2014-08-25 09:04:55 UTC
Created attachment 383554 [details]
nbwmon-0.3.2.ebuild

nbwmon is ncurses bandwidth monitor.

features:
* Print bandwidth graphs.
* Print current, average and maximum transfer speeds.
* Print total traffic.
* Scale to full window on startup and resize.
* Detect active network interface.
* Support for multiple units.
* Support for colors.

git:
https://github.com/defer-/nbwmon
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-25 14:45:06 UTC
Comment on attachment 383554 [details]
nbwmon-0.3.2.ebuild

>RESTRICT="mirror"

Why?

>DEPEND="sys-libs/ncurses"

RDEPEND="${DEPEND}"


Also, this needs something like:

src_prepare() {
    sed -i -e 's|-lncurses|$(PKG_CONFIG) --libs ncurses|'g Makefile || die
}

and an appropriate DEPEND="virtual/pkgconfig ..." in order to not hit bug #457530.
Comment 2 Ari Malinen 2014-08-29 12:50:55 UTC
Created attachment 383906 [details]
nbwmon-0.3.2.ebuild

Ok i tried to fix the ebuild.
Comment 3 Yixun Lan archtester gentoo-dev 2014-09-04 14:24:56 UTC
>EAPI="5"
>inherit eutils
you didn't use any function from eutils, why inherit it?

>KEYWORDS="~amd64"
probably it also works for ~x86? but just fine if you can't test.

>DEPEND="
>	virtual/pkgconfig
>	sys-libs/ncurses
>"
>RDEPEND="${DEPEND}"

em, put "virtual/pkgconfig" into ${RDEPEND}?

>src_prepare() {
>	sed -i -e 's|-lncurses|$(shell pkg-config --libs ncurses)|'g Makefile
>}
don't miss "|| die" while call external utils.

also it would be a good idea to explicitly list sys-apps/sed in DEPEND (even it is already included by @system).
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-04 19:16:41 UTC
0.3.2 is in the tree. Thanks for the report!
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-04 19:22:25 UTC
https://github.com/defer-/nbwmon/pull/7
Comment 6 Andrew Miller 2014-09-19 22:31:02 UTC
Comment #5 fixes this program on ppc.

Steps to reproduce:
1. git clone https://github.com/defer-/nbwmon.git
2. cd nbwmon
3. git checkout a7ae3a0
4. make
5. ./nbwmon -i eth0 (BROKEN ON PPC, WORKS ON AMD64)
6. rm ./nbwmon
7. git checkout master
8. make
9. ./nbwmon -i eth0 (WORKS ON BOTH PPC AND AMD64)

Please bump and add ~ppc to keywords.
Comment 7 Andrew Miller 2014-09-19 22:39:40 UTC
Just to clarify the above,

Please bump to version 0.4.3 which was released today, see https://github.com/defer-/nbwmon/releases/tag/0.4.3