blob: c8295395bbb1cf16e74e9179ae2a7a307225a2e7 (
plain)
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
|
PORTNAME= paros
PORTVERSION= 3.2.13
PORTREVISION= 2
CATEGORIES= www security java
MASTER_SITES= SF/${PORTNAME}/Paros/Version%20${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-unix
MAINTAINER= ports@FreeBSD.org
COMMENT= HTTP/HTTPS proxy for assessing web application vulnerability
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_JAVA= yes
JAVA_RUN= yes
NO_BUILD= yes
USES= dos2unix zip
DOS2UNIX_FILES= release.txt
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
post-patch:
${REINPLACE_CMD} -e 's|java -jar \(paros.jar\)|cd ${DATADIR} \&\& java -jar ${DATADIR}/\1|g' \
${WRKSRC}/startserver.sh
${RM} ${WRKSRC}/startserver.sh.bak
do-install:
@${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}
(cd ${WRKSRC} && ${COPYTREE_BIN} \* ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME} \
"! -name startserver.sh")
${INSTALL_SCRIPT} ${WRKSRC}/startserver.sh ${STAGEDIR}${PREFIX}/bin/paros
.include <bsd.port.mk>
|