wok-6.x view sagan/receipt @ rev 25375
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 30 08:30:06 2022 +0000 (2022-07-30) |
parents | 453c249b6219 |
children | 9600878fc758 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sagan"
4 VERSION="0.2.0"
5 CATEGORY="security"
6 SHORT_DESC="Multi-threaded, real time system and event log monitoring system"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://sagan.softwink.com/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://download.quadrantsec.com/source/sagan/$TARBALL"
13 DEPENDS="libesmtp libpcap libdnet liblognorm sagan-rules pcre"
14 BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev liblognorm-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/current/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure $CONFIGURE_ARGS \
28 --sysconfdir=/etc/sagan \
29 --disable-mysql \
30 --disable-postgresql \
31 --disable-prelude \
32 --disable-lognorm \
33 && make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/var $fs/
43 cp -a $install/etc $fs/
45 }