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 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.
Created attachment 383906 [details] nbwmon-0.3.2.ebuild Ok i tried to fix the ebuild.
>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).
0.3.2 is in the tree. Thanks for the report!
https://github.com/defer-/nbwmon/pull/7
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.
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