4ca54cc2f2
bit more aggressive, but at this point, if I'm staging your port, you've likely stopped caring what's done to it.
37 lines
926 B
Makefile
37 lines
926 B
Makefile
# Created by: Niels Heinen
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dirbuster
|
|
PORTVERSION= 1.0r1
|
|
CATEGORIES= security java
|
|
MASTER_SITES= SF/${PORTNAME}/DirBuster%20%28jar%20%2B%20lists%29/1.0-RC1/
|
|
DISTNAME= DirBuster-1.0-RC1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= DirBuster allows file and directory brute forcing on web servers
|
|
|
|
USES= zip
|
|
USE_JAVA= YES
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
${RM} ${WRKSRC}/${DISTNAME}.sh
|
|
${RM} ${WRKSRC}/${DISTNAME}.bat
|
|
|
|
pre-install:
|
|
@${SED} -e 's:%%PATH%%:${DATADIR}/:' \
|
|
-e 's:%%JAVA_CMD%%:${JAVA}:' \
|
|
-e 's:%%DIRBUSTER%%:${DATADIR}/${DISTNAME}.jar:' \
|
|
< ${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME}
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${CP} -R ${WRKSRC}/* ${STAGEDIR}${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.post.mk>
|