wok annotate sagan-pgsql/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (2022-06-13)
parents 408c87fa22ca
children df63c4ce07f8
rev   line source
erjo@11418 1 # SliTaz package receipt.
erjo@11418 2
erjo@11418 3 PACKAGE="sagan-pgsql"
erjo@11418 4 VERSION="0.2.0"
erjo@11418 5 CATEGORY="security"
erjo@11419 6 SHORT_DESC="Real time system and event log monitoring system with PostgreSQL support"
erjo@11418 7 MAINTAINER="erjo@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
erjo@11418 9 WEB_SITE="http://sagan.softwink.com/"
erjo@11418 10 SOURCE="sagan"
erjo@11418 11 TARBALL="$SOURCE-$VERSION.tar.gz"
erjo@11418 12 WGET_URL="http://sagan.softwink.com/download/$TARBALL"
erjo@11418 13
erjo@11418 14 DEPENDS="libesmtp libpcap libdnet libpostgresqlclient liblognorm sagan-rules"
erjo@11418 15 BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev postgresql-dev liblognorm-dev"
erjo@11418 16 PROVIDE="sagan"
erjo@11418 17
pascal@24425 18 # What is the latest version available today?
pascal@24425 19 current_version()
pascal@24425 20 {
pascal@24425 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 22 sed "/current/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 23 }
pascal@24425 24
erjo@11418 25 # Rules to configure and make the package.
erjo@11418 26 compile_rules()
erjo@11418 27 {
slaxemulator@11425 28 cd $src
slaxemulator@11425 29 ./configure $CONFIGURE_ARGS \
erjo@11418 30 --sysconfdir=/etc/sagan \
erjo@11418 31 --with-postgresql-includes=/usr/include/postgresql \
erjo@11418 32 --with-postgresql-libraries=/usr/lib/postgresql \
erjo@11418 33 --disable-mysql \
erjo@11418 34 --disable-prelude \
erjo@11418 35 --disable-lognorm \
erjo@11418 36 && make && make install
erjo@11418 37 }
erjo@11418 38
erjo@11418 39 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11418 40 genpkg_rules()
erjo@11418 41 {
erjo@11418 42 mkdir $fs/usr
erjo@11418 43
erjo@11418 44 cp -a $install/usr/bin $fs/usr
erjo@11418 45 cp -a $install/var $fs/
erjo@11418 46 cp -a $install/etc $fs/
erjo@11418 47 }