debian/0000755000000000000000000000000012312543062007164 5ustar debian/watch0000644000000000000000000000011411745042101010206 0ustar # bwm-ng watchfile version=3 http://sf.net/bwmng/bwm-ng-([\d\.]*)\.tar\.gz debian/rules0000755000000000000000000000266111747155713010266 0ustar #!/usr/bin/make -f # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: configure dh_testdir CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-libstatgrab --with-ncurses --with-procnetdev --with-partitions build-arch: build build-indep: build build: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install prefix=$(CURDIR)/debian/bwm-ng/usr binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples # dh_install dh_installmenu dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/examples0000644000000000000000000000003711745042101010722 0ustar bwm-ng.conf-example bwm-ng.css debian/menu0000644000000000000000000000016311745042101010050 0ustar ?package(bwm-ng):needs="text" section="Applications/System/Monitoring"\ title="bwm-ng" command="/usr/bin/bwm-ng" debian/copyright0000644000000000000000000000211311747155670011133 0ustar This package was debianized by Damián Viano on Tue, 28 Feb 2006 11:10:10 -0300. It was downloaded from http://www.gropp.org/bwm-ng/bwm-ng-0.5.tar.gz Copyright Holder: Copyright (C) 2004-2007 Volker Gropp License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/docs0000644000000000000000000000000711745042101010031 0ustar README debian/source/0000755000000000000000000000000011747155215010476 5ustar debian/source/format0000644000000000000000000000001411747155215011704 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012060143763010617 5ustar debian/patches/01_not_a_string_literal.patch0000644000000000000000000000433612060143763016350 0ustar Description: Fix causes of "warning: format not a string literal and no format arguments" in src/output.c which were causing a strange message of 'cc1: error: unrecognized command line option "-Wno-long-double". Check return value of fgets in src/input/proc_diskstats.c which led to the same error as above. Author: James Westby --- bwm-ng-0.6.orig/src/output.c +++ bwm-ng-0.6/src/output.c @@ -223,8 +223,8 @@ int print_header(int option) { fprintf(tmp_out_file,"bwm-ng stats\n\n\n"); } fprintf(tmp_out_file,"
bwm-ng bwm-ng v" VERSION " (refresh %is); input: ",html_refresh); - fprintf(tmp_out_file,input2str()); - fprintf(tmp_out_file,show_all_if2str()); + fprintf(tmp_out_file,"%s", input2str()); + fprintf(tmp_out_file,"%s", show_all_if2str()); fprintf(tmp_out_file,"
"); fprintf(tmp_out_file,""); break; @@ -234,7 +234,7 @@ int print_header(int option) { if (output_method==PLAIN_OUT && ansi_output) printf("\033[1;2H"); printf("bwm-ng v" VERSION " (delay %2.3fs); ",(float)delay/1000); if (output_method==PLAIN_OUT) printf("press 'ctrl-c' to end this%s",(ansi_output ? "\033[2;2H" : "")); else printf("input: "); - printf(input2str()); + printf("%s", input2str()); printf("%s\n",show_all_if2str()); if (output_method==PLAIN_OUT) { if (ansi_output) --- bwm-ng-0.6.orig/src/input/proc_diskstats.c +++ bwm-ng-0.6/src/input/proc_diskstats.c @@ -85,8 +85,14 @@ void get_disk_stats_proc (char verbose) diskstats_works = 1; } else { /* skip first two lines in /proc/partitions */ - fgets(buffer,MAX_LINE_BUFFER,f); - fgets(buffer,MAX_LINE_BUFFER,f); + if (fgets(buffer,MAX_LINE_BUFFER,f) && + fgets(buffer,MAX_LINE_BUFFER,f)) { + /* read correctly */ + ; + } else { + /* error or EOF while reading file, either way we can't continue */ + deinit(1, "reading %s failed, or file was too short: %s\n", PROC_PARTITIONS_FILE, strerror(errno)); + } } } debian/patches/series0000644000000000000000000000003612060143763012033 0ustar 01_not_a_string_literal.patch debian/compat0000644000000000000000000000000211747155214010373 0ustar 9 debian/control0000644000000000000000000000163512060143763010600 0ustar Source: bwm-ng Section: net Priority: optional Maintainer: Ubuntu MOTU Developers XSBC-Original-Maintainer: Damián Viano Build-Depends: debhelper (>= 9), libstatgrab-dev, libncurses5-dev Standards-Version: 3.9.3 Homepage: http://www.gropp.org/?id=projects&sub=bwm-ng Package: bwm-ng Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: small and simple console-based bandwidth monitor Bandwidth Monitor NG is a small and simple console-based live bandwidth monitor. . Short list of features: * supports /proc/net/dev, netstat, getifaddr, sysctl, kstat and libstatgrab * unlimited number of interfaces supported * interfaces are added or removed dynamically from list * white-/blacklist of interfaces * output of KB/s, Kb/s, packets, errors, average, max and total sum * output in curses, plain console, CSV or HTML * configfile debian/changelog0000644000000000000000000000664012312543062011044 0ustar bwm-ng (0.6-3.1ubuntu2) trusty; urgency=medium * Rebuild against libstatgrab9. -- Colin Watson Thu, 20 Mar 2014 10:42:58 +0000 bwm-ng (0.6-3.1ubuntu1) raring; urgency=low * Merge from Debian unstable (LP: #1087292). Remaining changes: - Fix causes of "warning: format not a string literal and no format arguments" in src/output.c which were causing a strange message of 'cc1: error: unrecognized command line option "-Wno-long-double"' - Check return value of fgets in src/input/proc_diskstats.c which led to the same error as above. -- Vibhav Pant Thu, 06 Dec 2012 20:14:28 +0530 bwm-ng (0.6-3.1) unstable; urgency=low * Non-maintainer upload; ACKed by the maintainer. * Drop deprecated dpatch depends and upgrade to packaging format "3.0 quilt" (Closes: #670802). * Update to Standards-Version to 3.9.3 and debhelper to 9. * Add build-arch and build-indep targets; use dh_prep in rules file. * Fix copyright-without-copyright-notice (Lintian). * Fix debian-rules-ignores-make-clean-error (Lintian). * Fix no-homepage-field (Lintian). -- Jari Aalto Sun, 06 May 2012 16:09:08 +0300 bwm-ng (0.6-3ubuntu1) jaunty; urgency=low * Fix causes of "warning: format not a string literal and no format arguments" in src/output.c which were causing a strange message of 'cc1: error: unrecognized command line option "-Wno-long-double"' * Check return value of fgets in src/input/proc_diskstats.c which led to the same error as above. -- James Westby Sat, 22 Nov 2008 02:19:56 +0000 bwm-ng (0.6-3) unstable; urgency=low * Update to current menu policy (Closes: #496095) - Thanks to Bill Allombert -- Damián Viano Fri, 29 Aug 2008 18:56:18 -0300 bwm-ng (0.6-2) unstable; urgency=low * Improve cleanup after build -- Damián Viano Thu, 19 Apr 2007 22:50:14 -0300 bwm-ng (0.6-1) unstable; urgency=low * New upstream release. * Change maintainer mail address. * Update standards versions to 3.7.2, no changes needed. * Remove patches applied upstream: - 01man_typos.dpatch - 02bwm-ng.conf-example_typo.dpatch - 03use_bwm-ng.conf_not_.con.dpatch -- Damián Viano Thu, 19 Apr 2007 22:09:10 -0300 bwm-ng (0.5-4) unstable; urgency=medium * Added patches/03use_bwm-ng.conf_not_.con.dpatch patch to correctly use ~/.bwm-ng.conf instead of ~/.bwm-ng.con. Thanks to Rafal Krypa for the report and the initial patch (Closes: #403099) * Added patches/02bwm-ng.conf-example_typo.dpatch to fix small typo, hinted by upstream. -- Damián Viano Thu, 14 Dec 2006 15:33:59 -0300 bwm-ng (0.5-3) unstable; urgency=low * Added missing build-dependency on ncurses allowing curses output mode. (Closes: #362082) * Added further corrections to patches/01man_typos.dpatch. Thanks A. Costa for his thorough eye. -- Damián Viano Sun, 16 Apr 2006 10:44:14 -0300 bwm-ng (0.5-2) unstable; urgency=low * Applied patches/01man_typos.dpatch fixing manpage typos (Closes: #362081) * Compiling missing ncurses support (Closes: #362082) -- Damián Viano Fri, 14 Apr 2006 20:00:59 -0300 bwm-ng (0.5-1) unstable; urgency=low * Initial release. (Closes: bug#354896) -- Damián Viano Tue, 28 Feb 2006 21:10:10 -0300
InterfaceRxTxTotal