aboutsummaryrefslogtreecommitdiff
path: root/net/ttlscan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/ttlscan/Makefile')
-rw-r--r--net/ttlscan/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/ttlscan/Makefile b/net/ttlscan/Makefile
index 3b192bcc0744..19ce50d55220 100644
--- a/net/ttlscan/Makefile
+++ b/net/ttlscan/Makefile
@@ -8,7 +8,7 @@
PORTNAME= ttlscan
PORTVERSION= 0.1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.wormulon.net/files/ttlscan/
@@ -16,13 +16,15 @@ MAINTAINER= mich@FreeBSD.org
COMMENT= A tcp based scanner, showing ttl responses
BUILD_DEPENDS= ${LOCALBASE}/include/dnet.h:${PORTSDIR}/net/libdnet \
- libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+ ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
LDFLAGS+= -lpcap -ldnet
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib -D_XOPEN_SOURCE \
- `libnet-config --defines` ${PORTNAME}.c -o ${PORTNAME} `libnet-config --libs` ${LDFLAGS})
+ `${LIBNET_CONFIG} --defines --cflags` ${PORTNAME}.c -o ${PORTNAME} `${LIBNET_CONFIG} --libs` ${LDFLAGS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin