summaryrefslogtreecommitdiff
path: root/sysutils/py-Glances
diff options
context:
space:
mode:
authorfox <fox@pkgsrc.org>2021-07-16 04:24:16 +0000
committerfox <fox@pkgsrc.org>2021-07-16 04:24:16 +0000
commit18acd83a617f526578a0bad0e1edb41193b604a2 (patch)
tree4c7bbb6b79f4bb684fa2f60dd14ec6bf462e69f9 /sysutils/py-Glances
parent412de63243afa83756f7b98b48f82c2899c73f4c (diff)
downloadpkgsrc-18acd83a617f526578a0bad0e1edb41193b604a2.tar.gz
sysutils/py-Glances: Update to 3.2.1
Changes since 3.1.7: =============== Version 3.2.1 =============== Bugs corrected: * Glances 3.2.0 and influxdb export - Missing network data bug #1893 Enhancement requests: * Security audit - B411 enhancement (Monkey patch XML RPC Lib) #1025 * Also search glances.conf file in /usr/share/doc/glances/glances.conf #1862 =============== Version 3.2.0 =============== This release is a major version (but minor number because the API did not change). It focus on *CPU consumption*. I use `Flame profiling https://github.com/nicolargo/glances/wiki/Glances-FlameGraph`_ and code optimization to *reduce CPU consumption from 20% to 50%* depending on your system. Enhancement and development requests: * Improve CPU consumption - Make the refresh rate configurable per plugin #1870 - Add caching for processing username and cmdline - Correct and improve refresh time method - Set refresh rate for global CPU percent - Set the dafault refresh rate of system stats to 60 seconds - Default refresh time for sensors is refresh rate * 2 - Improve history perf - Change main curses loop - Improve Docker client connection - Update Flame profiling * Get system sensors temperatures thresholds #1864 * Filter data exported from Docker plugin * Make the Docker API connection timeout configurable * Add --issue to Github issue template * Add release-note in the Makefile * Add some comments in cpu_percent * Add some comments to the processlist.py * Set minimal version for PSUtil to 5.3.0 * Add comment to default glances.conf file * Improve code quality #820 * Update WebUI for security vuln Bugs corrected: * Quit from help should return to main screen, not exit #1874 * AttributeError: 'NoneType' object has no attribute 'current' #1875 * Merge pull request #1873 from metayan/fix-history-add * Correct filter * Correct Flake8 issue in plugins * Pressing Q to get rid of irq not working #1792 * Spelling correction in docs #1886 * Starting an alias with a number causes a crash #1885 * Network interfaces not applying in web UI #1884 * Docker containers information missing with Docker 20.10.x #1878 * Get system sensors temperatures thresholds #1864 Contibutors for this version: * Nicolargo * Markus Pöschl * Clifford W. Hansen * Blake * Yan
Diffstat (limited to 'sysutils/py-Glances')
-rw-r--r--sysutils/py-Glances/Makefile5
-rw-r--r--sysutils/py-Glances/PLIST5
-rw-r--r--sysutils/py-Glances/distinfo11
-rw-r--r--sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py26
4 files changed, 39 insertions, 8 deletions
diff --git a/sysutils/py-Glances/Makefile b/sysutils/py-Glances/Makefile
index 519e3148d2f..862d7aac9f6 100644
--- a/sysutils/py-Glances/Makefile
+++ b/sysutils/py-Glances/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2021/05/04 22:18:17 fox Exp $
+# $NetBSD: Makefile,v 1.10 2021/07/16 04:24:16 fox Exp $
-DISTNAME= Glances-3.1.7
+DISTNAME= Glances-3.2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= sysutils python
MASTER_SITES= ${MASTER_SITE_PYPI:=G/Glances/}
@@ -14,6 +14,7 @@ DEPENDS+= ${PYPKGPREFIX}-psutil>=5.3.0:../../sysutils/py-psutil
DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
DEPENDS+= ${PYPKGPREFIX}-cursespanel-[0-9]*:../../devel/py-cursespanel
+DEPENDS+= ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
USE_LANGUAGES= # none
diff --git a/sysutils/py-Glances/PLIST b/sysutils/py-Glances/PLIST
index baefbc509f0..7a019689bdc 100644
--- a/sysutils/py-Glances/PLIST
+++ b/sysutils/py-Glances/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2021/05/04 22:18:17 fox Exp $
+@comment $NetBSD: PLIST,v 1.7 2021/07/16 04:24:16 fox Exp $
bin/glances-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -81,6 +81,9 @@ ${PYSITELIB}/glances/exports/glances_export.pyo
${PYSITELIB}/glances/exports/glances_graph.py
${PYSITELIB}/glances/exports/glances_graph.pyc
${PYSITELIB}/glances/exports/glances_graph.pyo
+${PYSITELIB}/glances/exports/glances_graphite.py
+${PYSITELIB}/glances/exports/glances_graphite.pyc
+${PYSITELIB}/glances/exports/glances_graphite.pyo
${PYSITELIB}/glances/exports/glances_influxdb.py
${PYSITELIB}/glances/exports/glances_influxdb.pyc
${PYSITELIB}/glances/exports/glances_influxdb.pyo
diff --git a/sysutils/py-Glances/distinfo b/sysutils/py-Glances/distinfo
index 0b845a72956..8b4188d56e7 100644
--- a/sysutils/py-Glances/distinfo
+++ b/sysutils/py-Glances/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2021/05/04 22:18:17 fox Exp $
+$NetBSD: distinfo,v 1.10 2021/07/16 04:24:16 fox Exp $
-SHA1 (Glances-3.1.7.tar.gz) = 1ce9bc61ecf49480c9a8342bab1454f3644e2fcd
-RMD160 (Glances-3.1.7.tar.gz) = 10792b2666d3dad2f60f09e7d9f131f39069b582
-SHA512 (Glances-3.1.7.tar.gz) = 22454d2fa29f95ec202c862300688b3d622b71a54ca3361811ad8d6123d890b21d3e13c3b3051c7d7afea3240cbadc36bbeccb77967bf965984d5f24da762138
-Size (Glances-3.1.7.tar.gz) = 6789093 bytes
+SHA1 (Glances-3.2.1.tar.gz) = d6b052f21729aee0c07baca89f0d14a28bf51739
+RMD160 (Glances-3.2.1.tar.gz) = 8d9d9ceeb172a67393cc4836464843fcf385ef2c
+SHA512 (Glances-3.2.1.tar.gz) = 33a879b7931e4b69cb8dfd6b437750e0f27765e6603fa9734eb5ff7a1ccf3793de956cd4310cdee0b0ddff1f43df7acacae2480cf8c6c75cf86ae0b28ff737dd
+Size (Glances-3.2.1.tar.gz) = 6828899 bytes
+SHA1 (patch-glances_plugins_glances__quicklook.py) = 349a469bd11ad5aaafb264d2689b52d7404b4d62
diff --git a/sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py b/sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py
new file mode 100644
index 00000000000..cdf87450bad
--- /dev/null
+++ b/sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py
@@ -0,0 +1,26 @@
+$NetBSD: patch-glances_plugins_glances__quicklook.py,v 1.1 2021/07/16 04:24:16 fox Exp $
+
+It seems cpu_hz_current and cpu_hz is not available in NetBSD, so add additional
+check to see if the key exists.
+--- glances/plugins/glances_quicklook.py.orig 2021-07-10 07:09:24.000000000 +0000
++++ glances/plugins/glances_quicklook.py
+@@ -82,8 +82,10 @@ class Plugin(GlancesPlugin):
+ # Get additional information
+ cpu_info = cpu_percent.get_info()
+ stats['cpu_name'] = cpu_info['cpu_name']
+- stats['cpu_hz_current'] = self._mhz_to_hz(cpu_info['cpu_hz_current']) if cpu_info['cpu_hz_current'] is not None else None
+- stats['cpu_hz'] = self._mhz_to_hz(cpu_info['cpu_hz']) if cpu_info['cpu_hz'] is not None else None
++ if 'cpu_hz_current' in cpu_info:
++ stats['cpu_hz_current'] = self._mhz_to_hz(cpu_info['cpu_hz_current']) if cpu_info['cpu_hz_current'] is not None else None
++ if 'cpu_hz' in cpu_info:
++ stats['cpu_hz'] = self._mhz_to_hz(cpu_info['cpu_hz']) if cpu_info['cpu_hz'] is not None else None
+
+ elif self.input_method == 'snmp':
+ # Not available
+@@ -193,4 +195,4 @@ class Plugin(GlancesPlugin):
+
+ def _mhz_to_hz(self, hz):
+ """Convert Mhz to Hz."""
+- return hz * 1000000.0
+\ No newline at end of file
++ return hz * 1000000.0