# SliTaz package receipt.

PACKAGE="multitail"
VERSION="5.2.8"
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
	
	# Set minimum config.
	sed -i 's/check_mail:5/check_mail:0/' $fs/etc/multitail.conf
}