1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/net/ngrep/Makefile
Edwin Groothuis c96abf74df Update port: net/ngrep to 1.44
- Update to 1.44
	- Use OPTIONS
	- Add IPv6 support

PR:		ports/85965
Submitted by:	Marcus Alves Grando <marcus@corp.grupos.com.br>
2005-09-11 08:53:19 +00:00

65 lines
1.4 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: ngrep
# Date created: Sat Jan 01, 2000
# Whom: David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#
PORTNAME= ngrep
PORTVERSION= 1.44
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}-1
MAINTAINER= edwin@mavetju.org
COMMENT= Network grep
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_BZIP2= yes
ALL_TARGET= ngrep
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --mandir=${PREFIX}/man/ --disable-pcap-restart
OPTIONS= PCRE "Use PCRE instead of GNU regex" on \
PORTS_PCAP "Use ports PCAP instead of system PCAP" off \
IPV6 "Enable IPv6 support" on
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>
.if defined(WITH_PCRE)
CONFIGURE_ARGS+= --enable-pcre
.endif
.if !defined(WITH_PORTS_PCAP)
CONFIGURE_ARGS+= --with-pcap-includes=/usr/include
.else
CONFIGURE_ARGS+= --with-pcap-includes=${LOCALBASE}/include
LIB_DEPENDS= pcap.2:${PORTSDIR}/net/libpcap
.endif
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
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>