diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2014-01-30 00:21:21 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2014-01-30 00:21:21 +0000 |
commit | d23ad3d0de822c7d29065b348b1a8c86e3da313d (patch) | |
tree | d489b845bc42a671ce3e154874f49132803af383 /sys-process/ftop | |
parent | Version bumps. Ebuilds by Arfrever. (diff) | |
download | gentoo-2-d23ad3d0de822c7d29065b348b1a8c86e3da313d.tar.gz gentoo-2-d23ad3d0de822c7d29065b348b1a8c86e3da313d.tar.bz2 gentoo-2-d23ad3d0de822c7d29065b348b1a8c86e3da313d.zip |
New package for sys-process/ftop, monitors open files and filesystems; tested and adapted the ebuild and patch provided by Jeroen Roovers (rej), fixes bug #483772 reported by Jesse Adelman.
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'sys-process/ftop')
-rw-r--r-- | sys-process/ftop/ChangeLog | 11 | ||||
-rw-r--r-- | sys-process/ftop/files/ftop-1.0-overflow.patch | 14 | ||||
-rw-r--r-- | sys-process/ftop/ftop-1.0.ebuild | 20 | ||||
-rw-r--r-- | sys-process/ftop/metadata.xml | 8 |
4 files changed, 53 insertions, 0 deletions
diff --git a/sys-process/ftop/ChangeLog b/sys-process/ftop/ChangeLog new file mode 100644 index 000000000000..30de39aba688 --- /dev/null +++ b/sys-process/ftop/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-process/ftop +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/ftop/ChangeLog,v 1.1 2014/01/30 00:21:21 tomwij Exp $ + +*ftop-1.0 (30 Jan 2014) + + 30 Jan 2014; Tom Wijsman <TomWij@gentoo.org> +files/ftop-1.0-overflow.patch, + +ftop-1.0.ebuild, +metadata.xml: + New package for sys-process/ftop, monitors open files and filesystems; tested + and adapted the ebuild and patch provided by Jeroen Roovers (rej), fixes bug + #483772 reported by Jesse Adelman. diff --git a/sys-process/ftop/files/ftop-1.0-overflow.patch b/sys-process/ftop/files/ftop-1.0-overflow.patch new file mode 100644 index 000000000000..f6503fcdbc19 --- /dev/null +++ b/sys-process/ftop/files/ftop-1.0-overflow.patch @@ -0,0 +1,14 @@ +Set tmp_buf and rate_buf to something ridiculously high to fix a buffer +overflow when COLUMNS is large. - JeR + +--- a/src/ftop.c 2009-02-16 07:00:00.000000000 +0100 ++++ b/src/ftop.c 2013-09-06 14:42:41.788852952 +0200 +@@ -736,7 +736,7 @@ + { + size_t i, j, bytes, bar_total; + char more_procs_ch, more_files_ch, expanded_ch; +- char tmp_buf[80], rate_buf[80]; ++ char tmp_buf[2048], rate_buf[2048]; + char *tmp_str; + snapshot *s, *s_prev; + file_info *tmp_file; diff --git a/sys-process/ftop/ftop-1.0.ebuild b/sys-process/ftop/ftop-1.0.ebuild new file mode 100644 index 000000000000..18539a914e27 --- /dev/null +++ b/sys-process/ftop/ftop-1.0.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/ftop/ftop-1.0.ebuild,v 1.1 2014/01/30 00:21:21 tomwij Exp $ + +EAPI="5" + +inherit autotools-utils + +DESCRIPTION="Monitor open files and filesystems" +HOMEPAGE="https://code.google.com/p/ftop/" +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-overflow.patch )
\ No newline at end of file diff --git a/sys-process/ftop/metadata.xml b/sys-process/ftop/metadata.xml new file mode 100644 index 000000000000..dca1781cb290 --- /dev/null +++ b/sys-process/ftop/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>TomWij@gentoo.org</email> + <name>Tom Wijsman</name> + </maintainer> +</pkgmetadata> |