2010-10-25 15:13:41 +02:00
|
|
|
# New ports collection makefile for: hexinject
|
|
|
|
# Date created: 2010-10-24
|
|
|
|
# Whom: Sofian Brabez <sbrabez@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hexinject
|
2011-12-29 10:48:26 +01:00
|
|
|
PORTVERSION= 1.4.1
|
2010-10-25 15:13:41 +02:00
|
|
|
CATEGORIES= net security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2011-12-29 10:48:26 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}-${PORTVERSION:C/.1$//}
|
2010-10-25 15:13:41 +02:00
|
|
|
|
2011-03-18 11:04:54 +01:00
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
2010-10-25 15:13:41 +02:00
|
|
|
COMMENT= HexInject is a very versatile packet injector and sniffer
|
|
|
|
|
2011-06-01 11:04:16 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2010-10-25 15:13:41 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2011-06-29 11:39:58 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e '2s#-lpcap#-L${LOCALBASE}/lib -lpcap#' ${WRKSRC}/Makefile
|
|
|
|
|
2010-10-25 15:13:41 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
|
2011-06-29 11:39:58 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSREL} < 8
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|