1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/www/paros/Makefile
John Marino e126480f09 www/paros: Assume it works with java > 1.6
This port was originally set for 1.5, but a later commit acknowledged
that it worked on 1.6 as well, but didn't say it was limited to 1.6.
Let's assume this unmaintained port can run on java higher than 1.6 and
rely on user feedback to tell us if this isn't a good assumption.  (I
don't know how to run-time test it myself)
2014-11-07 09:57:50 +00:00

37 lines
917 B
Makefile

# $FreeBSD$
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
JAVA_VERSION= 1.6+
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>