ports/143934: New port: sysutils/gather utility to store and display system statistics
Mikolaj Golub
to.my.trociny at gmail.com
Mon Feb 15 21:50:02 UTC 2010
The following reply was made to PR ports/143934; it has been noted by GNATS.
From: Mikolaj Golub <to.my.trociny at gmail.com>
To: lwhsu at FreeBSD.org
Cc: freebsd-ports-bugs at FreeBSD.org, bug-followup at FreeBSD.org
Subject: Re: ports/143934: New port: sysutils/gather utility to store and display system statistics
Date: Mon, 15 Feb 2010 23:46:38 +0200
--=-=-=
On Mon, 15 Feb 2010 11:53:49 GMT lwhsu at 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 <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=${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 <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 %%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 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
--=-=-=--
More information about the freebsd-ports-bugs
mailing list