mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-06 00:13:37 +01:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# Contributor: Karim Kanso <kaz.kanso@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=daq
|
|
pkgver=2.0.7
|
|
pkgrel=0
|
|
pkgdesc="Data Acquisition library - packet I/O library"
|
|
url="https://www.snort.org/"
|
|
arch="all"
|
|
license="GPL-2.0-only"
|
|
makedepends="libpcap-dev flex bison linux-headers libnetfilter_queue-dev
|
|
libnfnetlink-dev libdnet-dev automake autoconf libtool"
|
|
subpackages="$pkgname-static $pkgname-sfbpf $pkgname-dev"
|
|
source="https://www.snort.org/downloads/snort/daq-$pkgver.tar.gz
|
|
fix-includes.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
autoreconf -fi
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var
|
|
# work around parallel build issue
|
|
make -C sfbpf tokdefs.h
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sfbpf() {
|
|
pkgdesc="snort's berkley packet filter shared lib"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libsfbpf.so* "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
sha512sums="
|
|
37e21766ee659a40e73a11f00af94c1f3f57ab47bdf6b74b8c93c2147e74bab9779a9a7e5cdce31fe772067036f13bc552bc5b23a6e9d76f31aa62f0fdae5643 daq-2.0.7.tar.gz
|
|
ea769608e4b6ebfd186a5e637a1dbf16f300c5c40501655b891fdc0095879f65927d90872d4953a4a4e32ccc40306b19a1a1e7ae4dd8b3f7572db97aea48390e fix-includes.patch
|
|
"
|