From 6566acd7add5ff7d6e5dcf4212a533b487a918af Mon Sep 17 00:00:00 2001 From: se Date: Sun, 1 Jun 2014 12:35:41 +0000 Subject: Add stage support and support for the DOCS option. Approved by: antoine (mentor) --- security/blindelephant/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/security/blindelephant/Makefile b/security/blindelephant/Makefile index da284fdbab6e..c168a61ddbd9 100644 --- a/security/blindelephant/Makefile +++ b/security/blindelephant/Makefile @@ -14,7 +14,8 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Fingerprint the web applications used by a web site LICENSE= LGPL3 -USE_BZIP2= YES + +USES= tar:bzip2 USE_PYTHON= yes USE_PYDISTUTILS= YES @@ -22,10 +23,9 @@ SUB_FILES= ${PORTNAME}.sh SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \ PATH=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME} -PORTDOCS= README Blind_Elephant_BlackHat_2010.pdf +OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include +PORTDOCS= README Blind_Elephant_BlackHat_2010.pdf post-extract: @${MV} ${WRKSRC}/src/* ${WRKSRC} @@ -33,12 +33,10 @@ post-extract: ${WRKSRC}/Blind_Elephant_BlackHat_2010.pdf post-install: - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DOCSDIR} . for I in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${I} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${I} ${STAGEDIR}${DOCSDIR} . endfor -.endif -.include +.include -- cgit