1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Support staging

- Define EXAMPLES option
- Define DOCS option
This commit is contained in:
Emanuel Haupt 2014-02-28 12:46:47 +00:00
parent 4cc72b7a99
commit 81a5e4e924
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346501
2 changed files with 11 additions and 22 deletions

View File

@ -14,19 +14,18 @@ COMMENT= Examines source code looking for security weaknesses
USE_PYTHON= yes
NO_BUILD= yes
MAN1= flawfinder.1
DOCS= ChangeLog README flawfinder.pdf flawfinder.ps
EXAMPLES= test.c correct-results.html correct-results.txt
PLIST_FILES= bin/flawfinder man/man1/flawfinder.1.gz
PORTDOCS= ChangeLog README flawfinder.pdf flawfinder.ps
PORTEXAMPLES= test.c correct-results.html correct-results.txt
OPTIONS_DEFINE= DOCS EXAMPLES
NO_STAGE= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/flawfinder ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/flawfinder.1 ${MANPREFIX}/man/man1
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
${INSTALL_SCRIPT} ${WRKSRC}/flawfinder ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/flawfinder.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,10 +0,0 @@
bin/flawfinder
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/flawfinder.pdf
%%PORTDOCS%%%%DOCSDIR%%/flawfinder.ps
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%EXAMPLESDIR%%/correct-results.html
%%EXAMPLESDIR%%/correct-results.txt
%%EXAMPLESDIR%%/test.c
@dirrm %%EXAMPLESDIR%%