mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
fd37d8821f
- Trim Header - Convert to OptionsNG - Prefer DISTNAME to DISTFILES - Reorder variables - Fix comments (don't include leading article) - @unexec rm must not cause failure - Tabs, not spaces - Single space for WWW - Pet portlint - etc. In a few cases the option DOCS was used to control installation into EXAMPLEDIR. I opted to keep the existing logic of the port in these cases. Reviewed by: koobs, ashish
36 lines
866 B
Makefile
36 lines
866 B
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mtail
|
|
PORTVERSION= 1.1.1
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://matt.immute.net/src/mtail/ CENKES
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Small tail workalike that performs output coloring
|
|
|
|
NO_BUILD= yes
|
|
USE_PYTHON_RUN= yes
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDOCS= CHANGES LICENSE README
|
|
PORTEXAMPLES= mtailrc
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '1s|/.*|${PYTHON_CMD}|' ${WRKSRC}/${PORTNAME}
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${INSTALL} -d ${DOCSDIR}/
|
|
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${INSTALL} -d ${EXAMPLESDIR}/
|
|
@${INSTALL_DATA} ${WRKSRC}/mtailrc.sample ${EXAMPLESDIR}/mtailrc
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|