33 lines
969 B
Bash
33 lines
969 B
Bash
# Template file for 'netsniff-ng'
|
|
pkgname=netsniff-ng
|
|
version=0.6.8
|
|
revision=4
|
|
build_style=configure
|
|
configure_args="--prefix=/usr --disable-geoip"
|
|
hostmakedepends="pkg-config flex bison which"
|
|
makedepends="libcli-devel libnetfilter_conntrack-devel libpcap-devel
|
|
libnet-devel libsodium-devel liburcu-devel ncurses-devel zlib-devel"
|
|
short_desc="Free Linux networking toolkit"
|
|
maintainer="Robert Lowry <bobertlo@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://netsniff-ng.org/"
|
|
distfiles="http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-${version}.tar.gz"
|
|
checksum=ca22e98208003eb7f75b2d177378848f7178dab83f5c320a0fffb409bdfbb160
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
post_extract() {
|
|
vsed -i -e 's|/sbin|/bin|g' -e '/--jobs=/d' Makefile
|
|
vsed -i 's/ncurses/ncursesw/g' flowtop/Makefile
|
|
}
|
|
|
|
pre_configure() {
|
|
export NACL_INC_DIR=${XBPS_CROSS_BASE}/usr/include/sodium
|
|
export NACL_LIB=sodium
|
|
export NACL_LIB_DIR=${XBPS_CROSS_BASE}/usr/lib
|
|
}
|
|
|
|
pre_install() {
|
|
vmkdir usr/bin
|
|
}
|