# SliTaz package receipt.
PACKAGE="sagan"
VERSION="0.2.0"
CATEGORY="security"
SHORT_DESC="Multi-threaded, real time system and event log monitoring system"
MAINTAINER="erjo@slitaz.org"
WEB_SITE="http://sagan.softwink.com/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://sagan.softwink.com/download/$TARBALL"
DEPENDS="libesmtp libpcap libdnet liblognorm sagan-rules pcre"
BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev liblognorm-dev"
# Rules to configure and make the package.
compile_rules()
{
cd $src
./configure $CONFIGURE_ARGS \
--sysconfdir=/etc/sagan \
--disable-mysql \
--disable-postgresql \
--disable-prelude \
--disable-lognorm \
&& make && make install
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir $fs/usr
cp -a $install/usr/bin $fs/usr
cp -a $install/var $fs/
cp -a $install/etc $fs/
}