2012-12-17 19:32:51 +01:00
|
|
|
# Template file for 'ngrep'
|
|
|
|
pkgname=ngrep
|
|
|
|
version=1.45
|
2015-03-04 16:04:30 +01:00
|
|
|
revision=4
|
2013-04-14 04:36:19 +02:00
|
|
|
hostmakedepends="automake pkg-config"
|
2015-03-04 16:04:30 +01:00
|
|
|
makedepends="pcre-devel libpcap-devel libressl-devel>=2.1.4"
|
2013-04-14 04:36:19 +02:00
|
|
|
short_desc="grep-like utility for network interfaces"
|
2012-12-17 19:32:51 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://ngrep.sourceforge.net/"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
|
|
checksum=aea6dd337da8781847c75b3b5b876e4de9c58520e0d77310679a979fc6402fa7
|
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
pre_configure() {
|
2012-12-17 19:32:51 +01:00
|
|
|
autoreconf -fi
|
2013-05-26 10:41:55 +02:00
|
|
|
}
|
2012-12-17 19:32:51 +01:00
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
do_configure() {
|
|
|
|
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
|
|
|
|
./configure ${configure_args} --enable-ipv6 --enable-pcre EXTRA_LIBS="-lpcre"
|
2012-12-17 19:32:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
}
|