ports/143934: New port: sysutils/gather utility to store and display system statistics

Mikolaj Golub to.my.trociny at gmail.com
Sun Feb 14 16:40:03 UTC 2010


>Number:         143934
>Category:       ports
>Synopsis:       New port:  sysutils/gather utility to store and display system statistics
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 14 16:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Mikolaj Golub
>Release:        
>Organization:
>Environment:
>Description:
gather utility can be used to store system statistics provided by
variety of system utils and display it. It is just a wrapper around
these utilities to make a work with system statistics more convenient.

WWW: http://gatherit.googlecode.com/
Author: Mikolaj Golub <to.my.trociny at gmail.com>

>How-To-Repeat:

>Fix:


Patch attached with submission 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:
#
#	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 <to.my.trociny at gmail.com>
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	gather
XPORTVERSION=	0.3
XCATEGORIES=	sysutils
XMASTER_SITES=	GOOGLE_CODE
X
XMAINTAINER=	to.my.trociny at 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=${LOCALBASE}/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(${LOCALBASE}/etc/gather)
X	@${MKDIR} ${LOCALBASE}/etc/gather
X.endif
X	@${INSTALL_DATA} ${WRKSRC}/gather.cfg ${LOCALBASE}/etc/gather/gather.cfg.sample
X.if !exists(${CONFDIR}/gather.cfg)
X	@${INSTALL_DATA} ${WRKSRC}/gather.cfg ${LOCALBASE}/etc/gather/gather.cfg
X.endif
X	@${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${LOCALBASE}/etc/gather/gather.map.sample
X.if !exists(${LOCALBASE}/etc/gather/gather.cfg)
X	@${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${LOCALBASE}/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 <bsd.port.mk>
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 <to.my.trociny at gmail.com>
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 %%LOCALBASE%%/bin/gather collect
X  18  0 * * * root %%LOCALBASE%%/bin/gather expire 7
X
XBefore adding this, please, review the configuration in
X%%LOCALBASE%%/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 at 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 at 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 at dirrmtry etc/gather
47af54646592937e7b9e9d3e82e54e3c
exit



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



More information about the freebsd-ports-bugs mailing list