aboutsummaryrefslogtreecommitdiff
path: root/misc/mtail
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mtail')
-rw-r--r--misc/mtail/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/misc/mtail/Makefile b/misc/mtail/Makefile
index 030cdd5e71c6..ad8a246072db 100644
--- a/misc/mtail/Makefile
+++ b/misc/mtail/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mtail
-# Date created: 9 August 2007
-# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
-#
+# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= mtail
PORTVERSION= 1.1.1
@@ -20,16 +16,18 @@ 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/
-.ifndef NOPORTDOCS
+.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
-.ifndef NOPORTEXAMPLES
+.if ${PORT_OPTIONS:MEXAMPLES}
@${INSTALL} -d ${EXAMPLESDIR}/
@${INSTALL_DATA} ${WRKSRC}/mtailrc.sample ${EXAMPLESDIR}/mtailrc
.endif