[csw-devel] SF.net SVN: gar:[4926] csw/mgar/pkg

skayser at users.sourceforge.net skayser at users.sourceforge.net
Mon May 18 11:37:22 CEST 2009


Revision: 4926
          http://gar.svn.sourceforge.net/gar/?rev=4926&view=rev
Author:   skayser
Date:     2009-05-18 09:37:21 +0000 (Mon, 18 May 2009)

Log Message:
-----------
multitail: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/multitail/
    csw/mgar/pkg/multitail/branches/
    csw/mgar/pkg/multitail/tags/
    csw/mgar/pkg/multitail/trunk/
    csw/mgar/pkg/multitail/trunk/Makefile
    csw/mgar/pkg/multitail/trunk/checksums
    csw/mgar/pkg/multitail/trunk/files/
    csw/mgar/pkg/multitail/trunk/files/patch-CSW.diff


Property changes on: csw/mgar/pkg/multitail/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/multitail/trunk/Makefile
===================================================================
--- csw/mgar/pkg/multitail/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/multitail/trunk/Makefile	2009-05-18 09:37:21 UTC (rev 4926)
@@ -0,0 +1,55 @@
+GARNAME = multitail
+GARVERSION = 5.2.2
+CATEGORIES = utils
+
+DESCRIPTION = View one or multiple files like the original tail program
+define BLURB
+  MultiTail lets you view one or multiple files like the original tail program.
+  The difference is that it creates multiple windows on your console (with
+  ncurses). It can also use colors while displaying the logfiles (through
+  regular expressions), for faster recognition of what is important and what 
+  not. It can also filter lines (again with regular expressions). It has 
+  interactive menus for editing given regular expressions and deleting and 
+  adding windows. One can also have windows with the output of shell scripts 
+  and other software. When viewing the output of external software, MultiTail 
+  can mimic the functionality of tools like 'watch' and such.
+endef
+
+MASTER_SITES = http://www.vanheusden.com/multitail/
+DISTFILES = $(GARNAME)-$(GARVERSION).tgz
+LICENSE = license.txt
+
+REQUIRED_PKGS = CSWncurses
+
+CONFIGURE_SCRIPTS = 
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+# Adjust path to configuration file and compiler options
+PATCHFILES = patch-CSW.diff
+
+# Use provided Solaris Makefile
+BUILD_ARGS  = -f makefile.solaris_sunwspro
+
+PROTOTYPE_FILTER  = awk '\
+	$$$$3 ~ /multitail.conf.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } \
+	 { print }'
+
+include gar/category.mk
+
+install-custom: EXTRA_DOCS = readme.txt thanks.txt manual.html
+install-custom: EXTRA_DATA = convert-geoip.pl convert-simple.pl
+install-custom: EXTRA_DATA += colors-example.pl colors-example.sh
+install-custom: DOCDEST = $(DESTDIR)$(docdir)/$(GARNAME)
+install-custom: DATADEST = $(DESTDIR)$(datadir)/$(GARNAME)
+install-custom:
+	@ginstall -d $(DESTDIR)$(bindir)
+	@ginstall -d $(DESTDIR)$(mandir)/man1
+	@ginstall -d $(DESTDIR)$(sysconfdir)
+	@ginstall -m 755 $(WORKSRC)/multitail $(DESTDIR)$(bindir)
+	@ginstall -m 644 $(WORKSRC)/multitail.1 $(DESTDIR)$(mandir)/man1
+	@ginstall -m 644 $(WORKSRC)/multitail.conf \
+		$(DESTDIR)$(sysconfdir)/multitail.conf.CSW
+	@ginstall -d $(DATADEST) $(DOCDEST)
+	@(cd $(WORKSRC); ginstall -m 644 $(EXTRA_DATA) $(DATADEST))
+	@(cd $(WORKSRC); ginstall -m 644 $(EXTRA_DOCS) $(DOCDEST))

Added: csw/mgar/pkg/multitail/trunk/checksums
===================================================================
--- csw/mgar/pkg/multitail/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/multitail/trunk/checksums	2009-05-18 09:37:21 UTC (rev 4926)
@@ -0,0 +1,2 @@
+ab2c198381e9ff6271ce56bdcb06f963  download/multitail-5.2.2.tgz
+6aed798703781c95a917699f9968f454  download/patch-CSW.diff

Added: csw/mgar/pkg/multitail/trunk/files/patch-CSW.diff
===================================================================
--- csw/mgar/pkg/multitail/trunk/files/patch-CSW.diff	                        (rev 0)
+++ csw/mgar/pkg/multitail/trunk/files/patch-CSW.diff	2009-05-18 09:37:21 UTC (rev 4926)
@@ -0,0 +1,77 @@
+diff -ur multitail-5.2.2.orig/help.c multitail-5.2.2/help.c
+--- multitail-5.2.2.orig/help.c	2009-03-07 13:52:50.561809407 +0100
++++ multitail-5.2.2/help.c	2009-03-07 13:54:21.839770461 +0100
+@@ -104,8 +104,8 @@
+ char *help_list_keybindings[] = {
+ 		"This screen lists the keybindings you defined in",
+ 		"the MultiTail configurationfile which is located",
+-		"in /etc/multitail.conf. The keybindings only",
+-		"work in the main screen.",
++		"in /opt/csw/etc/multitail.conf. The keybindings",
++		"only work in the main screen.",
+ 		"In this screen, you can press the followking",
+ 		"keys:",
+ 		" ^UP^    (cursor key UP) scroll up",
+diff -ur multitail-5.2.2.orig/makefile.solaris_sunwspro multitail-5.2.2/makefile.solaris_sunwspro
+--- multitail-5.2.2.orig/makefile.solaris_sunwspro	2009-03-07 13:52:50.277658365 +0100
++++ multitail-5.2.2/makefile.solaris_sunwspro	2009-03-07 14:07:17.458014674 +0100
+@@ -1,11 +1,9 @@
+ include version
+ 
+-DESTDIR=/
+-CONFIG_FILE=$(DESTDIR)/etc/multitail.conf
++CONFIG_FILE=$(prefix)/etc/multitail.conf
+ 
+-DEBUG=#-g -D_DEBUG #-pg #-fprofile-arcs
+-CFLAGS=${EXTRA_CFLAGS} -O2 -I/usr/local/include/ -D_STDC_C99 -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\"
+-LDFLAGS=${EXTRA_LDFLAGS} -L/usr/local/lib/ -lsocket -lpanel -lncurses -lnsl -lm $(DEBUG)
++CFLAGS +=${EXTRA_CFLAGS} -D_STDC_C99 -DVERSION=\"$(VERSION)\" -DCONFIG_FILE=\"$(CONFIG_FILE)\"
++LDFLAGS+=${EXTRA_LDFLAGS} -lsocket -lpanel -lncurses -lnsl -lm
+ 
+ OBJS=utils.o mt.o error.o my_pty.o term.o scrollback.o help.o mem.o cv.o color.o stripstring.o selbox.o misc.o ui.o exec.o diff.o config.o cmdline.o globals.o history.o
+ 
+diff -ur multitail-5.2.2.orig/manual.html multitail-5.2.2/manual.html
+--- multitail-5.2.2.orig/manual.html	2009-03-07 13:52:50.332585127 +0100
++++ multitail-5.2.2/manual.html	2009-03-07 14:00:28.008940908 +0100
+@@ -140,7 +140,7 @@
+ parameter it needs the name of a colorscheme. The colorschemes are read
+ from multitail.conf. In multitail.conf you set by entering regular
+ expressions what color to use for what "patterns". By default, MultiTail
+-looks for multitail.conf in the current directory and in the /etc directory.
++looks for multitail.conf in the /opt/csw/etc directory.
+ With the '-z' parameter you can explicitly define what file it should use.<BR>
+ An example:
+ <PRE>
+diff -ur multitail-5.2.2.orig/mt.c multitail-5.2.2/mt.c
+--- multitail-5.2.2.orig/mt.c	2009-03-07 13:52:49.901909226 +0100
++++ multitail-5.2.2/mt.c	2009-03-07 13:57:53.016591255 +0100
+@@ -2328,7 +2328,7 @@
+ 			printf("Could not determine size of file '%s' (which is supposed to be ", mail_spool_file);
+ 			printf("your mailfile): mail-check is disabled.\n");
+ 			printf("You can prevent this message by adding the line 'check_mail:0' ");
+-			printf("in /etc/multitail.conf or in .multitailrc in your home-directory.\n\n");
++			printf("in /opt/csw/etc/multitail.conf or in .multitailrc in your home-directory.\n\n");
+ 			printf("Press enter to continue...");
+ 			fflush(NULL);
+ 			getchar();
+diff -ur multitail-5.2.2.orig/multitail.conf multitail-5.2.2/multitail.conf
+--- multitail-5.2.2.orig/multitail.conf	2009-03-07 13:52:49.490040359 +0100
++++ multitail-5.2.2/multitail.conf	2009-03-07 13:56:34.117143611 +0100
+@@ -868,7 +868,7 @@
+ #              end offset: the position AFTER the last character for which the attributes are
+ #              valid
+ #              do NOT use spaces in each line!
+-colorscript:cscriptexample:/etc/multitail/colors-example.pl:this is a barely functional example script
++colorscript:cscriptexample:/opt/csw/share/multitail/colors-example.pl:this is a barely functional example script
+ #
+ #
+ # default colorschemes:
+@@ -1009,7 +1009,7 @@
+ convert:asterisk:epochtodate:^([0-9]*).([0-9]*)
+ convert:nagios.log:epochtodate:^.([0-9]*). 
+ convert:qmailtimestr:tai64todate:^(@[^ ]*)
+-convert:geoip:script:/etc/multitail/convert-geoip.pl:([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})
++convert:geoip:script:/opt/csw/share/multitail/convert-geoip.pl:([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})
+ #
+ # shell to invoke
+ shell:/bin/sh


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list