diff options
author | Fabian Groffen <grobian@gentoo.org> | 2009-09-26 14:08:51 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2009-09-26 14:08:51 +0000 |
commit | 7b264546f6763e3b6453dfb9885630cce949e2af (patch) | |
tree | 8530cab2daf078b80ac6365bd12a5e08413c19ac /sys-process | |
parent | Add unixtop licence (diff) | |
download | historical-7b264546f6763e3b6453dfb9885630cce949e2af.tar.gz historical-7b264546f6763e3b6453dfb9885630cce949e2af.tar.bz2 historical-7b264546f6763e3b6453dfb9885630cce949e2af.zip |
Add sys-process/unixtop from the Prefix tree
Package-Manager: portage-2.2.00.14411-prefix/cvs/Darwin powerpc
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/unixtop/ChangeLog | 13 | ||||
-rw-r--r-- | sys-process/unixtop/Manifest | 8 | ||||
-rw-r--r-- | sys-process/unixtop/files/unixtop-3.8_beta1-memleak-fix.patch | 28 | ||||
-rw-r--r-- | sys-process/unixtop/files/unixtop-3.8_beta1-ncurses.patch | 14 | ||||
-rw-r--r-- | sys-process/unixtop/files/unixtop-3.8_beta1-no-AX-macros.patch | 22 | ||||
-rw-r--r-- | sys-process/unixtop/files/unixtop-3.8_beta1-renice-segfault.patch | 21 | ||||
-rw-r--r-- | sys-process/unixtop/metadata.xml | 5 | ||||
-rw-r--r-- | sys-process/unixtop/unixtop-3.8_beta1-r1.ebuild | 47 |
8 files changed, 158 insertions, 0 deletions
diff --git a/sys-process/unixtop/ChangeLog b/sys-process/unixtop/ChangeLog new file mode 100644 index 000000000000..dac0995b1c03 --- /dev/null +++ b/sys-process/unixtop/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for sys-process/unixtop +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/unixtop/ChangeLog,v 1.1 2009/09/26 14:08:50 grobian Exp $ + +*unixtop-3.8_beta1-r1 (05 Apr 2009) + + 05 Apr 2009; Fabian Groffen <grobian@gentoo.org> + +files/unixtop-3.8_beta1-memleak-fix.patch, + +files/unixtop-3.8_beta1-renice-segfault.patch, metadata.xml, + -unixtop-3.8_beta1.ebuild, +unixtop-3.8_beta1-r1.ebuild: + Bump for two patches from OpenSolaris folks to fix a memleak and a + segfault + diff --git a/sys-process/unixtop/Manifest b/sys-process/unixtop/Manifest new file mode 100644 index 000000000000..33dd6c330e96 --- /dev/null +++ b/sys-process/unixtop/Manifest @@ -0,0 +1,8 @@ +AUX unixtop-3.8_beta1-memleak-fix.patch 732 RMD160 151dbd7cc2cadbf34fc9136df91bbd88c2f1eb8a SHA1 6849adb541636c4ea5fa530e4d882e6ed27b6792 SHA256 01bcab2902e0031aff71f033ec4d39b19e3d4e7dcf7657e3343ef24fcdfa3ff0 +AUX unixtop-3.8_beta1-ncurses.patch 436 RMD160 07b267cc669f392c7d3923c48f6ccdac83b8d115 SHA1 3cefc53f2390b6028cda151794691ef93cb1fdb2 SHA256 26971db7940dd2aed33f523ea19c0084a679d4803f9f8fab8edcd822cad05e3c +AUX unixtop-3.8_beta1-no-AX-macros.patch 609 RMD160 80fc04598d3ba2c361488d9352a5355a07074eed SHA1 0588fa050a1a302406d3be19e12da6f4dc517cb0 SHA256 ba24d9c3f3d361d6dfb55447fb2e7e270224868723121fefa7ebd04a1909129f +AUX unixtop-3.8_beta1-renice-segfault.patch 518 RMD160 b1c0cfc908224d91695323be5222c8ac3578b149 SHA1 f1a8f5ecaff1b34449a6a90899b3c33ceac73caf SHA256 47ffd2879fa9d3e6eae4fd38191abc004540f04b54cf39a72ab2366802067c7e +DIST top-3.8beta1.tar.bz2 233880 RMD160 9949ba3262efdc0c5a311ee03508e1ad7a3e9229 SHA1 790340c375300a2ce78e0b939af98638999d787f SHA256 1b5281071a4fcc132205e643fb2fe196cf839555874aaee507a7d07aa0076cda +EBUILD unixtop-3.8_beta1-r1.ebuild 1197 RMD160 426f8438241c99d01f89887af2d43d4eff8d3fe7 SHA1 1b1a43db9f90303f7577afa0e473edc30c6f948e SHA256 824fde2e2474bdf09c357d31ca3bb57dde779875f715c3b74c9979fdfffd9372 +MISC ChangeLog 550 RMD160 e716ac5eb0bbd7690db90cc6cf4a9b7e1959214d SHA1 2e62e0028ecab2262e9f84ce1a56a769f24ef51a SHA256 ba9af98576b9db12b06f04c3342dd23b02437f0a23e76136c944e7ff95fd0080 +MISC metadata.xml 160 RMD160 baab82f4bc435813cfde4796d42840882a9a4f8f SHA1 144e248704973cfad031c92a930aad01a62a2fda SHA256 27667dd7db1d188c12342624ec5ff2155717821d646e442aef9a691c65539ac4 diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-memleak-fix.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-memleak-fix.patch new file mode 100644 index 000000000000..d8c6e556e197 --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-memleak-fix.patch @@ -0,0 +1,28 @@ +http://defect.opensolaris.org/bz/show_bug.cgi?id=5482 +http://sourceforge.net/tracker/?func=detail&aid=2593511&group_id=72892&atid=536042 + +--- top-3.8beta1/machine/m_sunos5.c ++++ top-3.8beta1/machine/m_sunos5.c +@@ -2059,11 +2059,11 @@ + /* make sure we have a valid descriptor and the file's current size */ + if (fd >= 0 && fstat(fd, &st) != -1) + { +- char *p; ++ char *p, *p0; + int i; + + /* read the whole file */ +- p = malloc(st.st_size); ++ p = p0 = malloc(st.st_size); + (void)pread(fd, p, st.st_size, 0); + + /* cache the file descriptor if we can */ +@@ -2148,7 +2148,7 @@ + op->oldtime = TIMESPEC_TO_DOUBLE(lwpp->pr_time); + op->seen = 1; + } +- free(p); ++ free(p0); + } + #endif + diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-ncurses.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-ncurses.patch new file mode 100644 index 000000000000..73cd88b72826 --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-ncurses.patch @@ -0,0 +1,14 @@ +* check ncurses first, such that we only link agains (system) termcap if + necessary (never the case in prefix) -- grobian@gentoo.org + +--- configure.ac ++++ configure.ac +@@ -174,7 +174,7 @@ + AC_CHECK_LIB(kvm, kvm_open) + # -lmld -lmach + AC_CHECK_LIB(mach, vm_statistics) +-AC_SEARCH_LIBS(tgetent, termcap curses ncurses) ++AC_SEARCH_LIBS(tgetent, ncurses curses termcap) + AC_CHECK_LIB(m, exp) + + # check for libraries required by extension diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-no-AX-macros.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-no-AX-macros.patch new file mode 100644 index 000000000000..f5d34a4a9ae9 --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-no-AX-macros.patch @@ -0,0 +1,22 @@ +* no idea where these macros are, but we can surely do without this, for + now -- grobian@gentoo.org + +--- configure.ac ++++ configure.ac +@@ -504,16 +504,6 @@ + + AC_MSG_RESULT($result) + +-# add extra cflags if the compiler accepts them +-AX_CFLAGS_WARN_ALL +-MODULE_CFLAGS="" +-if test "$ax_cv_c_compiler_vendor" = "gnu"; then +- AX_CFLAGS_GCC_OPTION([-fno-strict-aliasing], [MODULE_CFLAGS]) +- if test "$target_cpu" = "alpha"; then +- AX_CFLAGS_GCC_OPTION([-mfp-trap-mode=sui -mtrap-precision=i]) +- fi +-fi +- + # Define man page supplement + MAN_SUPPLEMENT=machine/m_$MODULE.man + AC_SUBST_FILE(MAN_SUPPLEMENT) diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-renice-segfault.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-renice-segfault.patch new file mode 100644 index 000000000000..afea694b59ad --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-renice-segfault.patch @@ -0,0 +1,21 @@ +http://defect.opensolaris.org/bz/show_bug.cgi?id=6580 + +--- top-3.8beta1/commands.c ++++ top-3.8beta1/commands.c +@@ -501,13 +501,15 @@ + if (procnum == -1 || prio < PRIO_MIN || prio > PRIO_MAX) + { + message_error(" renice: bad priority value"); ++ return; + } + #endif + + /* move to the first process number */ + if ((str = next_field(str)) == NULL) + { +- message_error(" remice: no processes specified"); ++ message_error(" renice: no processes specified"); ++ return; + } + + #ifdef HAVE_SETPRIORITY diff --git a/sys-process/unixtop/metadata.xml b/sys-process/unixtop/metadata.xml new file mode 100644 index 000000000000..4561e552bd04 --- /dev/null +++ b/sys-process/unixtop/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>prefix</herd> +</pkgmetadata> diff --git a/sys-process/unixtop/unixtop-3.8_beta1-r1.ebuild b/sys-process/unixtop/unixtop-3.8_beta1-r1.ebuild new file mode 100644 index 000000000000..6cf7034be57b --- /dev/null +++ b/sys-process/unixtop/unixtop-3.8_beta1-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/unixtop/unixtop-3.8_beta1-r1.ebuild,v 1.1 2009/09/26 14:08:50 grobian Exp $ + +inherit eutils autotools + +DESCRIPTION="top for UNIX systems" +HOMEPAGE="http://unixtop.sourceforge.net/" +SRC_URI="mirror://sourceforge/unixtop/top-${PV/_/}.tar.bz2" + +LICENSE="unixtop" +SLOT="0" +KEYWORDS="~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/top-${PV/_/} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-ncurses.patch + epatch "${FILESDIR}"/${P}-no-AX-macros.patch + epatch "${FILESDIR}"/${P}-renice-segfault.patch + epatch "${FILESDIR}"/${P}-memleak-fix.patch + eautoreconf +} + +src_compile() { + local myconf= + + # don't do bi-arch cruft on hosts that support that, such as Solaris + export enable_dualarch=no + + # configure demands an override because on OSX this is "experimental" + [[ ${CHOST} == *-darwin* ]] && myconf="${myconf} --with-module=macosx" + + econf ${myconf} || die + emake || die +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README FAQ Y2K +} |