summaryrefslogtreecommitdiff
path: root/misc/xtail
diff options
context:
space:
mode:
authorsimonb <simonb@pkgsrc.org>2001-07-08 14:29:51 +0000
committersimonb <simonb@pkgsrc.org>2001-07-08 14:29:51 +0000
commit750578c2b2e0e28e1f78844b801f48ea6050d4ba (patch)
treee9d7632d638ec935ac2cca5f97384d4a5775d7ce /misc/xtail
parente78ef1421c6cfab7d114d4a7540d9788139c48fc (diff)
downloadpkgsrc-750578c2b2e0e28e1f78844b801f48ea6050d4ba.tar.gz
Import xtail - tail multiple files at once.
Diffstat (limited to 'misc/xtail')
-rw-r--r--misc/xtail/Makefile14
-rw-r--r--misc/xtail/distinfo6
-rw-r--r--misc/xtail/patches/patch-aa13
-rw-r--r--misc/xtail/patches/patch-ab22
-rw-r--r--misc/xtail/pkg/DESCR10
-rw-r--r--misc/xtail/pkg/PLIST3
6 files changed, 68 insertions, 0 deletions
diff --git a/misc/xtail/Makefile b/misc/xtail/Makefile
new file mode 100644
index 00000000000..ed22ef66f49
--- /dev/null
+++ b/misc/xtail/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $
+#
+
+DISTNAME= xtail-2.1
+CATEGORIES= misc
+MASTER_SITES= http://www.unicom.com/sw/xtail/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.unicom.com/sw/xtail/
+COMMENT= like "tail -f" on a bunch of files at once
+
+GNU_CONFIGURE= YES
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/xtail/distinfo b/misc/xtail/distinfo
new file mode 100644
index 00000000000..7fbec08371d
--- /dev/null
+++ b/misc/xtail/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $
+
+SHA1 (xtail-2.1.tar.gz) = 1188baaf47e19a1ed6176a17ee6d144078657c17
+Size (xtail-2.1.tar.gz) = 26769 bytes
+SHA1 (patch-aa) = 93ba9954b01cfc744adea0ace1d1d39a545459ac
+SHA1 (patch-ab) = 5c23b1fdb81ee6a47f3fe4a44066f7b63de6b8ee
diff --git a/misc/xtail/patches/patch-aa b/misc/xtail/patches/patch-aa
new file mode 100644
index 00000000000..b1b22b8e69e
--- /dev/null
+++ b/misc/xtail/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $
+
+--- xtail.h.orig Mon Jun 5 17:13:22 2000
++++ xtail.h Mon Jul 9 00:21:41 2001
+@@ -112,7 +112,7 @@
+ char *name; /* pathname to the entry */
+ int fd; /* opened fd, or <= 0 if not opened */
+ long size; /* size of entry last time checked */
+- long mtime; /* modification time last time checked */
++ time_t mtime; /* modification time last time checked */
+ };
+
+ struct entry_list {
diff --git a/misc/xtail/patches/patch-ab b/misc/xtail/patches/patch-ab
new file mode 100644
index 00000000000..933d1761519
--- /dev/null
+++ b/misc/xtail/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $
+
+--- miscfuncs.c.orig Mon Jun 5 17:13:22 2000
++++ miscfuncs.c Mon Jul 9 00:22:08 2001
+@@ -281,7 +281,7 @@
+ {
+ VOID *p;
+ if ((p = malloc(n)) == NULL) {
+- fprintf(stderr, "%s: malloc(%d) failed\n", Progname, n);
++ fprintf(stderr, "%s: malloc(%ld) failed\n", Progname, (long)n);
+ exit(2);
+ }
+ return p;
+@@ -291,7 +291,7 @@
+ {
+ VOID *p1;
+ if ((p1 = realloc(p, n)) == NULL) {
+- fprintf(stderr, "%s: realloc(%d) failed\n", Progname, n);
++ fprintf(stderr, "%s: realloc(%ld) failed\n", Progname, (long)n);
+ exit(2);
+ }
+ return p1;
diff --git a/misc/xtail/pkg/DESCR b/misc/xtail/pkg/DESCR
new file mode 100644
index 00000000000..1b7b5b5906a
--- /dev/null
+++ b/misc/xtail/pkg/DESCR
@@ -0,0 +1,10 @@
+"xtail" watches the growth of files. It's like running a "tail -f"
+on a bunch of files at once. The syntax is:
+
+ xtail name ...
+
+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).
diff --git a/misc/xtail/pkg/PLIST b/misc/xtail/pkg/PLIST
new file mode 100644
index 00000000000..80f2caf205b
--- /dev/null
+++ b/misc/xtail/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $
+bin/xtail
+man/man1/xtail.1