25 lines
765 B
Bash
25 lines
765 B
Bash
# Template file for 'ngrep'
|
|
pkgname=ngrep
|
|
version=1.47
|
|
revision=1
|
|
wrksrc="ngrep-${version/./_}"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-ipv6 --enable-pcre EXTRA_LIBS=-lpcre"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="pcre-devel libpcap-devel"
|
|
short_desc="Like GNU grep applied to the network layer"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/jpr5/ngrep"
|
|
distfiles="https://github.com/jpr5/ngrep/archive/V${version/./_}.tar.gz"
|
|
checksum=dc4dbe20991cc36bac5e97e99475e2a1522fd88c59ee2e08f813432c04c5fff3
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --with-pcap-includes=$XBPS_CROSS_BASE/usr/include/pcap"
|
|
else
|
|
configure_args+=" --with-pcap-includes=/usr/include/pcap"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|