# New ports collection makefile for:	despoof
# Date created:				02 September 2000
# Whom:					Kris Kennaway <kris@FreeBSD.org>
#
# $FreeBSD: ports/net/despoof/Makefile,v 1.10 2007/01/31 14:09:47 pav Exp $
#

PORTNAME=	despoof
PORTVERSION=	0.9
PORTREVISION=	3
CATEGORIES=	net security
MASTER_SITES=	http://www.bindview.com/Resources/RAZOR/Files/ \
		${MASTER_SITE_PACKETSTORM}
MASTER_SITE_SUBDIR=	UNIX/misc
EXTRACT_SUFX=	.tgz

MAINTAINER=	roam@FreeBSD.org
COMMENT=	Command-line anti-spoofing detection utility

BUILD_DEPENDS=	${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10

LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet10-config

post-patch:
	@${REINPLACE_CMD} -e \
		's|-I$${LOCALBASE}/include ||; \
		 s|-L$${LOCALBASE}/lib ||; \
		 s|--defines|& --cflags|; \
		 s|libnet-config|${LIBNET_CONFIG}|; \
		 s|-lnet |`${LIBNET_CONFIG} --libs` |' \
		 ${WRKSRC}/${MAKEFILE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/despoof ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1