ports/149040: Update to pcpustat (not yet in ports)

Sterling Camden sterling at camdensoftware.com
Wed Jul 28 16:10:02 UTC 2010


>Number:         149040
>Category:       ports
>Synopsis:       Update to pcpustat (not yet in ports)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 28 16:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sterling Camden
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
Camden Software Consulting
>Environment:
System: FreeBSD libertas.local.camdensoftware.com 8.1-STABLE FreeBSD 8.1-STABLE #19: Tue Jul 27 15:35:29 PDT 2010 sterling at libertas.local.camdensoftware.com:/usr/obj/usr/src/sys/LIBERTAS amd64

>Description:
	pcpustat fails on some systems with memory allocation error.
>How-To-Repeat:
	Running pcpustat without arguments generated the error:
	pcpustat: sysctl(kern.cp_times...) failed: Cannot allocate memory
>Fix:

	Allocate memory for maximum supported CPUs, rather than the number of physical CPUs.  shar file follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/sysutils/pcpustat
#	/usr/ports/sysutils/pcpustat/Makefile
#	/usr/ports/sysutils/pcpustat/license.txt
#	/usr/ports/sysutils/pcpustat/pkg-descr
#	/usr/ports/sysutils/pcpustat/distinfo
#
echo c - /usr/ports/sysutils/pcpustat
mkdir -p /usr/ports/sysutils/pcpustat > /dev/null 2>&1
echo x - /usr/ports/sysutils/pcpustat/Makefile
sed 's/^X//' >/usr/ports/sysutils/pcpustat/Makefile << '302e5a411916f3935d86b0b641b7a78f'
X# New ports collection makefile for:   pcpustat
X# Date created:        13 July 2010
X# Whom:                sterling
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pcpustat
XPORTVERSION=	1.1
XCATEGORIES=	sysutils
XMASTER_SITES=	http://chipstips.com/download/
X
XMAINTAINER=	sterling at camdensoftware.com
XCOMMENT=	Per-CPU usage statistics
X
XMAN1=		pcpustat.1
X
XUSE_BZIP2=	yes
XPLIST_FILES=	bin/pcpustat
X
XLICENSE=	OWL
XLICENSE_NAME=	Open Works License
XLICENSE_PERMS=	none
XLICENSE_FILE=	license.txt
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 ${MANPREFIX}/man/man1
X
X.include <bsd.port.mk>
302e5a411916f3935d86b0b641b7a78f
echo x - /usr/ports/sysutils/pcpustat/license.txt
sed 's/^X//' >/usr/ports/sysutils/pcpustat/license.txt << 'de66c239683344e0dfa234b63a4e44c7'
X# Open Works License
X
XThis is version 0.7 of the Open Works License.
X
X## Terms
X
XPermission is hereby granted by the copyright holder(s), author(s),
Xand contributor(s) of this work, to any person who obtains a copy of
Xthis work, in any form, to reproduce, modify, distribute, publish,
Xsell, use, or otherwise deal in the licensed material without
Xrestriction, provided the following conditions are met:
X
X1. Redistributions, modified or unmodified, in whole or in part, must
X   retain the above license notice, this list of conditions, and the
X   following disclaimer.
X
X2. Redistributions, modified or unmodified, in whole or in part, must
X   retain any applicable notices of attribution and copyright.
X
XNo warranty or guarantee is implied, or should be inferred, by this
Xlicense or the act of distribution under the terms of this license.
XThis license does not grant permission to use the trade names,
Xtrademarks, service marks, product names, or other identifications
Xused by the licensor except as required for reasonable and customary
Xuse in reproducing, and describing the origin or use of, the work.
de66c239683344e0dfa234b63a4e44c7
echo x - /usr/ports/sysutils/pcpustat/pkg-descr
sed 's/^X//' >/usr/ports/sysutils/pcpustat/pkg-descr << '1f8025243f65c6b2f6dde36bc07a8982'
Xpcpustat provides per-cpu usage statistics in a format that can be piped.
X
XWWW: http://chipstips.com/?tag=c_pcpustat
1f8025243f65c6b2f6dde36bc07a8982
echo x - /usr/ports/sysutils/pcpustat/distinfo
sed 's/^X//' >/usr/ports/sysutils/pcpustat/distinfo << 'cbf57e2ed07b42777baf391d819624c9'
XMD5 (pcpustat-1.1.tar.bz2) = 2e5300fb722250e0ee549432da916273
XSHA256 (pcpustat-1.1.tar.bz2) = c60beff5cce7ea49b26de6ead1515345d4ad31e3fd43d5e80667e0ec5b789535
XSIZE (pcpustat-1.1.tar.bz2) = 4040
cbf57e2ed07b42777baf391d819624c9
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list