diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-process/glances | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-process/glances')
-rw-r--r-- | sys-process/glances/Manifest | 3 | ||||
-rw-r--r-- | sys-process/glances/files/2.4.2-setup-data.patch | 15 | ||||
-rw-r--r-- | sys-process/glances/glances-2.2.1.ebuild | 67 | ||||
-rw-r--r-- | sys-process/glances/glances-2.3.ebuild | 67 | ||||
-rw-r--r-- | sys-process/glances/glances-2.4.2.ebuild | 64 | ||||
-rw-r--r-- | sys-process/glances/metadata.xml | 18 |
6 files changed, 234 insertions, 0 deletions
diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest new file mode 100644 index 000000000000..c0cae6b038a0 --- /dev/null +++ b/sys-process/glances/Manifest @@ -0,0 +1,3 @@ +DIST Glances-2.2.1.tar.gz 3458958 SHA256 81d2a9b7132d70b4a156a61a724201bd70ab2edea01bf32e1b279fc4f765f7d5 SHA512 c7fa7431f0c503adae89702b52e51f7dc2f2beaa42d43a849896673d26e94a40a60f2511adb4404b31c8d91ef07244b8b0292924a5df8433afe1d2e2b656b383 WHIRLPOOL a32fd1a12eccb34d4616c23262535fd6a47fa334a5505ea601e560206f3ec5f32f4726ada28a736ed47b6ca81ec6cbada491e6d58a47385bc6b8433a4932aa8d +DIST Glances-2.3.tar.gz 3918915 SHA256 b56bb17505b72862358b2d31b6b9a7c0f9045105454d1de0ffed416ad2883612 SHA512 e331ea09200c87311c0dd7fb60efda6a0015ebd8773624ed5cb519bbfa37152fb9d2d0d3aa3e7bef3ce617c4ea5dbf05a019bf857126637364119a7f9d70ebfa WHIRLPOOL 99c8ff2e254abf65ed5c86604fc2baaf8ad973cf9c21b536069cf27802930cb6b7a7b4ccf5b454804d061c5203fda68b2ba712350af9ce132f185051e448c8b9 +DIST Glances-2.4.2.tar.gz 5497895 SHA256 31f1e4c2e129904a373f3b20d6800472375e415e01161168469ccebb320c9517 SHA512 ada7e2a9766dec54b26fa1fccac3b1abe6b9abcc16a96c6bb30d537370648732a99cff41c6c812908531a4995e118cb3d1127196184f40dee7a01a6a8a85d9b9 WHIRLPOOL 91cd5dfbe891c16bbbe5c6ae17500498c230d36a0795ba134a0384770cae04cbdf08b5236fd56157e438eaff17a7bd9cac3bc42bee7980239faf5c9fc18fc683 diff --git a/sys-process/glances/files/2.4.2-setup-data.patch b/sys-process/glances/files/2.4.2-setup-data.patch new file mode 100644 index 000000000000..b2d9d0b12319 --- /dev/null +++ b/sys-process/glances/files/2.4.2-setup-data.patch @@ -0,0 +1,15 @@ +diff -ur Glances-2.4.2.orig/setup.py Glances-2.4.2/setup.py +--- setup.py 2015-05-29 04:10:10.000000000 +0800 ++++ setup.py 2015-07-10 14:47:54.333415133 +0800 +@@ -13,9 +13,7 @@ + + def get_data_files(): + data_files = [ +- ('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst', +- 'conf/glances.conf', 'docs/glances-doc.html']), +- ('share/doc/glances/images', glob.glob('docs/images/*.png')), +- ('share/man/man1', ['man/glances.1']) ++ ('share/man/man1', ['man/glances.1']), ++ ('etc/glances', ['conf/glances.conf']) + ] + diff --git a/sys-process/glances/glances-2.2.1.ebuild b/sys-process/glances/glances-2.2.1.ebuild new file mode 100644 index 000000000000..6b04afcb3a97 --- /dev/null +++ b/sys-process/glances/glances-2.2.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 linux-info + +MYPN=Glances +MYP=${MYPN}-${PV} + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="chart doc hddtemp snmp web" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}] + hddtemp? ( app-admin/hddtemp ) + snmp? ( dev-python/pysnmp[${PYTHON_USEDEP}] ) + web? ( dev-python/bottle[${PYTHON_USEDEP}] ) + chart? ( dev-python/matplotlib[${PYTHON_USEDEP}] )" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${MYP}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + sed -e "s:share/doc/glances:share/doc/${PF}:g" \ + -e "s/'COPYING',//" \ + -e "s:/etc:${EPREFIX}/etc:" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # Abnormal setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + rm -rf "${D}"usr/share/doc/${PF}/{glances-doc.html,images/} || die + + distutils-r1_python_install_all +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "${PN} can gain additional functionality with following packages:" + elog " dev-python/jinja - export statistics to HTML" + elog " app-admin/hddtemp - monitor hard drive temperatures" + elog " dev-python/pysnmp - enable Python SNMP library support" + elog " dev-python/bottle - for Web server mode" + elog " dev-python/matplotlib - for graphical / chart support" + fi +} diff --git a/sys-process/glances/glances-2.3.ebuild b/sys-process/glances/glances-2.3.ebuild new file mode 100644 index 000000000000..84358877959f --- /dev/null +++ b/sys-process/glances/glances-2.3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 linux-info + +MYPN=Glances +MYP=${MYPN}-${PV} + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="chart doc hddtemp snmp web" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}] + hddtemp? ( app-admin/hddtemp ) + snmp? ( dev-python/pysnmp[${PYTHON_USEDEP}] ) + web? ( dev-python/bottle[${PYTHON_USEDEP}] ) + chart? ( dev-python/matplotlib[${PYTHON_USEDEP}] )" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${MYP}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + sed -e "s:share/doc/glances:share/doc/${PF}:g" \ + -e "s/'COPYING',//" \ + -e "s:/etc:${EPREFIX}/etc:" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # Abnormal setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + rm -rf "${D}"usr/share/doc/${PF}/{glances-doc.html,images/} || die + + distutils-r1_python_install_all +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "${PN} can gain additional functionality with following packages:" + elog " dev-python/jinja - export statistics to HTML" + elog " app-admin/hddtemp - monitor hard drive temperatures" + elog " dev-python/pysnmp - enable Python SNMP library support" + elog " dev-python/bottle - for Web server mode" + elog " dev-python/matplotlib - for graphical / chart support" + fi +} diff --git a/sys-process/glances/glances-2.4.2.ebuild b/sys-process/glances/glances-2.4.2.ebuild new file mode 100644 index 000000000000..a6d9b4d359c0 --- /dev/null +++ b/sys-process/glances/glances-2.4.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 linux-info + +MYPN=Glances +MYP=${MYPN}-${PV} + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="chart doc hddtemp snmp web" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}] + hddtemp? ( app-admin/hddtemp ) + snmp? ( dev-python/pysnmp[${PYTHON_USEDEP}] ) + web? ( dev-python/bottle[${PYTHON_USEDEP}] ) + chart? ( dev-python/matplotlib[${PYTHON_USEDEP}] )" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${MYP}" + +# Remove duplicate entries of a prebuilt doc build and +# ensure install of the file glances.conf in /etc/${PN} +PATCHES=( "${FILESDIR}"/2.4.2-setup-data.patch ) + +pkg_setup() { + linux-info_pkg_setup +} + +python_install_all() { + # add an intended file from original data set from setup.py to DOCS + local DOCS="README.rst conf/glances.conf" + # setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "${PN} can gain additional functionality with following packages:" + elog " dev-python/jinja - export statistics to HTML" + elog " app-admin/hddtemp - monitor hard drive temperatures" + elog " dev-python/pysnmp - enable Python SNMP library support" + elog " dev-python/bottle - for Web server mode" + elog " dev-python/matplotlib - for graphical / chart support" + fi + elog "A copy of glances.conf has been added to DOCS" +} diff --git a/sys-process/glances/metadata.xml b/sys-process/glances/metadata.xml new file mode 100644 index 000000000000..9e1478de80bb --- /dev/null +++ b/sys-process/glances/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <longdescription> + Glances is a cross-platform curses-based monitoring tool written in Python. +</longdescription> + <use> + <flag name="web">Enables the web server mode</flag> + <flag name="hddtemp">Enables hard drive temperature monitoring</flag> + <flag name="snmp">Enables SNMP support</flag> + <flag name="chart">Enables support of graph charts via matplotlib</flag> + </use> + <upstream> + <remote-id type="pypi">Glances</remote-id> + <remote-id type="github">nicolargo/glances</remote-id> + </upstream> +</pkgmetadata> |