freebsd-ports/sysutils/multitail/Makefile
Mathieu Arnold 5e476c009d Fixup the config file path, otherwise, it ends up trying to read it from, the
stagedir, which, from a poudriere built package would be:

You can prevent this message by adding the line 'check_mail:0' in
/wrkdirs/usr/ports/sysutils/multitail/work/stage/usr/local/etc/multitail.conf
or in .multitailrc in your home-directory.
2013-12-30 13:39:47 +00:00

41 lines
1.1 KiB
Makefile

# Created by: Oliver Braun <obraun@FreeBSD.org>
# $FreeBSD$
PORTNAME= multitail
PORTVERSION= 5.2.12
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.vanheusden.com/multitail/ \
http://fossies.org/unix/privat/
EXTRACT_SUFX= .tgz
MAINTAINER= beat@FreeBSD.org
COMMENT= Tail multiple files on console with ncurses
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/license.txt
USES= gmake
PLIST_FILES= bin/multitail etc/multitail.conf.sample \
man/man1/multitail.1.gz
PORTDOCS= readme.txt license.txt
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's,$$(DESTDIR)/etc/multitail.conf,${PREFIX}/etc/multitail.conf,' \
-e 's/CC=gcc/CC?=gcc/' \
${WRKSRC}/mt.c ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/multitail ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/multitail.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/multitail.conf ${STAGEDIR}${PREFIX}/etc/multitail.conf.sample
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>