Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (34 sloc) 1.53 KB
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=220
pkgname=bro
pkgver=2.6.2
pkgrel=1
pkgdesc="A highly configurable IDS"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="http://bro-ids.org/"
backup=(etc/bro/{broccoli.conf,broctl.cfg,networks.cfg,node.cfg})
license=('BSD')
depends=('curl' 'file' 'geoip' 'gperftools' 'ipsumdump' 'postfix'
'bind-tools' 'openssl' 'libpcap' 'bash' 'python2' 'zlib')
makedepends=('cmake' 'swig' 'bison' 'flex')
install=${pkgname}.install
groups=('archstrike' 'archstrike-networking')
options=('!emptydirs')
source=("https://www.zeek.org/downloads/bro-$pkgver.tar.gz" "$install")
sha512sums=('921a4a09b847d4ed07b9472870de75cd690146831573a6ba60cce10aad3f34a2301eb1723d751d86cacaec4edaa36174a9a674d76aaa70d3eb9f57d7e46462b8'
'4b8cc874148b9a640809420950d07b3f9ffe1c16a5fe145c85c17fa2f2a8f023a96370e810c895a5fab173cc9d32908ad0b8e603ae8a3206d52ed65f179bec00')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix="/usr" --conf-files-dir="/etc/bro" --spooldir="/usr/share/bro" \
--logdir="/usr/share/bro/logs" --localstatedir="/var/spool" --with-python=/usr/bin/python2 \
--enable-mobile-ipv6
make DESTDIR="$pkgdir"
}
package() {
cd $srcdir/$pkgname-$pkgver
mkdir -p $pkgdir/usr/share/bro/logs
make DESTDIR="$pkgdir/" install
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
find "${pkgdir}" -type f | xargs sed -i "/# This file was automatically generated by bifcl/d"
find "${pkgdir}" -type f | xargs sed -i 's|/usr/bin/env python|/usr/bin/env python2|'
}
You can’t perform that action at this time.