pkgsrc/sysutils/py-Glances/Makefile

45 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 2022/08/08 09:28:06 fox Exp $
DISTNAME= Glances-3.2.7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= sysutils python
MASTER_SITES= ${MASTER_SITE_PYPI:=G/Glances/}
MAINTAINER= fox@NetBSD.org
HOMEPAGE= https://nicolargo.github.io/glances/
COMMENT= Cross-platform curses-based monitoring tool
LICENSE= gnu-lgpl-v3
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
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
2021-07-16 06:24:16 +02:00
DEPENDS+= ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Set correct prefix in setup.py
SUBST_FILES.prefix= ${WRKSRC}/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:
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} && \
${MV} share/examples/glances share/examples/glances-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"