aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-01-31 22:09:55 +0800
committerpav <pav@FreeBSD.org>2007-01-31 22:09:55 +0800
commitccd12ccd577604add511aad4ea4e71c32b3e2f06 (patch)
tree25b833c135dd7f2323045f819dc7121e621103fc /dns
parente2f15954f8960a944e8d5b2c28982257d8c6e91f (diff)
downloadfreebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.gz
freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.zst
freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.zip
- Patch net/libnet* to versioned libraries and header files, so they can
coexist PR: ports/103861 Submitted by: alepulver Tested by: pointyhat With hat: portmgr
Diffstat (limited to 'dns')
-rw-r--r--dns/dnshijacker/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/dns/dnshijacker/Makefile b/dns/dnshijacker/Makefile
index abfb07968f30..16e5685028fb 100644
--- a/dns/dnshijacker/Makefile
+++ b/dns/dnshijacker/Makefile
@@ -7,19 +7,21 @@
PORTNAME= dnshijacker
PORTVERSION= 1.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= dns security
MASTER_SITES= http://pedram.redhive.com/downloads/
MAINTAINER= lx@redundancy.redundancy.org
COMMENT= A tool to hijack DNS requests
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
-LDFLAGS+= -lpcap -lnet
+LDFLAGS+= -lpcap `${LIBNET_CONFIG} --libs`
PLIST_FILES= bin/dnshijacker
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
.if !defined(NOPORTDOCS)
PORTDOCS= README
.endif
@@ -27,8 +29,8 @@ PORTDOCS= README
do-build:
cd ${WRKSRC} && \
${CC} ${PORTNAME}.c ${CFLAGS} -I${LOCALBASE}/include \
- -L${LOCALBASE}/lib ${LDFLAGS} `libnet-config --defines` \
- `libnet-config --cflags` -o ${PORTNAME}
+ -L${LOCALBASE}/lib ${LDFLAGS} `${LIBNET_CONFIG} --defines` \
+ `${LIBNET_CONFIG} --cflags` -o ${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dnshijacker ${PREFIX}/bin