freebsd-ports/sysutils/multitail/Makefile
Oliver Braun 8cd24582ea Use the correct .conf file location.
PR:		ports/98740
Submitted by:	"Ion-Mihai "IOnut" Tetcu" <itetcu@people.tecnik93.com>
2006-06-09 14:34:50 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: multitail
# Date created: 10 April 2003
# Whom: Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= multitail
PORTVERSION= 4.0.4
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
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
EXTRA_PATCHES= ${FILESDIR}/extra-patch-config.c ${FILESDIR}/extra-patch-cv.c
.endif
post-patch:
@${REINPLACE_CMD} -e '/^CC/d ; s/^CFLAGS=/CFLAGS+=/' ${WRKSRC}/Makefile
@${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.post.mk>