wok rev 2904

Add: multitail (multiple files viewer)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed May 06 15:48:13 2009 +0200 (2009-05-06)
parents 15d1eba57fcf
children 2c17053d6634
files multitail/receipt multitail/stuff/tail_busybox.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/multitail/receipt	Wed May 06 15:48:13 2009 +0200
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="multitail"
     1.7 +VERSION="5.2.2"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Monitor multiple log files."
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS="ncurses"
    1.12 +BUILD_DEPENDS="ncurses-dev"
    1.13 +TARBALL="$PACKAGE-$VERSION.tgz"
    1.14 +WEB_SITE="http://www.vanheusden.com/multitail/"
    1.15 +WGET_URL="http://www.vanheusden.com/multitail/$TARBALL"
    1.16 +CONFIG_FILES="/etc/multitail.conf"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	if [ ! -f done.tail_busybox.patch ]; then
    1.23 +		patch -p1 -i ../stuff/tail_busybox.patch &&  \
    1.24 +			touch done.tail_busybox.patch
    1.25 +	fi
    1.26 +	make
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr/bin $fs/etc
    1.33 +	cp -a $src/$PACKAGE  $fs/usr/bin
    1.34 +	cp -a $src/$PACKAGE.conf $fs/etc
    1.35 +	strip -s $fs/usr/bin/*
    1.36 +	
    1.37 +	# Set minimum config.
    1.38 +	sed -i 's/check_mail:5/check_mail:0/' $fs/etc/multitail.conf
    1.39 +}
    1.40 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/multitail/stuff/tail_busybox.patch	Wed May 06 15:48:13 2009 +0200
     2.3 @@ -0,0 +1,40 @@
     2.4 +--- multitail-5.2.2.ori/Makefile	Mon May 19 11:19:09 2008
     2.5 ++++ multitail-5.2.2/Makefile	Wed May  6 15:37:03 2009
     2.6 +@@ -6,7 +6,7 @@
     2.7 + DEBUG=-g # -D_DEBUG # -pg #  -D_DEBUG  #-pg -W -pedantic # -pg #-fprofile-arcs
     2.8 + LDFLAGS+=-lpanel -lncurses -lutil -lm $(DEBUG) -rdynamic
     2.9 + # LDFLAGS+=-lc_p -lpanel_g -lncurses_g -lutil -lm -pg -g -rdynamic
    2.10 +-CFLAGS+=-funsigned-char -D`uname` -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\"
    2.11 ++CFLAGS+=-funsigned-char -D`uname` -D__Busybox__ -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\"
    2.12 + 
    2.13 + 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
    2.14 + 
    2.15 +--- multitail-5.2.2.ori/exec.c	Mon May 19 11:19:09 2008
    2.16 ++++ multitail-5.2.2/exec.c	Wed May  6 15:34:59 2009
    2.17 +@@ -77,13 +77,15 @@
    2.18 + 		posix_version = getenv("_POSIX2_VERSION");
    2.19 + 
    2.20 + 		/* follow filename is only supported on *BSD and Linux */
    2.21 +-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(linux) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__GNU__)
    2.22 ++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(linux) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__GNU__) || defined(__Busybox__)
    2.23 + 		if (follow_filename)
    2.24 + 		{
    2.25 +-#if defined(linux) || defined(__CYGWIN__) || defined(__GNU__)
    2.26 ++#if !defined(__Busybox__) && (defined(linux) || defined(__CYGWIN__) || defined(__GNU__))
    2.27 + 			pars[npars++] = "--follow=name";
    2.28 + #elif defined(__OpenBSD__)
    2.29 + 			pars[npars++] = "-f";
    2.30 ++#elif defined(__Busybox__)
    2.31 ++			pars[npars++] = "-f";
    2.32 + #else
    2.33 + 			pars[npars++] = "-F";
    2.34 + #endif
    2.35 +@@ -95,7 +97,7 @@
    2.36 + 		else
    2.37 + #endif
    2.38 + 		{
    2.39 +-#if !defined(linux) && !defined(__CYGWIN__) && !defined(__GNU__)
    2.40 ++#if !defined(linux) && !defined(__CYGWIN__) && !defined(__GNU__) && !defined(__Busybox__)
    2.41 + 			if (follow_filename && gnu_tail)
    2.42 + 				pars[npars++] = "--follow=name";
    2.43 + #endif