diff options
author | pawel <pawel@FreeBSD.org> | 2014-07-12 03:13:00 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-07-12 03:13:00 +0800 |
commit | 43911196eef4431d5b550bdb555b727904be3882 (patch) | |
tree | 1973e28d14a4ccab9dda47834969f7fa6ce0fd43 | |
parent | b41fc0121064f998339d451057ee66e898e8e6bd (diff) | |
download | freebsd-ports-gnome-43911196eef4431d5b550bdb555b727904be3882.tar.gz freebsd-ports-gnome-43911196eef4431d5b550bdb555b727904be3882.tar.zst freebsd-ports-gnome-43911196eef4431d5b550bdb555b727904be3882.zip |
- Add staging support
- Fix COMMENT
- Make BUILD_DEPENDS path independent
- Convert to new options framework, USES=shebangfix
-rw-r--r-- | security/spike-proxy/Makefile | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/security/spike-proxy/Makefile b/security/spike-proxy/Makefile index 1e56fede9c64..bd6acbacc061 100644 --- a/security/spike-proxy/Makefile +++ b/security/spike-proxy/Makefile @@ -8,30 +8,29 @@ MASTER_SITES= http://www.immunitysec.com/downloads/ DISTNAME= SP${PORTVERSION:tl:C/\.//g} EXTRACT_SUFX= .tgz -MAINTAINER= ports@FreeBSD.org -COMMENT= Tool for looking for vulnerabilities in web applications +MAINTAINER= ports@FreeBSD.org +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> |