Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 1999 11:35:54 +0100
From:      Gianmarco Giovannelli <gmarco@giovannelli.it>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/9672: New port: misc/xtail
Message-ID:  <4.1.19990125113054.0094f670@194.184.65.4>

next in thread | raw e-mail | index | archive | help

>Number:         9672
>Category:       ports
>Synopsis:       New port: misc/xtail
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 25 02:40:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Gianmarco Giovannelli
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
<>
>Environment:

	FreeBSD gmarco.eclipse.org 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Thu Jan 21
16:37:48 CET 1999
	gmarco@gmarco.eclipse.org:/usr/src/sys/compile/GMARCO  i386


>Description:

	"xtail" watches the growth of files.  It's like running a "tail -f"
	on a bunch of files at once.  

	You can specify both filenames and directories on the command line.
	If you specify a directory, it watches all the files in that
	directory.  It will notice when new files are created (and start
	watching them) or when old files are deleted (and stop watching
	them).


>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:
#
#	xtail
#	xtail/files
#	xtail/files/md5
#	xtail/pkg
#	xtail/pkg/COMMENT
#	xtail/pkg/DESCR
#	xtail/pkg/PLIST
#	xtail/patches
#	xtail/patches/patch-aa
#	xtail/patches/patch-ac
#	xtail/patches/patch-ab
#	xtail/Makefile
#
echo c - xtail
mkdir -p xtail > /dev/null 2>&1
echo c - xtail/files
mkdir -p xtail/files > /dev/null 2>&1
echo x - xtail/files/md5
sed 's/^X//' >xtail/files/md5 << 'END-of-xtail/files/md5'
XMD5 (xtail.tar.gz) = 059f6abb404298422ed4c64342250332
END-of-xtail/files/md5
echo c - xtail/pkg
mkdir -p xtail/pkg > /dev/null 2>&1
echo x - xtail/pkg/COMMENT
sed 's/^X//' >xtail/pkg/COMMENT << 'END-of-xtail/pkg/COMMENT'
Xwatches the growth of files or directories.
END-of-xtail/pkg/COMMENT
echo x - xtail/pkg/DESCR
sed 's/^X//' >xtail/pkg/DESCR << 'END-of-xtail/pkg/DESCR'
X"xtail" watches the growth of files.  It's like running a "tail -f"
Xon a bunch of files at once.  
X
XYou can specify both filenames and directories on the command line.
XIf you specify a directory, it watches all the files in that
Xdirectory.  It will notice when new files are created (and start
Xwatching them) or when old files are deleted (and stop watching
Xthem).
X
XThis program is an oldie but goodie.  It was posted to comp.sources.misc
Xin July 1989 (see ftp.uu.net:/usenet/comp.sources.misc/volume7/xtail.Z).
XI remember posting an even earlier version to alt.sources.  It has
Xbeen published in the O'Reilly & Associates "Unix Power Tools"
Xcollection (book and CD-ROM).
XOver the years, some fly-by-night organizations (such as the MIT
XX Consortium and SGI) have tried to steal the "xtail" name.  Don't
Xbe fooled!  Insist on the original.
X
XThe 1989 release credited David Dykstra for his contributions.
X
XChip Rosenthal
X<chip@unicom.com>
X
X- ported to FreeBSD by Gianmarco (gmarco@giovannelli.it)
END-of-xtail/pkg/DESCR
echo x - xtail/pkg/PLIST
sed 's/^X//' >xtail/pkg/PLIST << 'END-of-xtail/pkg/PLIST'
Xbin/xtail
END-of-xtail/pkg/PLIST
echo c - xtail/patches
mkdir -p xtail/patches > /dev/null 2>&1
echo x - xtail/patches/patch-aa
sed 's/^X//' >xtail/patches/patch-aa << 'END-of-xtail/patches/patch-aa'
X--- Makefile.orig	Fri Jan 22 23:00:42 1999
X+++ Makefile	Fri Jan 22 23:16:15 1999
X@@ -7,7 +7,7 @@
X # and tune the configuration settings just below it.
X #
X 
X-include /local/libexec/Make.sysdefs
X+
X 
X ########################################
X #OPTIM = -O
END-of-xtail/patches/patch-aa
echo x - xtail/patches/patch-ac
sed 's/^X//' >xtail/patches/patch-ac << 'END-of-xtail/patches/patch-ac'
X--- xtail.1.orig	Fri Jan 22 23:08:36 1999
X+++ xtail.1	Fri Jan 22 23:12:55 1999
X@@ -23,9 +23,8 @@
X will watch for it and monitor it once created.  When switching files in
X the display, a banner showing the pathname of the file is printed.
X .P
X-An interrupt character (usually CTRL/C or DEL) will display a list of the
X-most recently modified files being watched.  Send a quit signal
X-(usually CTRL/backslash) to stop
X+A stop signal from tty (usually CTRL-Z) will display a list of the
X+most recently modified files being watched.  Send an interrupt character
(usually CTRL-C) to stop
X .IR xtail .
X .SH SEE ALSO
X tail(1)
END-of-xtail/patches/patch-ac
echo x - xtail/patches/patch-ab
sed 's/^X//' >xtail/patches/patch-ab << 'END-of-xtail/patches/patch-ab'
X--- xtail.c.orig	Fri Jan 22 23:01:05 1999
X+++ xtail.c	Fri Jan 22 23:15:09 1999
X@@ -134,7 +134,7 @@
X 
X 
X 	/*
X-	* Display what we are watching if a SIGINT was caught.
X+	* Display what we are watching if a SIGTSTP was caught.
X 	*/
X 	if (sigcaught) {
X 	    show_status();
X@@ -354,12 +354,12 @@
X 
X void sigcatcher(int sig)
X {
X-    if (sig == SIGQUIT)
X+    if (sig == SIGINT)
X 	(void) exit(0);
X     sigcaught = sig;
X #ifdef STATUS_ENAB
X+    (void) signal(SIGTSTP, sigcatcher);
X     (void) signal(SIGINT, sigcatcher);
X-    (void) signal(SIGQUIT, sigcatcher);
X #endif
X }
X 
END-of-xtail/patches/patch-ab
echo x - xtail/Makefile
sed 's/^X//' >xtail/Makefile << 'END-of-xtail/Makefile'
X# New ports collection makefile for:   xtail
X# Version required:    0.1
X# Date created:        20 January 1999
X# Whom:                gmarco@scotty.masternet.it
X#
X# $Id$
X#
X
XDISTNAME=  xtail
XPKGNAME=   xtail-0.1
XCATEGORIES=    misc
XMASTER_SITES=  http://www.giovannelli.it/~gmarco/files/
X
XMAINTAINER=    freebsd@scotty.masternet.it
X
XNO_WRKSUBDIR=   yes
X
XMAN1=	xtail.1
X
Xdo-install:
X
X	${INSTALL_PROGRAM} ${WRKSRC}/xtail ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/xtail.1 ${PREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-xtail/Makefile
exit
	



Best Regards,
Gianmarco Giovannelli (http://www.giovannelli.it/~gmarco)
"Unix expert since yesterday"


>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?4.1.19990125113054.0094f670>