wok-6.x view sagan-mysql/receipt @ rev 25563
New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.37
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri May 05 18:12:18 2023 +0200 (18 months ago) |
parents | df63c4ce07f8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="sagan-mysql"
4 VERSION="0.2.0"
5 CATEGORY="security"
6 SHORT_DESC="Real time system and event log monitoring system with MySQL support"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/quadrantsec/sagan/"
10 SOURCE="sagan"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="https://download.quadrantsec.com/source/$SOURCE/$TARBALL"
14 DEPENDS="libesmtp libpcap libdnet libmysqlclient liblognorm sagan-rules pcre"
15 BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev mysql-dev liblognorm-dev"
16 PROVIDE="sagan"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/current/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 ./configure $CONFIGURE_ARGS \
30 --sysconfdir=/etc/sagan \
31 --disable-postgresql \
32 --disable-prelude \
33 --disable-lognorm \
34 && make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/var $fs/
44 cp -a $install/etc $fs/
46 }