From owner-freebsd-ports Mon Mar 11 1:40:11 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A853337B41B for ; Mon, 11 Mar 2002 01:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2B9e0r26787; Mon, 11 Mar 2002 01:40:00 -0800 (PST) (envelope-from gnats) Received: from freebsd.unixporting.com (h24-78-81-6.vc.shawcable.net [24.78.81.6]) by hub.freebsd.org (Postfix) with ESMTP id 3F01A37B404 for ; Mon, 11 Mar 2002 01:30:28 -0800 (PST) Received: (from murray@localhost) by freebsd.unixporting.com (8.11.6/8.11.6) id g2B9V0J34386; Mon, 11 Mar 2002 01:31:00 -0800 (PST) (envelope-from murray) Message-Id: <200203110931.g2B9V0J34386@freebsd.unixporting.com> Date: Mon, 11 Mar 2002 01:31:00 -0800 (PST) From: Murray Nesbitt Reply-To: Murray Nesbitt To: FreeBSD-gnats-submit@freebsd.org Cc: murray@unixporting.com X-Send-Pr-Version: 3.113 Subject: ports/35768: New port: 'Flasher' monitors log or mail files for writes, and flashes a keyboard LED. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35768 >Category: ports >Synopsis: New port: 'Flasher' monitors log or mail files for writes, and flashes a keyboard LED. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 11 01:40:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Murray Nesbitt >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD freebsd.unixporting.com 4.5-STABLE FreeBSD 4.5-STABLE #2: Thu Mar 7 00:09:37 PST 2002 root@freebsd.unixporting.com:/usr/src/sys/compile/MYKERNEL.t2p4 i386 >Description: Flasher monitors changes to one or more files, and indicates the number of writes to these files by briefly flashing a console LED once for each write. The flashing sequence is repeated, after a brief pause, until the files have been read. As the files are subsequently read, the number of LED flashes is reduced. When all monitored files have been read, the console LED will be disabled. The most obvious use is to monitor specific system log or mail files. Multiple LEDs can be used. Each possible LED (-c, -n or -s) takes a list of colon-separated file arguments. For example, when invoked as: # ./flasher -s /var/log/messages:/var/mail/root the Scroll Lock LED will flash once for each write made to either of these files, until the files are read. When /var/log/messages has been read, the Scroll Lock LED will continue to flash once for each write that has been made to /var/mail/root, until it also has been read. The list of files can include files that don't yet exist. >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: # # flasher-1.2 # flasher-1.2/Makefile # flasher-1.2/pkg-comment # flasher-1.2/pkg-descr # flasher-1.2/pkg-plist # flasher-1.2/distinfo # echo c - flasher-1.2 mkdir -p flasher-1.2 > /dev/null 2>&1 echo x - flasher-1.2/Makefile sed 's/^X//' >flasher-1.2/Makefile << 'END-of-flasher-1.2/Makefile' X# New ports collection makefile for: flasher X# Date created: 10 March 2002 X# Whom: Murray Nesbitt X# X# $FreeBSD$ X# X XPORTNAME= flasher XPORTVERSION= 1.2 XCATEGORIES= sysutils XMASTER_SITES= http://www.unixporting.com/downloads/ XDISTNAME= flasher-1.2 X XMAINTAINER= murray@unixporting.com X XMAN1= flasher.1 XMANCOMPRESSED= yes X X.include X END-of-flasher-1.2/Makefile echo x - flasher-1.2/pkg-comment sed 's/^X//' >flasher-1.2/pkg-comment << 'END-of-flasher-1.2/pkg-comment' XMonitors log or mail files for writes, and flashes a keyboard LED. END-of-flasher-1.2/pkg-comment echo x - flasher-1.2/pkg-descr sed 's/^X//' >flasher-1.2/pkg-descr << 'END-of-flasher-1.2/pkg-descr' XFlasher monitors changes to one or more files, and indicates the Xnumber of writes to these files by briefly flashing a console LED Xonce for each write. The flashing sequence is repeated, after a Xbrief pause, until the files have been read. As the files are Xsubsequently read, the number of LED flashes is reduced. When all Xmonitored files have been read, the console LED will be disabled. X XThe most obvious use is to monitor specific system log or mail files. X XMultiple LEDs can be used. Each possible LED (-c, -n or -s) takes Xa list of colon-separated file arguments. For example, when invoked Xas: X X # ./flasher -s /var/log/messages:/var/mail/root X Xthe Scroll Lock LED will flash once for each write made to either Xof these files, until the files are read. When /var/log/messages Xhas been read, the Scroll Lock LED will continue to flash once for Xeach write that has been made to /var/mail/root, until it also has Xbeen read. X XThe list of files can include files that don't yet exist. X XWWW: http://www.unixporting.com/downloads/flasher/ X X- Murray Nesbitt Xmurray@unixporting.com X END-of-flasher-1.2/pkg-descr echo x - flasher-1.2/pkg-plist sed 's/^X//' >flasher-1.2/pkg-plist << 'END-of-flasher-1.2/pkg-plist' Xsbin/flasher END-of-flasher-1.2/pkg-plist echo x - flasher-1.2/distinfo sed 's/^X//' >flasher-1.2/distinfo << 'END-of-flasher-1.2/distinfo' XMD5 (flasher-1.2.tar.gz) = c07923c7e83f8395bf7c6c2512642545 END-of-flasher-1.2/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message