1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net/hexinject/Makefile
Sofian Brabez 4650e5d6e4 - Fix build with clang
Reported by:	pkg-fallout
2014-03-06 14:31:13 +00:00

29 lines
702 B
Makefile

# Created by: Sofian Brabez <sbrabez@gmail.com>
# $FreeBSD$
PORTNAME= hexinject
PORTVERSION= 1.5
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= sbz@FreeBSD.org
COMMENT= HexInject is a very versatile packet injector and sniffer
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libpcap.so:${PORTSDIR}/net/libpcap
PLIST_FILES= bin/${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
${REINPLACE_CMD} -e 's#gcc#${CC}#g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e '2s#-lpcap#-L${LOCALBASE}/lib -lpcap#' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>