# ex:ts=8
# Ports collection makefile for:  ngrep
# Date created:			  Sat Jan 01, 2000
# Whom:				  David O'Brien (obrien@NUXI.com)
#
# $FreeBSD: ports/net/ngrep/Makefile,v 1.18 2005/02/24 06:28:20 edwin Exp $
#

PORTNAME=	ngrep
PORTVERSION=	1.43
CATEGORIES=	net security
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	edwin@mavetju.org
COMMENT=	Network grep

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-pcre \
		--disable-pcap-restart \
		--enable-dropprivs-onlyroot \
		--mandir=${PREFIX}/man/
ALL_TARGET=	ngrep
USE_BZIP2=	yes

MAN8=		ngrep.8
PLIST_FILES=	bin/ngrep

PORTDOCS=	CHANGES.txt CREDITS.txt INSTALL.txt LICENSE.txt \
		README.txt REGEX.txt

.include <bsd.port.pre.mk>

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
	@if [ -f ${WRKSRC}/${file} ]; then \
	    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}; \
	else \
	    ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}; \
	fi
.endfor
.endif

.include <bsd.port.post.mk>
