# $OpenBSD: Makefile,v 1.22 2009/02/14 20:56:16 sthen Exp $

COMMENT=		TCP dump file analysis tool

DISTNAME=		tcptrace-6.6.7
PKGNAME=		${DISTNAME}p0
CATEGORIES=		net
HOMEPAGE=		http://masaka.cs.ohiou.edu/software/tcptrace/
MASTER_SITES=		${HOMEPAGE}download/

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes
WANTLIB=		c m pcap 

BUILD_DEPENDS=		:bison-*:devel/bison

RUN_DEPENDS+=		::archivers/bzip2 \
			::x11/xplot

CONFIGURE_STYLE=	gnu
CONFIGURE_ENV=		YACC=bison

ALL_TARGET=		tcptrace

NO_REGRESS=		Yes

DOCFILES=	ARGS COPYRIGHT FAQ README README.mailing_list README.modules \
		README.tput_graphs WWW dot_tcptracerc

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tcptrace
	${INSTALL_PROGRAM} ${WRKSRC}/tcptrace ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/tcptrace.man ${PREFIX}/man/man1/tcptrace.1
.for file in ${DOCFILES}
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/tcptrace
.endfor

.include <bsd.port.mk>