Date: Tue, 8 Jan 2002 23:14:42 +0800 (CST) From: Yen-Ming Lee <leeym@utopia.leeym.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/33702: new port: sysutils/bsdsar Message-ID: <20020108151442.E47C9C3B01@utopia.leeym.com>
next in thread | raw e-mail | index | archive | help
>Number: 33702 >Category: ports >Synopsis: new port: sysutils/bsdsar >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 08 07:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD utopia.leeym.com 4.4-STABLE FreeBSD 4.4-STABLE #81: Thu Dec 20 05:34:09 CST 2001 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386 >Description: 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/ >How-To-Repeat: >Fix: # 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: # # bsdsar # bsdsar/CVS # bsdsar/CVS/Root # bsdsar/CVS/Repository # bsdsar/CVS/Entries # bsdsar/Makefile # bsdsar/distinfo # bsdsar/pkg-comment # bsdsar/pkg-descr # bsdsar/pkg-plist # bsdsar/pkg-message # bsdsar/pkg-install # bsdsar/pkg-deinstall # echo c - bsdsar mkdir -p bsdsar > /dev/null 2>&1 echo c - bsdsar/CVS mkdir -p bsdsar/CVS > /dev/null 2>&1 echo x - bsdsar/CVS/Root sed 's/^X//' >bsdsar/CVS/Root << 'END-of-bsdsar/CVS/Root' X:pserver:leeym@utopia.leeym.com:/home/services/cvs END-of-bsdsar/CVS/Root echo x - bsdsar/CVS/Repository sed 's/^X//' >bsdsar/CVS/Repository << 'END-of-bsdsar/CVS/Repository' Xports/sysutils/bsdsar END-of-bsdsar/CVS/Repository echo x - bsdsar/CVS/Entries sed 's/^X//' >bsdsar/CVS/Entries << 'END-of-bsdsar/CVS/Entries' X/Makefile/1.2/Fri Nov 23 18:10:45 2001// X/distinfo/1.2/Fri Nov 23 15:06:22 2001// X/pkg-comment/1.2/Mon Oct 15 17:49:18 2001// X/pkg-descr/1.2/Mon Oct 15 17:49:18 2001// X/pkg-plist/1.2/Fri Nov 23 15:13:33 2001// XD END-of-bsdsar/CVS/Entries echo x - bsdsar/Makefile sed 's/^X//' >bsdsar/Makefile << 'END-of-bsdsar/Makefile' X# New ports collection makefile for: bsdsar X# Date created: 12 June 2001 X# Whom: Yen-Ming Lee <leeym@leeym.com> X# X# $FreeBSD$ X# X XPORTNAME= bsdsar XPORTVERSION= 0.10 XCATEGORIES= sysutils XMASTER_SITES= http://www.googlebit.com/bsdsar/ X XMAINTAINER= leeym@leeym.com X XNO_BUILD= yes X Xdo-install: X.for file in bsdsar bsdsar_gather X ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin X.endfor X ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL X ${CAT} ${PKGMESSAGE} X Xpost-deinstall: X ${SH} ${PKGDEINSTALL} ${PKGNAME} DEINSTALL X X.include <bsd.port.mk> END-of-bsdsar/Makefile echo x - bsdsar/distinfo sed 's/^X//' >bsdsar/distinfo << 'END-of-bsdsar/distinfo' XMD5 (bsdsar-0.10.tar.gz) = 4fb9facf5b9927b76db1da122ace585d END-of-bsdsar/distinfo echo x - bsdsar/pkg-comment sed 's/^X//' >bsdsar/pkg-comment << 'END-of-bsdsar/pkg-comment' XSystem Activity Reporter for FreeBSD END-of-bsdsar/pkg-comment echo x - bsdsar/pkg-descr sed 's/^X//' >bsdsar/pkg-descr << 'END-of-bsdsar/pkg-descr' XWWW: http://www.googlebit.com/bsdsar/ X XSystem Activity Reporter for FreeBSD 4.x systems. XStores/shows information on network, cpu, memory, Xswap, and NFS usage. X XWritten by Eric Anderson Xhttp://www.googlebit.com/bsdsar/ END-of-bsdsar/pkg-descr echo x - bsdsar/pkg-plist sed 's/^X//' >bsdsar/pkg-plist << 'END-of-bsdsar/pkg-plist' Xbin/bsdsar Xbin/bsdsar_gather END-of-bsdsar/pkg-plist echo x - bsdsar/pkg-message sed 's/^X//' >bsdsar/pkg-message << 'END-of-bsdsar/pkg-message' X==================================================== XNOTE: X XThe following lines have been added to /etc/crontab X X20,40 8-18 * * * root /usr/local/bin/bsdsar_gather /var/log X0 * * * * root /usr/local/bin/bsdsar_gather /var/log X X==================================================== X END-of-bsdsar/pkg-message echo x - bsdsar/pkg-install sed 's/^X//' >bsdsar/pkg-install << 'END-of-bsdsar/pkg-install' X#!/bin/sh X# X X# X X# Verify proper execution X# Xif [ $# -ne 2 ]; then X echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 X exit 1 Xfi X X# Verify/process the command X# Xcase $2 in X PRE-INSTALL) X : nothing to pre-install for this port X ;; X POST-INSTALL) X echo "Adding 2 lines to /etc/crontab ..." X echo "# bsdsar execution" >> /etc/crontab X echo "20,40 8-18 * * * root /usr/local/bin/bsdsar_gather /var/log" >> /etc/crontab X echo "0 * * * * root /usr/local/bin/bsdsar_gather /var/log" >> /etc/crontab X ;; X *) X echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 X exit 1 X ;; Xesac X Xexit 0 X X X X END-of-bsdsar/pkg-install echo x - bsdsar/pkg-deinstall sed 's/^X//' >bsdsar/pkg-deinstall << 'END-of-bsdsar/pkg-deinstall' X#!/bin/sh X# X X# Verify proper execution X# Xif [ $# -ne 2 ]; then X echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2 X exit 1 Xfi X X# Verify/process the command X# Xcase $2 in X DEINSTALL) X cat /etc/crontab | /usr/bin/sed -e 's/.*bsdsar.*//' > /tmp/crontab.bsdsar X mv /tmp/crontab.bsdsar /etc/crontab X ;; X POST-DEINSTALL) X : nothing to post-deinstall for this port X ;; X *) X echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2 X exit 1 X ;; Xesac X Xexit 0 X END-of-bsdsar/pkg-deinstall exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020108151442.E47C9C3B01>