49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
|
# Template file for 'bro'
|
||
|
pkgname=bro
|
||
|
version=2.5.4
|
||
|
revision=1
|
||
|
build_style=cmake
|
||
|
nocross="Needs to build part of itself to run, can't be built separately yet."
|
||
|
hostmakedepends="flex pkg-config python3"
|
||
|
makedepends="bind-devel geoip-devel libpcap-devel libressl-devel jemalloc-devel"
|
||
|
short_desc="Advanced framework for network traffic analysis"
|
||
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||
|
license="BSD-3-Clause"
|
||
|
homepage="https://www.bro.org"
|
||
|
distfiles="https://www.bro.org/downloads/bro-${version}.tar.gz"
|
||
|
checksum=80daea433fa654f2602cf67b19b9121ff6ad57761bad73cc29020c4f490c5f1f
|
||
|
|
||
|
case "$XBPS_TARGET_MACHINE" in
|
||
|
*-musl)
|
||
|
makedepends+=" musl-fts-devel"
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
pre_configure() {
|
||
|
case "$XBPS_TARGET_MACHINE" in
|
||
|
*-musl)
|
||
|
sed -i '/set(broxygen/i link_libraries("-lfts")' src/broxygen/CMakeLists.txt
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
post_install() {
|
||
|
vsv bro
|
||
|
vlicense COPYING
|
||
|
}
|
||
|
|
||
|
binpac_package() {
|
||
|
short_desc+=" - protocol parser compiler"
|
||
|
pkg_install() {
|
||
|
vmove /usr/bin/binpac
|
||
|
}
|
||
|
}
|
||
|
|
||
|
binpac-devel_package() {
|
||
|
short_desc+=" - protocol parser compiler library"
|
||
|
pkg_install() {
|
||
|
vmove /usr/include
|
||
|
vmove "/usr/lib/*.a"
|
||
|
}
|
||
|
}
|