2013-02-25 10:25:46 +00:00
|
|
|
# Created by: Sofian Brabez <sbrabez@gmail.com>
|
2010-10-25 13:13:41 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hexinject
|
2013-02-25 10:25:46 +00:00
|
|
|
PORTVERSION= 1.5
|
2010-10-25 13:13:41 +00:00
|
|
|
CATEGORIES= net security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2013-02-25 10:25:46 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2010-10-25 13:13:41 +00:00
|
|
|
|
2011-03-18 10:04:54 +00:00
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
2014-03-06 14:31:13 +00:00
|
|
|
COMMENT= HexInject is a very versatile packet injector and sniffer
|
2010-10-25 13:13:41 +00:00
|
|
|
|
2014-03-06 14:31:13 +00:00
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
|
|
|
|
LIB_DEPENDS= libpcap.so:${PORTSDIR}/net/libpcap
|
2011-06-01 09:04:16 +00:00
|
|
|
|
2010-10-25 13:13:41 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2011-06-29 09:39:58 +00:00
|
|
|
post-patch:
|
2014-03-06 14:31:13 +00:00
|
|
|
${REINPLACE_CMD} -e 's#gcc#${CC}#g' ${WRKSRC}/Makefile
|
2011-06-29 09:39:58 +00:00
|
|
|
${REINPLACE_CMD} -e '2s#-lpcap#-L${LOCALBASE}/lib -lpcap#' ${WRKSRC}/Makefile
|
|
|
|
|
2010-10-25 13:13:41 +00:00
|
|
|
do-install:
|
2014-03-06 14:31:13 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
2011-06-29 09:39:58 +00:00
|
|
|
|
2014-03-06 14:31:13 +00:00
|
|
|
.include <bsd.port.mk>
|