pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-Glances: update for pkgsrc



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun May 19 17:40:16 2024 +0200
Changeset:	f5fbf1df69f28262b99b23d22b528c2f8e2b270b

Modified Files:
	Makefile
Added Files:
	py-Glances/ALTERNATIVES
	py-Glances/DESCR
	py-Glances/Makefile
	py-Glances/PLIST
	py-Glances/TODO
	py-Glances/distinfo
	py-Glances/log
	py-Glances/patches/patch-glances_plugins_cpu_____init____.py
	py-Glances/patches/patch-glances_plugins_quicklook_____init____.py

Log Message:
py-Glances: update for pkgsrc

Does not start because of problems with 'cpu' symbols

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f5fbf1df69f28262b99b23d22b528c2f8e2b270b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |   2 +
 py-Glances/ALTERNATIVES                            |   1 +
 py-Glances/DESCR                                   |   9 +
 py-Glances/Makefile                                |  46 +++
 py-Glances/PLIST                                   | 381 +++++++++++++++++++++
 py-Glances/TODO                                    |   2 +
 py-Glances/distinfo                                |   7 +
 py-Glances/log                                     | 166 +++++++++
 .../patch-glances_plugins_cpu_____init____.py      |  26 ++
 ...patch-glances_plugins_quicklook_____init____.py |  24 ++
 10 files changed, 664 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 11a51a9a0a..0a3860e353 100644
--- a/Makefile
+++ b/Makefile
@@ -3197,6 +3197,7 @@ SUBDIR+=	py-EditObj2
 SUBDIR+=	py-Fnorb
 SUBDIR+=	py-Fnorb-docs
 SUBDIR+=	py-Genetic
+SUBDIR+=	py-Glances
 SUBDIR+=	py-HeapDict
 SUBDIR+=	py-IOSXR
 SUBDIR+=	py-Kallithea
@@ -3964,6 +3965,7 @@ SUBDIR+=	py-mathics-scanner
 SUBDIR+=	py-mathjspy
 SUBDIR+=	py-mathopt
 SUBDIR+=	py-mathpad
+SUBDIR+=	py-matplotlib
 SUBDIR+=	py-matplottheme
 SUBDIR+=	py-matrix-angular-sdk
 SUBDIR+=	py-mave
diff --git a/py-Glances/ALTERNATIVES b/py-Glances/ALTERNATIVES
new file mode 100644
index 0000000000..d2042dfb8f
--- /dev/null
+++ b/py-Glances/ALTERNATIVES
@@ -0,0 +1 @@
+bin/glances @PREFIX@/bin/glances-@PYVERSSUFFIX@
diff --git a/py-Glances/DESCR b/py-Glances/DESCR
new file mode 100644
index 0000000000..0f70c21959
--- /dev/null
+++ b/py-Glances/DESCR
@@ -0,0 +1,9 @@
+glances is a cross-platform curses-based monitoring tool which aims to
+present a maximum of information in a minimum of space, ideally to fit
+in a classical 80x24 terminal or higher to have additional information.
+It can adapt dynamically the displayed information depending on the
+terminal size. It can also work in client/server mode. Remote
+monitoring could be done via terminal or web interface.
+
+glances is written in Python and uses the psutil library to get
+information from your system.
diff --git a/py-Glances/Makefile b/py-Glances/Makefile
new file mode 100644
index 0000000000..5177d282ef
--- /dev/null
+++ b/py-Glances/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.26 2024/04/05 10:42:28 wiz Exp $
+
+DISTNAME=	glances-4.0.5
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/g/G/}
+CATEGORIES=	sysutils python
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/glances/}
+
+MAINTAINER=	fox%NetBSD.org@localhost
+HOMEPAGE=	https://nicolargo.github.io/glances/
+COMMENT=	Cross-platform curses-based monitoring tool
+LICENSE=	gnu-lgpl-v3
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
+TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
+DEPENDS+=	${PYPKGPREFIX}-psutil>=5.6.7:../../sysutils/py-psutil
+DEPENDS+=	${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
+DEPENDS+=	${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+DEPENDS+=	${PYPKGPREFIX}-ujson>=5.4.0:../../textproc/py-ujson
+
+USE_LANGUAGES=	# none
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27
+WHEEL_NAME=	Glances-${PKGVERSION_NOREV}
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-configure
+SUBST_MESSAGE.prefix=	Set correct prefix in setup.py
+SUBST_FILES.prefix=	setup.py
+SUBST_SED.prefix=	-e 's,share/man,${PKGMANDIR},'
+
+post-extract:
+	# Removes the nodejs component which is not required.
+	${RM} -fR ${WRKSRC}/glances/outputs/static
+
+post-install:
+	# remove pycache below pycache
+	${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/glances/plugins/__pycache__/__pycache__/*
+	${RMDIR} ${DESTDIR}${PREFIX}/${PYSITELIB}/glances/plugins/__pycache__/__pycache__/
+	cd ${DESTDIR}${PREFIX} && \
+	${MV} bin/glances bin/glances-${PYVERSSUFFIX} && \
+	${MV} ${PKGMANDIR}/man1/glances.1 ${PKGMANDIR}/man1/glances-${PYVERSSUFFIX}.1 && \
+	${MV} share/doc/glances share/doc/glances-${PYVERSSUFFIX}
+
+.include "../../lang/python/batteries-included.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-Glances/PLIST b/py-Glances/PLIST
new file mode 100644
index 0000000000..8235f284a0
--- /dev/null
+++ b/py-Glances/PLIST
@@ -0,0 +1,381 @@
+@comment $NetBSD$
+bin/glances-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS
+${PYSITELIB}/${WHEEL_INFODIR}/COPYING
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/glances/__init__.py
+${PYSITELIB}/glances/__init__.pyc
+${PYSITELIB}/glances/__init__.pyo
+${PYSITELIB}/glances/__main__.py
+${PYSITELIB}/glances/__main__.pyc
+${PYSITELIB}/glances/__main__.pyo
+${PYSITELIB}/glances/actions.py
+${PYSITELIB}/glances/actions.pyc
+${PYSITELIB}/glances/actions.pyo
+${PYSITELIB}/glances/amps/__init__.py
+${PYSITELIB}/glances/amps/__init__.pyc
+${PYSITELIB}/glances/amps/__init__.pyo
+${PYSITELIB}/glances/amps/amp.py
+${PYSITELIB}/glances/amps/amp.pyc
+${PYSITELIB}/glances/amps/amp.pyo
+${PYSITELIB}/glances/amps/default/__init__.py
+${PYSITELIB}/glances/amps/default/__init__.pyc
+${PYSITELIB}/glances/amps/default/__init__.pyo
+${PYSITELIB}/glances/amps/nginx/__init__.py
+${PYSITELIB}/glances/amps/nginx/__init__.pyc
+${PYSITELIB}/glances/amps/nginx/__init__.pyo
+${PYSITELIB}/glances/amps/systemd/__init__.py
+${PYSITELIB}/glances/amps/systemd/__init__.pyc
+${PYSITELIB}/glances/amps/systemd/__init__.pyo
+${PYSITELIB}/glances/amps/systemv/__init__.py
+${PYSITELIB}/glances/amps/systemv/__init__.pyc
+${PYSITELIB}/glances/amps/systemv/__init__.pyo
+${PYSITELIB}/glances/amps_list.py
+${PYSITELIB}/glances/amps_list.pyc
+${PYSITELIB}/glances/amps_list.pyo
+${PYSITELIB}/glances/attribute.py
+${PYSITELIB}/glances/attribute.pyc
+${PYSITELIB}/glances/attribute.pyo
+${PYSITELIB}/glances/autodiscover.py
+${PYSITELIB}/glances/autodiscover.pyc
+${PYSITELIB}/glances/autodiscover.pyo
+${PYSITELIB}/glances/client.py
+${PYSITELIB}/glances/client.pyc
+${PYSITELIB}/glances/client.pyo
+${PYSITELIB}/glances/client_browser.py
+${PYSITELIB}/glances/client_browser.pyc
+${PYSITELIB}/glances/client_browser.pyo
+${PYSITELIB}/glances/config.py
+${PYSITELIB}/glances/config.pyc
+${PYSITELIB}/glances/config.pyo
+${PYSITELIB}/glances/cpu_percent.py
+${PYSITELIB}/glances/cpu_percent.pyc
+${PYSITELIB}/glances/cpu_percent.pyo
+${PYSITELIB}/glances/event.py
+${PYSITELIB}/glances/event.pyc
+${PYSITELIB}/glances/event.pyo
+${PYSITELIB}/glances/events_list.py
+${PYSITELIB}/glances/events_list.pyc
+${PYSITELIB}/glances/events_list.pyo
+${PYSITELIB}/glances/exports/__init__.py
+${PYSITELIB}/glances/exports/__init__.pyc
+${PYSITELIB}/glances/exports/__init__.pyo
+${PYSITELIB}/glances/exports/export.py
+${PYSITELIB}/glances/exports/export.pyc
+${PYSITELIB}/glances/exports/export.pyo
+${PYSITELIB}/glances/exports/glances_cassandra/__init__.py
+${PYSITELIB}/glances/exports/glances_cassandra/__init__.pyc
+${PYSITELIB}/glances/exports/glances_cassandra/__init__.pyo
+${PYSITELIB}/glances/exports/glances_couchdb/__init__.py
+${PYSITELIB}/glances/exports/glances_couchdb/__init__.pyc
+${PYSITELIB}/glances/exports/glances_couchdb/__init__.pyo
+${PYSITELIB}/glances/exports/glances_csv/__init__.py
+${PYSITELIB}/glances/exports/glances_csv/__init__.pyc
+${PYSITELIB}/glances/exports/glances_csv/__init__.pyo
+${PYSITELIB}/glances/exports/glances_elasticsearch/__init__.py
+${PYSITELIB}/glances/exports/glances_elasticsearch/__init__.pyc
+${PYSITELIB}/glances/exports/glances_elasticsearch/__init__.pyo
+${PYSITELIB}/glances/exports/glances_graph/__init__.py
+${PYSITELIB}/glances/exports/glances_graph/__init__.pyc
+${PYSITELIB}/glances/exports/glances_graph/__init__.pyo
+${PYSITELIB}/glances/exports/glances_graphite/__init__.py
+${PYSITELIB}/glances/exports/glances_graphite/__init__.pyc
+${PYSITELIB}/glances/exports/glances_graphite/__init__.pyo
+${PYSITELIB}/glances/exports/glances_influxdb/__init__.py
+${PYSITELIB}/glances/exports/glances_influxdb/__init__.pyc
+${PYSITELIB}/glances/exports/glances_influxdb/__init__.pyo
+${PYSITELIB}/glances/exports/glances_influxdb2/__init__.py
+${PYSITELIB}/glances/exports/glances_influxdb2/__init__.pyc
+${PYSITELIB}/glances/exports/glances_influxdb2/__init__.pyo
+${PYSITELIB}/glances/exports/glances_json/__init__.py
+${PYSITELIB}/glances/exports/glances_json/__init__.pyc
+${PYSITELIB}/glances/exports/glances_json/__init__.pyo
+${PYSITELIB}/glances/exports/glances_kafka/__init__.py
+${PYSITELIB}/glances/exports/glances_kafka/__init__.pyc
+${PYSITELIB}/glances/exports/glances_kafka/__init__.pyo
+${PYSITELIB}/glances/exports/glances_mongodb/__init__.py
+${PYSITELIB}/glances/exports/glances_mongodb/__init__.pyc
+${PYSITELIB}/glances/exports/glances_mongodb/__init__.pyo
+${PYSITELIB}/glances/exports/glances_mqtt/__init__.py
+${PYSITELIB}/glances/exports/glances_mqtt/__init__.pyc
+${PYSITELIB}/glances/exports/glances_mqtt/__init__.pyo
+${PYSITELIB}/glances/exports/glances_opentsdb/__init__.py
+${PYSITELIB}/glances/exports/glances_opentsdb/__init__.pyc
+${PYSITELIB}/glances/exports/glances_opentsdb/__init__.pyo
+${PYSITELIB}/glances/exports/glances_prometheus/__init__.py
+${PYSITELIB}/glances/exports/glances_prometheus/__init__.pyc
+${PYSITELIB}/glances/exports/glances_prometheus/__init__.pyo
+${PYSITELIB}/glances/exports/glances_rabbitmq/__init__.py
+${PYSITELIB}/glances/exports/glances_rabbitmq/__init__.pyc
+${PYSITELIB}/glances/exports/glances_rabbitmq/__init__.pyo
+${PYSITELIB}/glances/exports/glances_restful/__init__.py
+${PYSITELIB}/glances/exports/glances_restful/__init__.pyc
+${PYSITELIB}/glances/exports/glances_restful/__init__.pyo
+${PYSITELIB}/glances/exports/glances_riemann/__init__.py
+${PYSITELIB}/glances/exports/glances_riemann/__init__.pyc
+${PYSITELIB}/glances/exports/glances_riemann/__init__.pyo
+${PYSITELIB}/glances/exports/glances_statsd/__init__.py
+${PYSITELIB}/glances/exports/glances_statsd/__init__.pyc
+${PYSITELIB}/glances/exports/glances_statsd/__init__.pyo
+${PYSITELIB}/glances/exports/glances_zeromq/__init__.py
+${PYSITELIB}/glances/exports/glances_zeromq/__init__.pyc
+${PYSITELIB}/glances/exports/glances_zeromq/__init__.pyo
+${PYSITELIB}/glances/filter.py
+${PYSITELIB}/glances/filter.pyc
+${PYSITELIB}/glances/filter.pyo
+${PYSITELIB}/glances/folder_list.py
+${PYSITELIB}/glances/folder_list.pyc
+${PYSITELIB}/glances/folder_list.pyo
+${PYSITELIB}/glances/globals.py
+${PYSITELIB}/glances/globals.pyc
+${PYSITELIB}/glances/globals.pyo
+${PYSITELIB}/glances/history.py
+${PYSITELIB}/glances/history.pyc
+${PYSITELIB}/glances/history.pyo
+${PYSITELIB}/glances/logger.py
+${PYSITELIB}/glances/logger.pyc
+${PYSITELIB}/glances/logger.pyo
+${PYSITELIB}/glances/main.py
+${PYSITELIB}/glances/main.pyc
+${PYSITELIB}/glances/main.pyo
+${PYSITELIB}/glances/outdated.py
+${PYSITELIB}/glances/outdated.pyc
+${PYSITELIB}/glances/outdated.pyo
+${PYSITELIB}/glances/outputs/__init__.py
+${PYSITELIB}/glances/outputs/__init__.pyc
+${PYSITELIB}/glances/outputs/__init__.pyo
+${PYSITELIB}/glances/outputs/glances_bars.py
+${PYSITELIB}/glances/outputs/glances_bars.pyc
+${PYSITELIB}/glances/outputs/glances_bars.pyo
+${PYSITELIB}/glances/outputs/glances_curses.py
+${PYSITELIB}/glances/outputs/glances_curses.pyc
+${PYSITELIB}/glances/outputs/glances_curses.pyo
+${PYSITELIB}/glances/outputs/glances_curses_browser.py
+${PYSITELIB}/glances/outputs/glances_curses_browser.pyc
+${PYSITELIB}/glances/outputs/glances_curses_browser.pyo
+${PYSITELIB}/glances/outputs/glances_restful_api.py
+${PYSITELIB}/glances/outputs/glances_restful_api.pyc
+${PYSITELIB}/glances/outputs/glances_restful_api.pyo
+${PYSITELIB}/glances/outputs/glances_sparklines.py
+${PYSITELIB}/glances/outputs/glances_sparklines.pyc
+${PYSITELIB}/glances/outputs/glances_sparklines.pyo
+${PYSITELIB}/glances/outputs/glances_stdout.py
+${PYSITELIB}/glances/outputs/glances_stdout.pyc
+${PYSITELIB}/glances/outputs/glances_stdout.pyo
+${PYSITELIB}/glances/outputs/glances_stdout_apidoc.py
+${PYSITELIB}/glances/outputs/glances_stdout_apidoc.pyc
+${PYSITELIB}/glances/outputs/glances_stdout_apidoc.pyo
+${PYSITELIB}/glances/outputs/glances_stdout_csv.py
+${PYSITELIB}/glances/outputs/glances_stdout_csv.pyc
+${PYSITELIB}/glances/outputs/glances_stdout_csv.pyo
+${PYSITELIB}/glances/outputs/glances_stdout_issue.py
+${PYSITELIB}/glances/outputs/glances_stdout_issue.pyc
+${PYSITELIB}/glances/outputs/glances_stdout_issue.pyo
+${PYSITELIB}/glances/outputs/glances_stdout_json.py
+${PYSITELIB}/glances/outputs/glances_stdout_json.pyc
+${PYSITELIB}/glances/outputs/glances_stdout_json.pyo
+${PYSITELIB}/glances/outputs/glances_unicode.py
+${PYSITELIB}/glances/outputs/glances_unicode.pyc
+${PYSITELIB}/glances/outputs/glances_unicode.pyo
+${PYSITELIB}/glances/password.py
+${PYSITELIB}/glances/password.pyc
+${PYSITELIB}/glances/password.pyo
+${PYSITELIB}/glances/password_list.py
+${PYSITELIB}/glances/password_list.pyc
+${PYSITELIB}/glances/password_list.pyo
+${PYSITELIB}/glances/plugins/__init__.py
+${PYSITELIB}/glances/plugins/__init__.pyc
+${PYSITELIB}/glances/plugins/__init__.pyo
+${PYSITELIB}/glances/plugins/__pycache__/__init__.py
+${PYSITELIB}/glances/plugins/alert/__init__.py
+${PYSITELIB}/glances/plugins/alert/__init__.pyc
+${PYSITELIB}/glances/plugins/alert/__init__.pyo
+${PYSITELIB}/glances/plugins/amps/__init__.py
+${PYSITELIB}/glances/plugins/amps/__init__.pyc
+${PYSITELIB}/glances/plugins/amps/__init__.pyo
+${PYSITELIB}/glances/plugins/cloud/__init__.py
+${PYSITELIB}/glances/plugins/cloud/__init__.pyc
+${PYSITELIB}/glances/plugins/cloud/__init__.pyo
+${PYSITELIB}/glances/plugins/connections/__init__.py
+${PYSITELIB}/glances/plugins/connections/__init__.pyc
+${PYSITELIB}/glances/plugins/connections/__init__.pyo
+${PYSITELIB}/glances/plugins/containers/__init__.py
+${PYSITELIB}/glances/plugins/containers/__init__.pyc
+${PYSITELIB}/glances/plugins/containers/__init__.pyo
+${PYSITELIB}/glances/plugins/containers/engines/__init__.py
+${PYSITELIB}/glances/plugins/containers/engines/__init__.pyc
+${PYSITELIB}/glances/plugins/containers/engines/__init__.pyo
+${PYSITELIB}/glances/plugins/containers/engines/docker.py
+${PYSITELIB}/glances/plugins/containers/engines/docker.pyc
+${PYSITELIB}/glances/plugins/containers/engines/docker.pyo
+${PYSITELIB}/glances/plugins/containers/engines/podman.py
+${PYSITELIB}/glances/plugins/containers/engines/podman.pyc
+${PYSITELIB}/glances/plugins/containers/engines/podman.pyo
+${PYSITELIB}/glances/plugins/containers/stats_streamer.py
+${PYSITELIB}/glances/plugins/containers/stats_streamer.pyc
+${PYSITELIB}/glances/plugins/containers/stats_streamer.pyo
+${PYSITELIB}/glances/plugins/core/__init__.py
+${PYSITELIB}/glances/plugins/core/__init__.pyc
+${PYSITELIB}/glances/plugins/core/__init__.pyo
+${PYSITELIB}/glances/plugins/cpu/__init__.py
+${PYSITELIB}/glances/plugins/cpu/__init__.pyc
+${PYSITELIB}/glances/plugins/cpu/__init__.pyo
+${PYSITELIB}/glances/plugins/diskio/__init__.py
+${PYSITELIB}/glances/plugins/diskio/__init__.pyc
+${PYSITELIB}/glances/plugins/diskio/__init__.pyo
+${PYSITELIB}/glances/plugins/folders/__init__.py
+${PYSITELIB}/glances/plugins/folders/__init__.pyc
+${PYSITELIB}/glances/plugins/folders/__init__.pyo
+${PYSITELIB}/glances/plugins/fs/__init__.py
+${PYSITELIB}/glances/plugins/fs/__init__.pyc
+${PYSITELIB}/glances/plugins/fs/__init__.pyo
+${PYSITELIB}/glances/plugins/gpu/__init__.py
+${PYSITELIB}/glances/plugins/gpu/__init__.pyc
+${PYSITELIB}/glances/plugins/gpu/__init__.pyo
+${PYSITELIB}/glances/plugins/gpu/cards/__init__.py
+${PYSITELIB}/glances/plugins/gpu/cards/__init__.pyc
+${PYSITELIB}/glances/plugins/gpu/cards/__init__.pyo
+${PYSITELIB}/glances/plugins/gpu/cards/amd.py
+${PYSITELIB}/glances/plugins/gpu/cards/amd.pyc
+${PYSITELIB}/glances/plugins/gpu/cards/amd.pyo
+${PYSITELIB}/glances/plugins/gpu/cards/nvidia.py
+${PYSITELIB}/glances/plugins/gpu/cards/nvidia.pyc
+${PYSITELIB}/glances/plugins/gpu/cards/nvidia.pyo
+${PYSITELIB}/glances/plugins/help/__init__.py
+${PYSITELIB}/glances/plugins/help/__init__.pyc
+${PYSITELIB}/glances/plugins/help/__init__.pyo
+${PYSITELIB}/glances/plugins/ip/__init__.py
+${PYSITELIB}/glances/plugins/ip/__init__.pyc
+${PYSITELIB}/glances/plugins/ip/__init__.pyo
+${PYSITELIB}/glances/plugins/irq/__init__.py
+${PYSITELIB}/glances/plugins/irq/__init__.pyc
+${PYSITELIB}/glances/plugins/irq/__init__.pyo
+${PYSITELIB}/glances/plugins/load/__init__.py
+${PYSITELIB}/glances/plugins/load/__init__.pyc
+${PYSITELIB}/glances/plugins/load/__init__.pyo
+${PYSITELIB}/glances/plugins/mem/__init__.py
+${PYSITELIB}/glances/plugins/mem/__init__.pyc
+${PYSITELIB}/glances/plugins/mem/__init__.pyo
+${PYSITELIB}/glances/plugins/memswap/__init__.py
+${PYSITELIB}/glances/plugins/memswap/__init__.pyc
+${PYSITELIB}/glances/plugins/memswap/__init__.pyo
+${PYSITELIB}/glances/plugins/network/__init__.py
+${PYSITELIB}/glances/plugins/network/__init__.pyc
+${PYSITELIB}/glances/plugins/network/__init__.pyo
+${PYSITELIB}/glances/plugins/now/__init__.py
+${PYSITELIB}/glances/plugins/now/__init__.pyc
+${PYSITELIB}/glances/plugins/now/__init__.pyo
+${PYSITELIB}/glances/plugins/percpu/__init__.py
+${PYSITELIB}/glances/plugins/percpu/__init__.pyc
+${PYSITELIB}/glances/plugins/percpu/__init__.pyo
+${PYSITELIB}/glances/plugins/plugin/__init__.py
+${PYSITELIB}/glances/plugins/plugin/__init__.pyc
+${PYSITELIB}/glances/plugins/plugin/__init__.pyo
+${PYSITELIB}/glances/plugins/plugin/model.py
+${PYSITELIB}/glances/plugins/plugin/model.pyc
+${PYSITELIB}/glances/plugins/plugin/model.pyo
+${PYSITELIB}/glances/plugins/ports/__init__.py
+${PYSITELIB}/glances/plugins/ports/__init__.pyc
+${PYSITELIB}/glances/plugins/ports/__init__.pyo
+${PYSITELIB}/glances/plugins/processcount/__init__.py
+${PYSITELIB}/glances/plugins/processcount/__init__.pyc
+${PYSITELIB}/glances/plugins/processcount/__init__.pyo
+${PYSITELIB}/glances/plugins/processlist/__init__.py
+${PYSITELIB}/glances/plugins/processlist/__init__.pyc
+${PYSITELIB}/glances/plugins/processlist/__init__.pyo
+${PYSITELIB}/glances/plugins/psutilversion/__init__.py
+${PYSITELIB}/glances/plugins/psutilversion/__init__.pyc
+${PYSITELIB}/glances/plugins/psutilversion/__init__.pyo
+${PYSITELIB}/glances/plugins/quicklook/__init__.py
+${PYSITELIB}/glances/plugins/quicklook/__init__.pyc
+${PYSITELIB}/glances/plugins/quicklook/__init__.pyo
+${PYSITELIB}/glances/plugins/raid/__init__.py
+${PYSITELIB}/glances/plugins/raid/__init__.pyc
+${PYSITELIB}/glances/plugins/raid/__init__.pyo
+${PYSITELIB}/glances/plugins/sensors/__init__.py
+${PYSITELIB}/glances/plugins/sensors/__init__.pyc
+${PYSITELIB}/glances/plugins/sensors/__init__.pyo
+${PYSITELIB}/glances/plugins/sensors/sensor/__init__.py
+${PYSITELIB}/glances/plugins/sensors/sensor/__init__.pyc
+${PYSITELIB}/glances/plugins/sensors/sensor/__init__.pyo
+${PYSITELIB}/glances/plugins/sensors/sensor/glances_batpercent.py
+${PYSITELIB}/glances/plugins/sensors/sensor/glances_batpercent.pyc
+${PYSITELIB}/glances/plugins/sensors/sensor/glances_batpercent.pyo
+${PYSITELIB}/glances/plugins/sensors/sensor/glances_hddtemp.py
+${PYSITELIB}/glances/plugins/sensors/sensor/glances_hddtemp.pyc
+${PYSITELIB}/glances/plugins/sensors/sensor/glances_hddtemp.pyo
+${PYSITELIB}/glances/plugins/smart/__init__.py
+${PYSITELIB}/glances/plugins/smart/__init__.pyc
+${PYSITELIB}/glances/plugins/smart/__init__.pyo
+${PYSITELIB}/glances/plugins/system/__init__.py
+${PYSITELIB}/glances/plugins/system/__init__.pyc
+${PYSITELIB}/glances/plugins/system/__init__.pyo
+${PYSITELIB}/glances/plugins/uptime/__init__.py
+${PYSITELIB}/glances/plugins/uptime/__init__.pyc
+${PYSITELIB}/glances/plugins/uptime/__init__.pyo
+${PYSITELIB}/glances/plugins/version/__init__.py
+${PYSITELIB}/glances/plugins/version/__init__.pyc
+${PYSITELIB}/glances/plugins/version/__init__.pyo
+${PYSITELIB}/glances/plugins/wifi/__init__.py
+${PYSITELIB}/glances/plugins/wifi/__init__.pyc
+${PYSITELIB}/glances/plugins/wifi/__init__.pyo
+${PYSITELIB}/glances/ports_list.py
+${PYSITELIB}/glances/ports_list.pyc
+${PYSITELIB}/glances/ports_list.pyo
+${PYSITELIB}/glances/processes.py
+${PYSITELIB}/glances/processes.pyc
+${PYSITELIB}/glances/processes.pyo
+${PYSITELIB}/glances/programs.py
+${PYSITELIB}/glances/programs.pyc
+${PYSITELIB}/glances/programs.pyo
+${PYSITELIB}/glances/secure.py
+${PYSITELIB}/glances/secure.pyc
+${PYSITELIB}/glances/secure.pyo
+${PYSITELIB}/glances/server.py
+${PYSITELIB}/glances/server.pyc
+${PYSITELIB}/glances/server.pyo
+${PYSITELIB}/glances/snmp.py
+${PYSITELIB}/glances/snmp.pyc
+${PYSITELIB}/glances/snmp.pyo
+${PYSITELIB}/glances/standalone.py
+${PYSITELIB}/glances/standalone.pyc
+${PYSITELIB}/glances/standalone.pyo
+${PYSITELIB}/glances/static_list.py
+${PYSITELIB}/glances/static_list.pyc
+${PYSITELIB}/glances/static_list.pyo
+${PYSITELIB}/glances/stats.py
+${PYSITELIB}/glances/stats.pyc
+${PYSITELIB}/glances/stats.pyo
+${PYSITELIB}/glances/stats_client.py
+${PYSITELIB}/glances/stats_client.pyc
+${PYSITELIB}/glances/stats_client.pyo
+${PYSITELIB}/glances/stats_client_snmp.py
+${PYSITELIB}/glances/stats_client_snmp.pyc
+${PYSITELIB}/glances/stats_client_snmp.pyo
+${PYSITELIB}/glances/stats_server.py
+${PYSITELIB}/glances/stats_server.pyc
+${PYSITELIB}/glances/stats_server.pyo
+${PYSITELIB}/glances/thresholds.py
+${PYSITELIB}/glances/thresholds.pyc
+${PYSITELIB}/glances/thresholds.pyo
+${PYSITELIB}/glances/timer.py
+${PYSITELIB}/glances/timer.pyc
+${PYSITELIB}/glances/timer.pyo
+${PYSITELIB}/glances/web_list.py
+${PYSITELIB}/glances/web_list.pyc
+${PYSITELIB}/glances/web_list.pyo
+${PYSITELIB}/glances/webserver.py
+${PYSITELIB}/glances/webserver.pyc
+${PYSITELIB}/glances/webserver.pyo
+man/man1/glances-${PYVERSSUFFIX}.1
+share/doc/glances-${PYVERSSUFFIX}/AUTHORS
+share/doc/glances-${PYVERSSUFFIX}/CONTRIBUTING.md
+share/doc/glances-${PYVERSSUFFIX}/COPYING
+share/doc/glances-${PYVERSSUFFIX}/NEWS.rst
+share/doc/glances-${PYVERSSUFFIX}/README.rst
+share/doc/glances-${PYVERSSUFFIX}/SECURITY.md
+share/doc/glances-${PYVERSSUFFIX}/glances.conf
diff --git a/py-Glances/TODO b/py-Glances/TODO
new file mode 100644
index 0000000000..910796ae47
--- /dev/null
+++ b/py-Glances/TODO
@@ -0,0 +1,2 @@
+Fails on startup, see
+https://github.com/nicolargo/glances/issues/2792
diff --git a/py-Glances/distinfo b/py-Glances/distinfo
new file mode 100644
index 0000000000..a61287a3ab
--- /dev/null
+++ b/py-Glances/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.23 2024/04/05 10:42:28 wiz Exp $
+
+BLAKE2s (glances-4.0.5.tar.gz) = 209b2cbcc751ff07f40f840cffea7fcb704984b1e1531b205f157f17df571842
+SHA512 (glances-4.0.5.tar.gz) = f8b7f986f86c6a8ada90a3e6dca5d1864e83717f18476a06610cc050dd528c479d3ab6095c9cd6f391d9ad6989d110c1d7f2ddefcbca118744904122cd0bda19
+Size (glances-4.0.5.tar.gz) = 6585328 bytes
+SHA1 (patch-glances_plugins_cpu_____init____.py) = da6661fdf8e9bd2ce02a3dfbc4230204dc14a448
+SHA1 (patch-glances_plugins_quicklook_____init____.py) = 466995d65be96f30711be74e6fc3ab372e37f465
diff --git a/py-Glances/log b/py-Glances/log
new file mode 100644
index 0000000000..939b1551b1
--- /dev/null
+++ b/py-Glances/log
@@ -0,0 +1,166 @@
+===============
+Version 4.0.5
+===============
+
+* SensorType change in REST API breaks compatibility in 4.0.4 #2788
+* Please make pydantic optional dependency, not required one #2777
+* Update the Grafana dashboard #2780
+* 4.0.4 - On Glances startup "ERROR -- Can not init battery class #2776
+* In codeSpace (with Python 3.8), an error occurs in ./unittest-restful.py #2773
+
+Use Ruff as default Linter.
+
+===============
+Version 4.0.4
+===============
+
+Hostfix release for support sensors plugin on python 3.8
+
+===============
+Version 4.0.3
+===============
+
+Additional fixes for Sensor plugin
+
+===============
+Version 4.0.2
+===============
+
+* hotfix: plugin(sensors) - race conditions btw fan_speed & temperature… #2766
+* fix: include requirements.txt and SECURITY.md for pypi dist #2761
+
+Thanks to RazCrimson for the sensors patch !
+
+===============
+Version 4.0.1
+===============
+
+Correct issue with CI (miss pydantic dep).
+
+===============
+Version 4.0.0
+===============
+
+See release note in Wiki format: https://github.com/nicolargo/glances/wiki/Glances-4.0-Release-Note
+
+**BREAKING CHANGES:**
+
+* The minimal Python version is 3.8
+* The Glances API version 3 is replaced by the version 4. So Restfull API URL is now /api/4/ #2610
+* Alias definition change in the configuration file #1735
+
+Glances version 3.x and lower:
+
+    sda1_alias=InternalDisk
+
+    sdb1_alias=ExternalDisk
+
+Glances version 4.x and higher:
+
+    alias=sda1:InternalDisk,sdb1:ExternalDisk
+
+* Alert data model change from a list of list to a list of dict #2633
+* Docker memory usage uses the same algorithm than docker stats #2637
+
+Special notes for package maintainers:
+
+Minimal requirements for Glances version 4 are:
+
+* psutil
+* defusedxml
+* packaging
+* ujson
+* pydantic
+* fastapi (for WebUI / RestFull API)
+* uvicorn (for WebUI / RestFull API)
+* jinja2 (for WebUI / RestFull API)
+
+Majors changes between Glances version 3 and version 4:
+
+* Bottle has been replaced by FastAPI and Uvicorn
+* CouchDB has been replaced by PyCouchDB
+* nvidia-ml-py has been replaced by py3nvml
+* pysnmp has been replaced by pysnmp-lextudio
+
+Enhancements:
+
+* Export individual processes stats #794
+* [WebUI] Feature Request: Ability to hide Engine and Pod columns in Containers #2423
+* [IP plugin] Make the public ip information more configurable (not only from the Censys service) #2732
+* Getting field information (description, unit) from the API #2630
+* Refactor alias configuration and allow alias for fs devices #1735
+* Improve alert with mininimal interval/duration configuration keys #2558
+* --stdout plugin.attr is not compliant with plugins returning list of dicts #2446
+* Lot's of log messages when a proxy is used with the Podman plugin #2714
+* [WEBUI & CURSES] Make the left menu configurable #2648
+* [WEBUI] Custom system header information #2695
+* [CURSES] Use normal color for normal text instead of an arbitrary color #2687
+* [WEBUI] Showing the full arguments on the command column of the TASKS #2634
+* Add graph export for GPU plugin (related to #2542)
+* Refactor Alert data model from list of list to list of dict #2633
+* Use enum instead of int for callback API version. #2712
+* Make the alerts number configurable (related to #2558)
+* [WebUI] Added smart plugin support #2435
+* No more threshold display in the WebUI cpu/mem and memswap plugins #2420
+* Refactor Glances curses code #2580
+* Hide password in the Glances browser form #503
+* Replace Bottle by FastAPI #2181
+* Replace py3nvml with nvidia-ml-py #2688
+
+Bug corrected:
+
+* Crash when reading timezone for generating alert #2659
+* Newline in container command corrupts display / hides container #2733
+* RAID plugin not showing up in Glances web UI (Docker install) #2716
+* Alerts showing different time than time plugin #2214
+* OpenBSD crash on start without a swap file/partition #2719
+* Folders plugin always fails on special directories #2518
+* Update dependency urllib3 to v2 #2397
+* Crach when ENTER key is pressed in the Alpine minimal image #2658
+* Crash when a process is pinned in the develop branch of Glances #2639
+* TERM setting causes glances to crash #2598
+* macOS: Read user config from ~/.config/glances #2641
+* Docker Prometheus issue with IRQ plugin #2564
+* Remove systemd from Curses (related to #2595)
+* Screen frequently flickers when outputting to local display #2490
+* Incorrect linux_distro in docker version glances #2439
+* Influxdb2 export not working #2407
+* Ignore/detect symlink loops in folders plugin #2494
+* Remove Clear-text logging of sensitive information - Code Scanning #36
+* Cannot start Glances 3.4.0.1 on Windows 10: SIGHUP not defined #2408
+* 3.4.0 crash on startupwith minimal deps #2401
+
+CI and documentation:
+
+* New logo for Glances version 4.0 #2713
+* Update api.rst documentation #2496
+* Change Renovate config #2729
+* Docker compose password unrecognized arguments when applying docs #2698
+* Docker includes OS Release Volume mount info #2473
+* Update prometheus.rst, fix minor typos #2640
+* Fix typos and make grammatical and stylistic edits in project documentation #2625
+* MongoDB and CouchDB documentation flipped #2565
+* No module named 'influxdb' on the snap version of glances #1738
+
+Many thinks to the contributors:
+
+* Bharath Vignesh J K
+* Christoph Zimmermann
+* RazCrimson
+* Robin Candau
+* Github GPG acces
+* Continuous Integration
+* Georgiy Timchenko
+* turbocrime
+* Kiskae
+* snyk-bot
+* Alexander Grigoryev
+* Claes Hallström
+* Francois Pires
+* Maarten Kossen (mpkossen)
+* Osama Albahrani
+* csteiner
+* k26pl
+* kdkd
+* monochromec
+* and all the beta testers !
diff --git a/py-Glances/patches/patch-glances_plugins_cpu_____init____.py b/py-Glances/patches/patch-glances_plugins_cpu_____init____.py
new file mode 100644
index 0000000000..5e45d687c0
--- /dev/null
+++ b/py-Glances/patches/patch-glances_plugins_cpu_____init____.py
@@ -0,0 +1,26 @@
+$NetBSD$
+
+Disable system call counts in BSD.
+
+--- glances/plugins/cpu/__init__.py.orig	2024-05-18 09:31:15.000000000 +0000
++++ glances/plugins/cpu/__init__.py
+@@ -11,7 +11,7 @@
+ import psutil
+ 
+ from glances.cpu_percent import cpu_percent
+-from glances.globals import LINUX, SUNOS, WINDOWS, iterkeys
++from glances.globals import BSD, LINUX, SUNOS, WINDOWS, iterkeys
+ from glances.plugins.core import PluginModel as CorePluginModel
+ from glances.plugins.plugin.model import GlancesPluginModel
+ 
+@@ -377,8 +377,8 @@ class PluginModel(GlancesPluginModel):
+             ret.extend(self.curse_add_stat('dpc', width=15))
+         # Steal CPU usage
+         ret.extend(self.curse_add_stat('steal', width=14, header='  '))
+-        if not LINUX:
+-            # syscalls: number of system calls since boot. Always set to 0 on Linux. (do not display)
++        if not LINUX and not BSD:
++            # syscalls: number of system calls since boot. Always set to 0 on Linux and BSD. (do not display)
+             ret.extend(self.curse_add_stat('syscalls', width=15, header='  '))
+         else:
+             # So instead on Linux we display the guest CPU usage (see #2667)
diff --git a/py-Glances/patches/patch-glances_plugins_quicklook_____init____.py b/py-Glances/patches/patch-glances_plugins_quicklook_____init____.py
new file mode 100644
index 0000000000..ce0e478f4f
--- /dev/null
+++ b/py-Glances/patches/patch-glances_plugins_quicklook_____init____.py
@@ -0,0 +1,24 @@
+$NetBSD$
+
+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/quicklook/__init__.py.orig	2024-05-18 09:31:15.000000000 +0000
++++ glances/plugins/quicklook/__init__.py
+@@ -111,10 +111,12 @@ class PluginModel(GlancesPluginModel):
+             # Get system 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
+ 
+             # Get the CPU percent value (global and per core)
+             # Stats is shared across all plugins


Home | Main Index | Thread Index | Old Index