wok-next annotate sagan/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents d5aab818505e
children
rev   line source
al@20534 1 # SliTaz package receipt v2.
erjo@11418 2
erjo@11418 3 PACKAGE="sagan"
erjo@11418 4 VERSION="0.2.0"
erjo@11418 5 CATEGORY="security"
erjo@11418 6 SHORT_DESC="Multi-threaded, real time system and event log monitoring system"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
al@21032 9 WEB_SITE="http://sagan.quadrantsec.com/"
al@20534 10
erjo@11418 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@11418 12 WGET_URL="http://sagan.softwink.com/download/$TARBALL"
erjo@11418 13
al@20749 14 BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev liblognorm-dev pcre-dev \
al@20749 15 mysql-dev postgresql-dev"
al@21020 16 SPLIT="$PACKAGE-mysql:mysql $PACKAGE-pgsql:pgsql"
erjo@11418 17
al@20534 18 compile_rules() {
al@20749 19 case $SET in
al@20749 20 '') SET_ARGS="--disable-mysql --disable-postgresql";;
al@20749 21 mysql) SET_ARGS="--disable-postgresql";;
al@20749 22 pgsql) SET_ARGS="--disable-mysql \
al@20749 23 --with-postgresql-includes=/usr/include/postgresql \
al@20749 24 --with-postgresql-libraries=/usr/lib/postgresql";;
al@20749 25 esac
al@20749 26
al@20534 27 ./configure \
erjo@11418 28 --sysconfdir=/etc/sagan \
erjo@11418 29 --disable-prelude \
erjo@11418 30 --disable-lognorm \
al@20749 31 $SET_ARGS \
al@20534 32 $CONFIGURE_ARGS &&
al@20534 33 make &&
al@20534 34 make install
erjo@11418 35 }
erjo@11418 36
al@20534 37 genpkg_rules() {
al@20749 38 case $PACKAGE in
al@20749 39 sagan)
al@20749 40 copy @std
al@20749 41 DEPENDS="libesmtp libpcap libpcre libdnet sagan-rules"
al@20749 42 ;;
al@20749 43 sagan-mysql)
al@20749 44 copy @std
al@20749 45 DEPENDS="libesmtp libmysqlclient libpcap libpcre libdnet \
al@20749 46 sagan-rules"
al@20749 47 CATEGORY="security|with MySQL support"
al@20749 48 PROVIDE="sagan"
al@20749 49 ;;
al@20749 50 sagan-pgsql)
al@20749 51 copy @std
al@20749 52 DEPENDS="libesmtp libpcap libpcre libpostgresqlclient libdnet \
al@20749 53 sagan-rules"
al@20749 54 CATEGORY="security|with PostgreSQL support"
al@20749 55 PROVIDE="sagan"
al@20749 56 ;;
al@20749 57 esac
erjo@11418 58 }