1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Add staging support

- Fix COMMENT
- Make BUILD_DEPENDS path independent
- Convert to new options framework, USES=shebangfix
This commit is contained in:
Pawel Pekala 2014-07-11 19:13:00 +00:00
parent 8a28ecafa9
commit 61ad44cb27
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361581

View File

@ -9,29 +9,28 @@ DISTNAME= SP${PORTVERSION:tl:C/\.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for looking for vulnerabilities in web applications
COMMENT= Tool looking for vulnerabilities in web applications
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl
WRKSRC= ${WRKDIR}/spkproxy
USES= shebangfix
SHEBANG_FILES= *.py
USE_PYTHON= yes
NO_BUILD= yes
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} "s|\#\!/usr/bin/python|\#\!${LOCALBASE}/bin/python|" ${WRKSRC}/*.py
WRKSRC= ${WRKDIR}/spkproxy
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
@${RM} -rf ${WRKSRC}/*.bak
${CP} -Rp ${WRKSRC}/* ${DATADIR}/
${SED} "s|DATADIR|${DATADIR}|" ${SCRIPTDIR}/spkproxy.sh > ${PREFIX}/bin/spkproxy.sh
@${CHMOD} 755 ${PREFIX}/bin/spkproxy.sh
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in WHYGPL.txt TODO.txt SpikeUsage.txt README.txt CHANGELOG.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
${CP} -Rp ${WRKSRC}/* ${STAGEDIR}${DATADIR}
${SED} "s|DATADIR|${DATADIR}|" ${SCRIPTDIR}/spkproxy.sh > \
${STAGEDIR}${PREFIX}/bin/spkproxy.sh
@${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/spkproxy.sh
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} WHYGPL.txt TODO.txt SpikeUsage.txt \
README.txt CHANGELOG.txt ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>