wok view sagan/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (2 months ago)
parents 5c0ba7968d4c
children
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="https://github.com/quadrantsec/sagan/"
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 }