freebsd-ports/security/webscarab/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

46 lines
1.2 KiB
Makefile

# Created by: Niels Heinen
# $FreeBSD$
PORTNAME= webscarab
PORTVERSION= 20090427
CATEGORIES= security www java
MASTER_SITES= LOCAL/niels \
http://people.freebsd.org/~niels/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Framework for analysing HTTP and HTTPS web application traffic
USES= zip
USE_JAVA= YES
JAVA_VERSION= 1.6+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${DISTNAME}-1304
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PORTDOCS= README LICENSE ChangeLog
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
post-extract:
${RM} ${WRKSRC}/lib/W32WinInet.dll
pre-install:
@${SED} -e 's:%%PATH%%:${DATADIR}/:' \
-e 's:%%JAVA_CMD%%:${JAVA}:' \
-e 's:%%WEBSCARAB%%:${DATADIR}/${PORTNAME}.jar:' \
< ${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME}
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/lib
${INSTALL_DATA} ${WRKSRC}/lib/* ${STAGEDIR}${DATADIR}/lib
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}_lite
@${MKDIR} ${STAGEDIR}${DOCSDIR}
. for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
. endfor
.include <bsd.port.post.mk>