wok annotate sagan-mysql/receipt @ rev 25560
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 25 18:09:10 2023 +0000 (18 months ago) |
parents | df63c4ce07f8 |
children |
rev | line source |
---|---|
erjo@11418 | 1 # SliTaz package receipt. |
erjo@11418 | 2 |
erjo@11418 | 3 PACKAGE="sagan-mysql" |
erjo@11418 | 4 VERSION="0.2.0" |
erjo@11418 | 5 CATEGORY="security" |
erjo@11418 | 6 SHORT_DESC="Real time system and event log monitoring system with MySQL support" |
erjo@11418 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
pascal@25560 | 9 WEB_SITE="https://github.com/quadrantsec/sagan/" |
erjo@11418 | 10 SOURCE="sagan" |
erjo@11418 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@25442 | 12 WGET_URL="https://download.quadrantsec.com/source/$SOURCE/$TARBALL" |
erjo@11418 | 13 |
gokhlayeh@11485 | 14 DEPENDS="libesmtp libpcap libdnet libmysqlclient liblognorm sagan-rules pcre" |
erjo@11418 | 15 BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev mysql-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 |
erjo@11418 | 29 ./configure $CONFIGURE_ARGS \ |
erjo@11418 | 30 --sysconfdir=/etc/sagan \ |
erjo@11418 | 31 --disable-postgresql \ |
erjo@11418 | 32 --disable-prelude \ |
erjo@11418 | 33 --disable-lognorm \ |
erjo@11418 | 34 && make && make install |
erjo@11418 | 35 } |
erjo@11418 | 36 |
erjo@11418 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11418 | 38 genpkg_rules() |
erjo@11418 | 39 { |
erjo@11418 | 40 mkdir $fs/usr |
erjo@11418 | 41 |
erjo@11418 | 42 cp -a $install/usr/bin $fs/usr |
erjo@11418 | 43 cp -a $install/var $fs/ |
erjo@11418 | 44 cp -a $install/etc $fs/ |
erjo@11418 | 45 |
erjo@11418 | 46 } |