mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
36be6c7cc4
While here: - support stage, - use bsdtar to extract when supported. - Cleanup
38 lines
925 B
Makefile
38 lines
925 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= paros
|
|
PORTVERSION= 3.2.13
|
|
PORTREVISION= 1
|
|
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
|
|
|
|
USE_ZIP= yes
|
|
NO_BUILD= yes
|
|
USES= dos2unix
|
|
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>
|