# HG changeset patch # User Eric Joseph-Alexandre # Date 1241617693 -7200 # Node ID 0a0be26786174100b79edb913b64a846cadb688c # Parent 15d1eba57fcf643136ad0a2025e3134a2ae4ef3d Add: multitail (multiple files viewer) diff -r 15d1eba57fcf -r 0a0be2678617 multitail/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multitail/receipt Wed May 06 15:48:13 2009 +0200 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="multitail" +VERSION="5.2.2" +CATEGORY="system-tools" +SHORT_DESC="Monitor multiple log files." +MAINTAINER="erjo@slitaz.org" +DEPENDS="ncurses" +BUILD_DEPENDS="ncurses-dev" +TARBALL="$PACKAGE-$VERSION.tgz" +WEB_SITE="http://www.vanheusden.com/multitail/" +WGET_URL="http://www.vanheusden.com/multitail/$TARBALL" +CONFIG_FILES="/etc/multitail.conf" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + if [ ! -f done.tail_busybox.patch ]; then + patch -p1 -i ../stuff/tail_busybox.patch && \ + touch done.tail_busybox.patch + fi + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/etc + cp -a $src/$PACKAGE $fs/usr/bin + cp -a $src/$PACKAGE.conf $fs/etc + strip -s $fs/usr/bin/* + + # Set minimum config. + sed -i 's/check_mail:5/check_mail:0/' $fs/etc/multitail.conf +} + diff -r 15d1eba57fcf -r 0a0be2678617 multitail/stuff/tail_busybox.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multitail/stuff/tail_busybox.patch Wed May 06 15:48:13 2009 +0200 @@ -0,0 +1,40 @@ +--- multitail-5.2.2.ori/Makefile Mon May 19 11:19:09 2008 ++++ multitail-5.2.2/Makefile Wed May 6 15:37:03 2009 +@@ -6,7 +6,7 @@ + DEBUG=-g # -D_DEBUG # -pg # -D_DEBUG #-pg -W -pedantic # -pg #-fprofile-arcs + LDFLAGS+=-lpanel -lncurses -lutil -lm $(DEBUG) -rdynamic + # LDFLAGS+=-lc_p -lpanel_g -lncurses_g -lutil -lm -pg -g -rdynamic +-CFLAGS+=-funsigned-char -D`uname` -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\" ++CFLAGS+=-funsigned-char -D`uname` -D__Busybox__ -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\" + + OBJS=utils.o mt.o error.o my_pty.o term.o scrollback.o help.o mem.o cv.o selbox.o stripstring.o color.o misc.o ui.o exec.o diff.o config.o cmdline.o globals.o history.o + +--- multitail-5.2.2.ori/exec.c Mon May 19 11:19:09 2008 ++++ multitail-5.2.2/exec.c Wed May 6 15:34:59 2009 +@@ -77,13 +77,15 @@ + posix_version = getenv("_POSIX2_VERSION"); + + /* follow filename is only supported on *BSD and Linux */ +-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(linux) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__GNU__) ++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(linux) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__GNU__) || defined(__Busybox__) + if (follow_filename) + { +-#if defined(linux) || defined(__CYGWIN__) || defined(__GNU__) ++#if !defined(__Busybox__) && (defined(linux) || defined(__CYGWIN__) || defined(__GNU__)) + pars[npars++] = "--follow=name"; + #elif defined(__OpenBSD__) + pars[npars++] = "-f"; ++#elif defined(__Busybox__) ++ pars[npars++] = "-f"; + #else + pars[npars++] = "-F"; + #endif +@@ -95,7 +97,7 @@ + else + #endif + { +-#if !defined(linux) && !defined(__CYGWIN__) && !defined(__GNU__) ++#if !defined(linux) && !defined(__CYGWIN__) && !defined(__GNU__) && !defined(__Busybox__) + if (follow_filename && gnu_tail) + pars[npars++] = "--follow=name"; + #endif