blob: 7842fbc768ea87cedc4b8248604c89ed274c30a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Created by: lx@redundancy.redundancy.org
# $FreeBSD$
PORTNAME= dnshijacker
PORTVERSION= 1.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_CONFIG}:${PORTSDIR}/net/libnet10
LDFLAGS+= -lpcap `${LIBNET_CONFIG} --libs`
PLIST_FILES= bin/dnshijacker
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
.if !defined(NOPORTDOCS)
PORTDOCS= README
.endif
NO_STAGE= yes
do-build:
cd ${WRKSRC} && \
${CC} ${PORTNAME}.c ${CFLAGS} -I${LOCALBASE}/include \
-L${LOCALBASE}/lib ${LDFLAGS} `${LIBNET_CONFIG} --defines` \
`${LIBNET_CONFIG} --cflags` -o ${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dnshijacker ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
|