diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-03-14 21:12:04 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-03-14 21:12:04 +0800 |
commit | 3224b70fc6da9e84854037aa0b21c24319ff077d (patch) | |
tree | 38759858d936eeccf41e7d46ec345f7af70fb7b8 /security | |
parent | 152aa8b17bf8efda14aef01d562251f0f680e8de (diff) | |
download | freebsd-ports-gnome-3224b70fc6da9e84854037aa0b21c24319ff077d.tar.gz freebsd-ports-gnome-3224b70fc6da9e84854037aa0b21c24319ff077d.tar.zst freebsd-ports-gnome-3224b70fc6da9e84854037aa0b21c24319ff077d.zip |
- Support staging
- Define DOCS option
Diffstat (limited to 'security')
-rw-r--r-- | security/snortsnarf/Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/security/snortsnarf/Makefile b/security/snortsnarf/Makefile index b65c9bc0a207..7bbaca41661d 100644 --- a/security/snortsnarf/Makefile +++ b/security/snortsnarf/Makefile @@ -17,21 +17,20 @@ USES= perl5 NO_BUILD= yes USE_PERL5= run -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + post-patch: @${SED} -e 's|\./include|${PREFIX}/libdata/${PORTNAME}|' \ < ${WRKSRC}/snortsnarf.pl > ${WRKSRC}/snortsnarf do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/snortsnarf ${LOCALBASE}/bin - @${MKDIR} ${PREFIX}/libdata/snortsnarf - @(cd ${WRKSRC}/include \ - && ${COPYTREE_SHARE} . ${PREFIX}/libdata/${PORTNAME}) -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/snortsnarf ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${PREFIX}/libdata/snortsnarf + (cd ${WRKSRC}/include \ + && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/libdata/${PORTNAME}) + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in README Usage - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include <bsd.port.mk> |