Bug 9672 - New port: misc/xtail
Summary: New port: misc/xtail
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-01-25 10:40 UTC by Gianmarco Giovannelli
Modified: 1999-04-02 05:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianmarco Giovannelli 1999-01-25 10:40:00 UTC
	"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).

Fix: 

Best Regards,
Gianmarco Giovannelli (http://www.giovannelli.it/~gmarco)
"Unix expert since yesterday"--W1S0pAVTYyOcNnRg2MzNp9YA2nbjoyVGJFdX7G8d4ryLYmLS
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.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:
#
#	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
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-04-02 05:26:04 UTC
State Changed
From-To: open->closed

New port committed, thanks!