mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
# Contributor: Karim Kanso <kaz.kanso@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=daq
|
|
pkgver=2.0.6
|
|
pkgrel=3
|
|
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"
|
|
subpackages="$pkgname-static $pkgname-sfbpf $pkgname-dev"
|
|
source="https://www.snort.org/downloads/snort/daq-$pkgver.tar.gz
|
|
fix-includes.patch
|
|
"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./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() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
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="61dd5408c587e57999445b9549ac539ffc5bb16ddc179601de1065fc5e251c1893536d8aa2251096e34b54093529d3578e7b5d97e3514cb2bbf4de113639b08c daq-2.0.6.tar.gz
|
|
ea769608e4b6ebfd186a5e637a1dbf16f300c5c40501655b891fdc0095879f65927d90872d4953a4a4e32ccc40306b19a1a1e7ae4dd8b3f7572db97aea48390e fix-includes.patch"
|