# Created by: Corey Smith
# $FreeBSD: head/net/flowgrep/Makefile 455819 2017-12-09 07:34:27Z antoine $

PORTNAME=	flowgrep
PORTVERSION=	0.9
PORTREVISION=	1
CATEGORIES=	net security
MASTER_SITES=	http://www.monkey.org/~jose/software/flowgrep/
DISTNAME=	flowgrep-${PORTVERSION}

MAINTAINER=	corsmith@gmail.com
COMMENT=	TCP stream/UDP/IP payload 'grep' utility

LICENSE=	BSD4CLAUSE  # actually 3, but advertising clause is there

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pynids>=0:net/pynids@${PY_FLAVOR}

USES=		python:2.7 shebangfix
SHEBANG_FILES=	flowgrep.py
NO_BUILD=	yes
NO_ARCH=	yes

PLIST_FILES=	sbin/flowgrep man/man8/flowgrep.8.gz

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/flowgrep.py \
		${STAGEDIR}${PREFIX}/sbin/flowgrep
	${INSTALL_MAN} ${WRKSRC}/flowgrep.8 ${STAGEDIR}${MANPREFIX}/man/man8

.include <bsd.port.mk>
