Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (37 sloc) 1.48 KB
# Maintainer: ArchStrike <team@archstrike.org>
# Contributor : Sebastien Duquette <ekse.0x@gmail.com>
buildarch=220
pkgname=sagan
pkgver=1.2.2
pkgrel=1
pkgdesc="a snort-like log analysis engine"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
groups=('archstrike' 'archstrike-analysis')
url="https://quadrantsec.com/sagan_log_analysis_engine/"
license=('GPL')
depends=('libdnet' 'libesmtp' 'liblognorm' 'geoip' 'libyaml' 'libmaxminddb')
optdepends=('sagan-rules: rules for sagan')
options=('!makeflags' '!emptydirs')
source=("https://quadrantsec.com/download/${pkgname}-${pkgver}.tar.gz")
sha512sums=('17767beffa2059fa8a89347c0cb4f44e28b42fcf797c082ce1af1d168bbbf790362b8005137cbe24246ea7ce7e7f8615230ca5c5305b9d7476d83712f8d59e25')
build() {
cd "${pkgname}-${pkgver}" || exit
./autogen.sh
if [[ "${CARCH}" == i686 ]] || [[ "${CARCH}" == armv6h ]] || [[ "${CARCH}" == armv7h ]] || [[ "${CARCH}" == aarch64 ]]; then
./configure --enable-esmtp \
--enable-geoip \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--enable-system-strstr
else
./configure --enable-esmtp --enable-geoip --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
fi
make
sed "s:^var RULE_PATH.*$:var RULE_PATH /usr/share/sagan-git/rules/:" etc/sagan.yaml > etc/sagan.yaml.new
mv etc/sagan.yaml.new etc/sagan.yaml
}
package() {
cd "${pkgname}-${pkgver}" || exit
make DESTDIR="${pkgdir}" install
}
You can’t perform that action at this time.