diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2022-08-19 19:09:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-08-20 10:06:43 +0700 |
commit | e9c848ad6adf47e77be2f6fef83069994e69235a (patch) | |
tree | 57f1593bd24f5c2116ab5e9060ab1a30f05dc4e5 /network/speedometer | |
parent | a6e26e1025cff8b480b6366771b8e08074359b10 (diff) |
network/speedometer: Remove changelog & update-to-python3.patch.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/speedometer')
-rw-r--r-- | network/speedometer/changelog | 153 | ||||
-rw-r--r-- | network/speedometer/update-to-python3.patch | 174 |
2 files changed, 0 insertions, 327 deletions
diff --git a/network/speedometer/changelog b/network/speedometer/changelog deleted file mode 100644 index 3ab3448f8895..000000000000 --- a/network/speedometer/changelog +++ /dev/null @@ -1,153 +0,0 @@ -speedometer (2.8-3) unstable; urgency=medium - - * New maintainer. (Closes: #920070) - * Switch to Python 3, consequently: - - debian/control: updated dependencies to python3. - - debian/patches/update-to-python3.patch: added to provide - python3 support. (Closes: #943229) - * Using new DH level format. Consequently: - - debian/compat: removed. - - debian/control: Changed from 'debhelper' to 'debhelper-compat' in - Build-Depends field and bumped level to 12. - * debian/control: - - Added the field Rules-Requires-Root: no - - Standards-Version: bumped to 4.4.1 (no changes needed) - - Switch VCS URLs to salsa.debian.org - * debian/copyright: - - Added safe uri (https) to Format. - - Updated years and rights. - * debian/rules: - - Added pybuild support. - - Updated to reduced format. - * debian/salsa-ci.yml: added to provide CI tests for Salsa. - * debian/upstream/metadata: created. - * debian/upstream.changelog: removed, upstream no longer uses hg repo. - * debian/watch: - - migrated to version 4. - - updated to new repository in Github an using new variables. - - - -- Giovani Augusto Ferreira <giovani@debian.org> Tue, 17 Dec 2019 10:43:07 -0300 - -speedometer (2.8-2) unstable; urgency=medium - - * debian/compat - - Updae to 9. - * debian/control - - (Build-Depends): Update to debhelper 9. - - (Homepage): Move field. - - (Standards-Version): Update to 3.9.8. - - (Vcs-*): Update to anonscm.debian.org. - * debian/copyright - - Update URLs. - * debian/pod2man.mk - - Make build reproducible (Closes: 782221). - Patch thanks to Reiner Herrmann <reiner@reiner-h.de>. - - -- Jari Aalto <jari.aalto@cante.net> Wed, 19 Oct 2016 18:25:25 +0300 - -speedometer (2.8-1) unstable; urgency=low - - [Jari Aalto] - * New upstream release - - Linear scale (Closes: #415397). - * debian/copyright - - (Format): Update URL. - * debian/rules - - (get-changelog): Add more commentary. - * debian/upstream.changelog - - Update. - - [tony mancill] - * Add python-setuptools to Build-Depends - - -- Jari Aalto <jari.aalto@cante.net> Fri, 09 Dec 2011 14:30:46 +0200 - -speedometer (2.7-1) unstable; urgency=low - - * New upstream release - - Fix Python 2.5.4 DeprecationWarning: The popen2 module is deprecated - (Closes: #583573). - * debian/compat - - Update to 8. - * debian/control - - (Build-Depends): Update to debhelper 8. - - (Standards-Version): Update to 3.9.2. - * debian/copyright - - Update to DEP5. - - (Files: *): Correct license to LGPL 2.1. - * debian/*.mk - - Minor updates. - * debian/speedometer.1.pod - - (top level): Proper starting comment. - - (DESCRIPTION): Improve documentation to note that - traffic must be generated (Closes: #583576). - - (EXAMPLES): Adjust indentation. - - (SEE ALSO): Add more programs. - - (AUTHORS): Adjust wording. - * debian/rules - - (PKGDIR): New. - - (get-changelog): New. - - Cleanup rules handled by dh(1). - - -- Jari Aalto <jari.aalto@cante.net> Thu, 21 Apr 2011 19:34:18 +0300 - -speedometer (2.6-3) unstable; urgency=low - - * debian/control - - (Depends): Update to python-urwid (>= 0.9.9.1), because (0.9.9) is - not compatible (Closes: #569070). Update to debhelper 7.1 due to - oveerrides in debian/rules - - (Standards-Version): update to 3.8.4. - * debian/rules: - - (binary-indep): Remove unused commands. - - (install): remove target. - - (override_dh_auto_install): New target. - - (.PHONY): cleanup targets. - - -- Jari Aalto <jari.aalto@cante.net> Mon, 22 Feb 2010 16:18:59 +0200 - -speedometer (2.6-2) unstable; urgency=low - - * Move to packaging format: 3.0 (quilt). - * debian/clean - - Move content from 'rules' for dh(1) to use. - * debian/compat - - Update to 7. - * debian/control - - (Build-Depends): update to debhelper 7. - - (Description): convert examples to bullets. - - (Depends): add ${misc:Depends} for debhelper, - add version to dependency python-urwid (>= 0.9.1). - - (Standards-Version): update to 3.8.3 - * debian/copyright - - (GPL): Use FSF URL (FSF recommendation). - * debian/rules - - Remove rules obsoleted by dh(1). - * debian/source/format - - New file. - * debian/speedometer.1 - - Delete file generated from *.pod source (see debian/rules::man). - * debian/speedometer.manpages - - Move content from 'rules' for dh(1) to use. - - -- Jari Aalto <jari.aalto@cante.net> Sat, 19 Dec 2009 13:52:03 +0200 - -speedometer (2.6-1) unstable; urgency=low - - * New upstream version. (Closes: #473420). - * debian/changelog - - Adjust indentation and layout. - - Change time to ISO 8601 notation. - * debian/control - - (Vcs-*): New fields. - - (Homepage): move to separate field. - - (Standards-Version): Update to 3.8.0. - - -- Jari Aalto <jari.aalto@cante.net> Sat, 18 Oct 2008 01:07:47 +0300 - -speedometer (2.4-1) unstable; urgency=low - - * Initial release (Closes: #404671) - - -- Jari Aalto <jari.aalto@cante.net> Sat, 13 Jan 2007 20:34:25 +0200 diff --git a/network/speedometer/update-to-python3.patch b/network/speedometer/update-to-python3.patch deleted file mode 100644 index dfce959f3b42..000000000000 --- a/network/speedometer/update-to-python3.patch +++ /dev/null @@ -1,174 +0,0 @@ -Description: Update upstream source to Python 3. - Based on fixes at https://github.com/kenduest/speedometer/ -Author: Giovani Augusto Ferreira <giovani@debian.org> -Last-Update: 2019-12-08 - -Index: speedometer/speedometer.py -=================================================================== ---- speedometer.orig/speedometer.py -+++ speedometer/speedometer.py -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/python3 - - # speedometer.py - # Copyright (C) 2001-2011 Ian Ward -@@ -21,6 +21,8 @@ import os - import string - import math - import re -+import psutil -+import six - - __usage__ = """Usage: speedometer [options] tap [[-c] tap]... - Monitor network traffic or speed/progress of a file transfer. At least one -@@ -76,6 +78,10 @@ units_per_second = 'bytes' - chart_minimum = 2**5 - chart_maximum = 2**32 - -+if six.PY3: -+ def long(*args,**kwargs): -+ return int(*args,**kwargs) -+ - graph_scale = None - def update_scale(): - """ -@@ -400,7 +406,8 @@ class SpeedGraph: - self.log = [] - self.bar = [] - -- def get_data(self, (maxcol,maxrow)): -+ def get_data(self, max_col_row): -+ maxcol, maxrow = max_col_row - bar = self.bar[-maxcol:] - if len(bar) < maxcol: - bar = [[0]]*(maxcol-len(bar)) + bar -@@ -409,8 +416,8 @@ class SpeedGraph: - def selectable(self): - return False - -- def render(self, (maxcol, maxrow), focus=False): -- -+ def render(self, max_col_row, focus=False): -+ maxcol, maxrow = max_col_row - left = max(0, len(self.log)-maxcol) - pad = maxcol-(len(self.log)-left) - -@@ -445,8 +452,8 @@ class SpeedGraph: - for i in range(left+max(0, ldist-pad),len(l)-rdist+1): - li = l[i] - if li == 0: continue -- if i and l[i-1]>=li: continue -- if l[i+1]>li: continue -+ if i and l[i-1] != None and l[i-1]>=li: continue -+ if li is None or l[i+1]>li: continue - highs.append((li, -i)) - - highs.sort() -@@ -471,7 +478,7 @@ class SpeedGraph: - - - def speed_scale(s): -- if s <= 0: return 0 -+ if s is None or s <= 0: return 0 - if logarithmic_scale: - s = math.log(s, 2) - s = min(graph_range(), max(0, s-graph_min())) -@@ -498,7 +505,7 @@ def readable_speed(speed): - if speed == None or speed < 0: speed = 0 - - units = "B/s ", "KiB/s", "MiB/s", "GiB/s", "TiB/s" -- step = 1L -+ step = long(1) - - for u in units: - -@@ -511,7 +518,7 @@ def readable_speed(speed): - if speed/step < 1024: - return "%4d " %(speed/step) + u - -- step = step * 1024L -+ step = step * long(1024) - - return "%4d " % (speed/(step/1024)) + units[-1] - -@@ -524,7 +531,7 @@ def readable_speed_bits(speed): - - speed = speed * 8 - units = "b/s ", "Kib/s", "Mib/s", "Gib/s", "Tib/s" -- step = 1L -+ step = long(1) - - for u in units: - -@@ -537,7 +544,7 @@ def readable_speed_bits(speed): - if speed/step < 1024: - return "%4d " %(speed/step) + u - -- step = step * 1024L -+ step = step * long(1024) - - return "%4d " % (speed/(step/1024)) + units[-1] - -@@ -607,18 +614,12 @@ def network_feed(device,rxtx): - r = re.compile(r"^\s*" + re.escape(device) + r":(.*)$", re.MULTILINE) - - def networkfn(devre=r,rxtx=rxtx): -- f = open('/proc/net/dev') -- dev_lines = f.read() -- f.close() -- match = devre.search(dev_lines) -- if not match: -- return None -- -- parts = match.group(1).split() - if rxtx == 'RX': -- return long(parts[0]) -+ val=psutil.net_io_counters(pernic=True)[device].bytes_recv - else: -- return long(parts[8]) -+ val=psutil.net_io_counters(pernic=True)[device].bytes_sent -+ -+ return long(val) - - return networkfn - -@@ -728,7 +729,7 @@ def time_as_units(seconds): - # (multiplicative factor, suffix) - units = (1,"s"), (60,"m"), (60,"h"), (24,"d"), (7,"w"), (52,"y") - -- scale = 1L -+ scale = long(1) - topunit = -1 - # find the top unit to use - for mul, suf in units: -@@ -757,7 +758,7 @@ def readable_time(seconds, columns=None) - for value, suf in time_as_units(seconds): - new_out = out - if out: new_out = new_out + ' ' -- new_out = new_out + `value` + suf -+ new_out = new_out + value + suf - if columns and len(new_out) > columns: break - out = new_out - -@@ -1091,6 +1092,6 @@ def wait_all(cols): - if __name__ == "__main__": - try: - console() -- except KeyboardInterrupt, err: -+ except KeyboardInterrupt as err: - pass - -Index: speedometer/setup.py -=================================================================== ---- speedometer.orig/setup.py -+++ speedometer/setup.py -@@ -35,7 +35,7 @@ setup_d = { - 'scripts': ['speedometer.py'], - 'entry_points': { - 'console_scripts': ['speedometer = speedometer:console'],}, -- 'install_requires': ['urwid >= 0.9.9.1'], -+ 'install_requires': ['urwid >= 0.9.9.1', 'psutil', 'six'], - 'license':"LGPL", - 'keywords':"network bandwidth monitor system speed download file progress console", - 'platforms':"Linux", |