diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-01-22 04:47:23 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-01-22 04:47:23 +0000 |
commit | b733011372e80957c1e9d3bbea3cbea90eb6c009 (patch) | |
tree | 58f3e4cf41c353062901bddf4358956fd0290951 /sysutils/bsdsar | |
parent | Update courier to 0.37.2; fix security bugs, update MIME handling, add (diff) |
Add bsdsar, System Activity Reporter for FreeBSD.
PR: ports/33702
Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com>
Reviewed and fixed by: knu
Notes
Notes:
svn path=/head/; revision=53516
Diffstat (limited to 'sysutils/bsdsar')
-rw-r--r-- | sysutils/bsdsar/Makefile | 30 | ||||
-rw-r--r-- | sysutils/bsdsar/distinfo | 1 | ||||
-rw-r--r-- | sysutils/bsdsar/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/bsdsar/pkg-deinstall | 28 | ||||
-rw-r--r-- | sysutils/bsdsar/pkg-descr | 8 | ||||
-rw-r--r-- | sysutils/bsdsar/pkg-install | 31 | ||||
-rw-r--r-- | sysutils/bsdsar/pkg-message | 11 | ||||
-rw-r--r-- | sysutils/bsdsar/pkg-plist | 4 |
8 files changed, 114 insertions, 0 deletions
diff --git a/sysutils/bsdsar/Makefile b/sysutils/bsdsar/Makefile new file mode 100644 index 000000000000..db8738f2c49c --- /dev/null +++ b/sysutils/bsdsar/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: bsdsar +# Date created: 12 June 2001 +# Whom: Yen-Ming Lee <leeym@leeym.com> +# +# $FreeBSD$ +# + +PORTNAME= bsdsar +PORTVERSION= 0.10 +CATEGORIES= sysutils +MASTER_SITES= http://www.googlebit.com/bsdsar/ + +MAINTAINER= leeym@leeym.com + +NO_BUILD= yes + +do-install: +.for file in bsdsar bsdsar_gather + ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor + ${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for file in CHANGELOG README + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/sysutils/bsdsar/distinfo b/sysutils/bsdsar/distinfo new file mode 100644 index 000000000000..ad76579c8c90 --- /dev/null +++ b/sysutils/bsdsar/distinfo @@ -0,0 +1 @@ +MD5 (bsdsar-0.10.tar.gz) = 4fb9facf5b9927b76db1da122ace585d diff --git a/sysutils/bsdsar/pkg-comment b/sysutils/bsdsar/pkg-comment new file mode 100644 index 000000000000..357a38a39298 --- /dev/null +++ b/sysutils/bsdsar/pkg-comment @@ -0,0 +1 @@ +System Activity Reporter for FreeBSD diff --git a/sysutils/bsdsar/pkg-deinstall b/sysutils/bsdsar/pkg-deinstall new file mode 100644 index 000000000000..c25cf656355b --- /dev/null +++ b/sysutils/bsdsar/pkg-deinstall @@ -0,0 +1,28 @@ +#!/bin/sh +# + +# Verify proper execution +# +if [ $# -ne 2 ]; then + echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2 + exit 1 +fi + +# Verify/process the command +# +case $2 in + DEINSTALL) + cat /etc/crontab | /usr/bin/sed -e '/bsdsar/d' > /tmp/crontab.bsdsar + mv /tmp/crontab.bsdsar /etc/crontab + ;; + POST-DEINSTALL) + : nothing to post-deinstall for this port + ;; + *) + echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2 + exit 1 + ;; +esac + +exit 0 + diff --git a/sysutils/bsdsar/pkg-descr b/sysutils/bsdsar/pkg-descr new file mode 100644 index 000000000000..23b0b913ef3d --- /dev/null +++ b/sysutils/bsdsar/pkg-descr @@ -0,0 +1,8 @@ +WWW: http://www.googlebit.com/bsdsar/ + +System Activity Reporter for FreeBSD 4.x systems. +Stores/shows information on network, cpu, memory, +swap, and NFS usage. + +Written by Eric Anderson +http://www.googlebit.com/bsdsar/ diff --git a/sysutils/bsdsar/pkg-install b/sysutils/bsdsar/pkg-install new file mode 100644 index 000000000000..49338687775e --- /dev/null +++ b/sysutils/bsdsar/pkg-install @@ -0,0 +1,31 @@ +#!/bin/sh +# + +PKG_PREFIX=${PKG_PREFIX:-/usr/local} + +# Verify proper execution +# +if [ $# -ne 2 ]; then + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 +fi + +# Verify/process the command +# +case $2 in + PRE-INSTALL) + : nothing to pre-install for this port + ;; + POST-INSTALL) + echo "Adding 2 lines to /etc/crontab ..." + echo "# bsdsar execution" >> /etc/crontab + echo "20,40 8-18 * * * root $PKG_PREFIX/bin/bsdsar_gather /var/log" >> /etc/crontab + echo "0 * * * * root $PKG_PREFIX/bin/bsdsar_gather /var/log" >> /etc/crontab + ;; + *) + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/sysutils/bsdsar/pkg-message b/sysutils/bsdsar/pkg-message new file mode 100644 index 000000000000..9a5f015023bf --- /dev/null +++ b/sysutils/bsdsar/pkg-message @@ -0,0 +1,11 @@ +==================================================== +NOTE: + +The following lines have been added to /etc/crontab: + +20,40 8-18 * * * root $PREFIX/bin/bsdsar_gather /var/log +0 * * * * root $PREFIX/bin/bsdsar_gather /var/log + +Where $PREFIX is typically "/usr/local". + +==================================================== diff --git a/sysutils/bsdsar/pkg-plist b/sysutils/bsdsar/pkg-plist new file mode 100644 index 000000000000..ddd99620b18b --- /dev/null +++ b/sysutils/bsdsar/pkg-plist @@ -0,0 +1,4 @@ +bin/bsdsar +bin/bsdsar_gather +%%PORTDOCS%%share/doc/bsdsar/CHANGELOG +%%PORTDOCS%%share/doc/bsdsar/README |