svn commit: r346440 - head/misc/mtail

Emanuel Haupt ehaupt at FreeBSD.org
Fri Feb 28 07:16:42 UTC 2014


Author: ehaupt
Date: Fri Feb 28 07:16:42 2014
New Revision: 346440
URL: http://svnweb.freebsd.org/changeset/ports/346440
QAT: https://qat.redports.org/buildarchive/r346440/

Log:
  Support staging

Modified:
  head/misc/mtail/Makefile

Modified: head/misc/mtail/Makefile
==============================================================================
--- head/misc/mtail/Makefile	Fri Feb 28 07:12:57 2014	(r346439)
+++ head/misc/mtail/Makefile	Fri Feb 28 07:16:42 2014	(r346440)
@@ -16,24 +16,17 @@ PLIST_FILES=	bin/${PORTNAME}
 PORTDOCS=	CHANGES LICENSE README
 PORTEXAMPLES=	mtailrc
 
-NO_STAGE=	yes
-
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-.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
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} $ ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/mtailrc.sample \
+		${STAGEDIR}${EXAMPLESDIR}/mtailrc
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list