svn commit: r348225 - head/security/snortsnarf
Emanuel Haupt
ehaupt at FreeBSD.org
Fri Mar 14 13:12:05 UTC 2014
Author: ehaupt
Date: Fri Mar 14 13:12:04 2014
New Revision: 348225
URL: http://svnweb.freebsd.org/changeset/ports/348225
QAT: https://qat.redports.org/buildarchive/r348225/
Log:
- Support staging
- Define DOCS option
Modified:
head/security/snortsnarf/Makefile
Modified: head/security/snortsnarf/Makefile
==============================================================================
--- head/security/snortsnarf/Makefile Fri Mar 14 13:07:27 2014 (r348224)
+++ head/security/snortsnarf/Makefile Fri Mar 14 13:12:04 2014 (r348225)
@@ -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>
More information about the svn-ports-head
mailing list