pkgsrc/www/paros/Makefile
2008-06-12 02:14:13 +00:00

44 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2008/06/12 02:14:56 joerg Exp $
#
DISTNAME= paros-3.2.13-unix
PKGNAME= ${DISTNAME:S/-unix//}
CATEGORIES= www security java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=paros/}
EXTRACT_SUFX= .zip
MAINTAINER= salo@NetBSD.org
HOMEPAGE= http://www.parosproxy.org/
COMMENT= HTTP/HTTPS proxy for assessing web application vulnerabilities
PKG_DESTDIR_SUPPORT= user-destdir
NO_BUILD= yes
USE_JAVA2= yes
USE_JAVA= run
USE_TOOLS+= pax
INSTALLATION_DIRS= bin lib
WRKSRC= ${WRKDIR}/${PKGBASE}
SUBST_CLASSES+= java
SUBST_MESSAGE.java= Fixing hardcoded path to Java.
SUBST_STAGE.java= pre-configure
SUBST_FILES.java= ${WRKSRC}/startserver.sh
SUBST_SED.java= -e 's,java ,${PKG_JAVA_HOME}/bin/&,'
do-configure:
@(${ECHO} '#! /bin/sh' && \
${ECHO} cd ${PREFIX}/lib/${PKGBASE} && \
${CAT} ${WRKSRC}/startserver.sh && \
${ECHO}) > ${WRKDIR}/paros.sh
@${MV} ${WRKSRC}/license/theclarifiedartisticlicense.htm \
${WRKSRC}/license/TheClarifiedArtisticLicense.htm
do-install:
@cd ${WRKDIR} && pax -rw -pm ${PKGBASE} ${DESTDIR}${PREFIX}/lib/
${INSTALL_SCRIPT} ${WRKDIR}/paros.sh ${DESTDIR}${PREFIX}/bin/paros
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"