# New ports collection makefile for:	multitail
# Date created:				10 April 2003
# Whom:					Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD: ports/sysutils/multitail/Makefile,v 1.66 2007/07/10 16:57:08 obraun Exp $
#

PORTNAME=	multitail
PORTVERSION=	5.2.0
CATEGORIES=	sysutils
MASTER_SITES=	http://www.vanheusden.com/multitail/
EXTRACT_SUFX=	.tgz

MAINTAINER=	obraun@FreeBSD.org
COMMENT=	Tail multiple files on console with ncurses

USE_GMAKE=	yes

MAN1=		multitail.1
PLIST_FILES=	bin/multitail etc/multitail.conf.sample
PORTDOCS=	readme.txt license.txt

post-patch:
	@${REINPLACE_CMD} -e 's,/etc/multitail.conf,${PREFIX}/etc/multitail.conf,' \
		${WRKSRC}/mt.c  ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/multitail ${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/multitail.1 ${MANPREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/multitail.conf ${PREFIX}/etc/multitail.conf.sample
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1