aboutsummaryrefslogtreecommitdiffstats
path: root/security/dirbuster/Makefile
blob: 0c0448256c33d7479a390dbcf2d0cb7c28080196 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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

USE_ZIP=    YES
USE_JAVA=   YES
JAVA_VERSION=   1.6+
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${DISTNAME}
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}

NO_STAGE=   yes
.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} ${DATADIR}
    ${CP} -R ${WRKSRC}/* ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.post.mk>