aboutsummaryrefslogtreecommitdiffstats
path: root/security/burpsuite/Makefile
blob: 75fc667e0a7b87dd8119680564a13739dfed4459 (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
39
40
41
42
43
44
45
46
47
# Created by: Niels Heinen
# $FreeBSD$

PORTNAME=   burpsuite
PORTVERSION=    1.5
CATEGORIES= security java
MASTER_SITES=   http://www.portswigger.net/burp/ \
        LOCAL/sbz
DISTNAME=   ${PORTNAME}_free_v${PORTVERSION}
EXTRACT_SUFX=   .jar

MAINTAINER= sbz@FreeBSD.org
COMMENT=    Burp Suite is an integrated platform for testing web applications

EXTRACT_CMD=    ""
USE_JAVA=   yes
NO_BUILD=   yes
JAVA_VERSION=   1.7
JAVA_VENDOR=    openjdk
WRKSRC=     ${WRKDIR}/${DISTNAME}

PLIST_FILES=    bin/${PORTNAME} \
        %%JAVAJARDIR%%/${DISTNAME}.jar

.include <bsd.port.pre.mk>

# Get BSFEL agreement
.if !defined(PACKAGE_BUILDING)
pre-extract:
    @${SH} ${FILESDIR}/license.sh
.endif

post-extract:
    @${MKDIR} ${WRKSRC}
    @${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}/

pre-install:
    @${SED} -e 's:%%PATH%%:${JAVAJARDIR}/:' \
        -e 's:%%JAVA_CMD%%:${JAVA}:' \
        -e 's:%%BURP%%:${JAVAJARDIR}/${DISTNAME}.jar:' \
        < ${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME}

do-install:
    @${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAVAJARDIR}/
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.post.mk>