# SliTaz package receipt. PACKAGE="sagan-pgsql" VERSION="0.2.0" CATEGORY="security" SHORT_DESC="Real time system and event log monitoring system with PostgreSQL support" MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/quadrantsec/sagan/" SOURCE="sagan" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="https://download.quadrantsec.com/source/$SOURCE/$TARBALL" DEPENDS="libesmtp libpcap libdnet libpostgresqlclient liblognorm sagan-rules" BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev postgresql-dev liblognorm-dev" PROVIDE="sagan" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/current/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cd $src ./configure $CONFIGURE_ARGS \ --sysconfdir=/etc/sagan \ --with-postgresql-includes=/usr/include/postgresql \ --with-postgresql-libraries=/usr/lib/postgresql \ --disable-mysql \ --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/ }