wok-6.x view sagan-pgsql/receipt @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (19 months ago) |
parents | 453c249b6219 |
children | 9600878fc758 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sagan-pgsql"
4 VERSION="0.2.0"
5 CATEGORY="security"
6 SHORT_DESC="Real time system and event log monitoring system with PostgreSQL support"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://sagan.softwink.com/"
10 SOURCE="sagan"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="https://download.quadrantsec.com/source/$SOURCE/$TARBALL"
14 DEPENDS="libesmtp libpcap libdnet libpostgresqlclient liblognorm sagan-rules"
15 BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev postgresql-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 --with-postgresql-includes=/usr/include/postgresql \
32 --with-postgresql-libraries=/usr/lib/postgresql \
33 --disable-mysql \
34 --disable-prelude \
35 --disable-lognorm \
36 && make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/var $fs/
46 cp -a $install/etc $fs/
47 }