From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 15 21:46:43 2010 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6EE8106566B; Mon, 15 Feb 2010 21:46:43 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 16CBA8FC0C; Mon, 15 Feb 2010 21:46:42 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 19so174167fgg.13 for ; Mon, 15 Feb 2010 13:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references :organization:from:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=LgiW3X1XtlD4T5G/9BjFfrsuaQypdcpbT0R3kjdbJwI=; b=R1d3vozsl40LxkTHfvtgHoiz7LnEzRRr2C3Mm04I/II0tup+TRepuQyEIHSjLCIblT w7hMuDSbiJ9dGjq6AIw6cJwVZVX1QWIbr6v+J5Df7Nby9D3mi0SRwDqtpS+QBX65dbgh tX8Xp9YOA/B1Llo1cmiI5DdnOhojGXmh0C1a8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:organization:from:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=GwTYxlkGL6UjxS3Glzg7yT737U8Oz0PGLq3seu4uQPRq5/pLLOOpWToOVLYwP+oNPH SwGL9995ZYCL9J9zOobgC0+moB1QoptygU1RP4urpzt02VLTIPRZW1Z7LUJURExLbPyI TE6zKujmhLsKygtqeUuEZCB7coepCNelJov34= Received: by 10.87.45.14 with SMTP id x14mr9962288fgj.54.1266270401633; Mon, 15 Feb 2010 13:46:41 -0800 (PST) Received: from localhost ([95.69.164.112]) by mx.google.com with ESMTPS id e20sm516571fga.5.2010.02.15.13.46.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Feb 2010 13:46:40 -0800 (PST) To: lwhsu@FreeBSD.org References: <201002151153.o1FBrnjq018526@freefall.freebsd.org> Organization: TOA Ukraine From: Mikolaj Golub Date: Mon, 15 Feb 2010 23:46:38 +0200 In-Reply-To: <201002151153.o1FBrnjq018526@freefall.freebsd.org> (lwhsu@freebsd.org's message of "Mon\, 15 Feb 2010 11\:53\:49 GMT") Message-ID: <863a12894x.fsf@kopusha.onet> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: freebsd-ports-bugs@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: ports/143934: New port: sysutils/gather utility to store and display system statistics X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2010 21:46:43 -0000 --=-=-= On Mon, 15 Feb 2010 11:53:49 GMT lwhsu@FreeBSD.org wrote: > Install target directory should be ${PREFIX}, please update your shar, > thanks! Updated. Thank you for pointing out. -- Mikolaj Golub --=-=-= Content-Disposition: attachment; filename=gather.port.shar.txt Content-Description: gather.shar # 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: # # gather # gather/Makefile # gather/pkg-descr # gather/distinfo # gather/files # gather/files/pkg-message.in # gather/pkg-plist # echo c - gather mkdir -p gather > /dev/null 2>&1 echo x - gather/Makefile sed 's/^X//' >gather/Makefile << '77e4e3d4e3b0be92b95ba4ee06555ecf' X# New ports collection makefile for: gather X# Date created: 14 February 2010 X# Whom: Mikolaj Golub X# X# $FreeBSD: $ X# X XPORTNAME= gather XPORTVERSION= 0.3 XCATEGORIES= sysutils XMASTER_SITES= GOOGLE_CODE X XMAINTAINER= to.my.trociny@gmail.com XCOMMENT= Utility to store and display system statistics X XPROJECTHOST= gatherit X XUSE_PERL5= yes X XDATADIR= /var/db/gather XMAKE_ENV+= CONFDIR=${PREFIX}/etc/gather DATADIR=${DATADIR} X XSUB_FILES= pkg-message X XMAN1= gather.1 X X.if !defined(NOPORTDOCS) XPORTDOCS= Changelog README X.endif X.if !defined(NOPORTEXAMPLES) XPORTEXAMPLES= * X.endif X Xdo-install: X @${INSTALL_SCRIPT} ${WRKSRC}/gather ${PREFIX}/bin/ X @${INSTALL_MAN} ${WRKSRC}/gather.1 ${PREFIX}/man/man1 X.if !exists(${PREFIX}/etc/gather) X @${MKDIR} ${PREFIX}/etc/gather X.endif X @${INSTALL_DATA} ${WRKSRC}/gather.cfg ${PREFIX}/etc/gather/gather.cfg.sample X.if !exists(${CONFDIR}/gather.cfg) X @${INSTALL_DATA} ${WRKSRC}/gather.cfg ${PREFIX}/etc/gather/gather.cfg X.endif X @${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${PREFIX}/etc/gather/gather.map.sample X.if !exists(${PREFIX}/etc/gather/gather.cfg) X @${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${PREFIX}/etc/gather/gather.map X.endif X.if !defined(NOPORTEXAMPLES) X @${MKDIR} ${EXAMPLESDIR} X @${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR} X.endif X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for doc in ${PORTDOCS} X @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} X.endfor X.endif X @${CAT} ${PKGMESSAGE} X X.include 77e4e3d4e3b0be92b95ba4ee06555ecf echo x - gather/pkg-descr sed 's/^X//' >gather/pkg-descr << '1e02e062b1319005a01e5359467fdf34' Xgather utility can be used to store system statistics provided by Xvariety of system utils and display it. It is just a wrapper around Xthese utilities to make a work with system statistics more convenient. X XWWW: http://gatherit.googlecode.com/ XAuthor: Mikolaj Golub 1e02e062b1319005a01e5359467fdf34 echo x - gather/distinfo sed 's/^X//' >gather/distinfo << '9fb62e54e0c6c50e193974e9bdc990e1' XMD5 (gather-0.3.tar.gz) = 3a599727542fbf8dc741e7211eb262dd XSHA256 (gather-0.3.tar.gz) = 184991f065ae390243b87cff4708f935fbb447a31e6a0e7e620c1a929882655c XSIZE (gather-0.3.tar.gz) = 13235 9fb62e54e0c6c50e193974e9bdc990e1 echo c - gather/files mkdir -p gather/files > /dev/null 2>&1 echo x - gather/files/pkg-message.in sed 's/^X//' >gather/files/pkg-message.in << '27e07cdaf3eec678c215bf4033f256bb' X********************************************************************** X XTo setup statistics gathering you could e.g. add something like this Xto /etc/crontab: X X */5 * * * * root %%PREFIX%%/bin/gather collect X 18 0 * * * root %%PREFIX%%/bin/gather expire 7 X XBefore adding this, please, review the configuration in X%%PREFIX%%/etc/gather. X XTo check that the configuration is correct, run: X X gather show utils X gather -v collect X XAfter setting cron up, you can check if gathering works running: X X gather show -t 1h grep . uptime X XSee gather(1) and %%DOCSDIR%%/README for more details. X X********************************************************************** 27e07cdaf3eec678c215bf4033f256bb echo x - gather/pkg-plist sed 's/^X//' >gather/pkg-plist << '47af54646592937e7b9e9d3e82e54e3c' Xbin/gather X@unexec if cmp -s %D/etc/gather/gather.cfg.sample %D/etc/gather/gather.cfg; then rm -f %D/etc/gather/gather.cfg; else echo "If permanently deleting this package, %D/etc/gather/gather.cfg must be removed manually."; fi Xetc/gather/gather.cfg.sample X@unexec if cmp -s %D/etc/gather/gather.map.sample %D/etc/gather/gather.map; then rm -f %D/etc/gather/gather.map; else echo "If permanently deleting this package, %D/etc/gather/gather.map must be removed manually."; fi Xetc/gather/gather.map.sample X@dirrmtry etc/gather 47af54646592937e7b9e9d3e82e54e3c exit --=-=-=--