aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2010-03-11 00:58:22 +0800
committergahr <gahr@FreeBSD.org>2010-03-11 00:58:22 +0800
commit72d1ce0a7a16470092428a1106dd55772f009634 (patch)
treeb5e123be89da2daced4903277f878ab84e373e40 /security
parenta2edbb0c326dd363c23d7d6ef9573d492cb2bedb (diff)
downloadfreebsd-ports-gnome-72d1ce0a7a16470092428a1106dd55772f009634.tar.gz
freebsd-ports-gnome-72d1ce0a7a16470092428a1106dd55772f009634.tar.zst
freebsd-ports-gnome-72d1ce0a7a16470092428a1106dd55772f009634.zip
- Respect PREFIX, hopefully fixing the previous commit.
Reported by: QAT
Diffstat (limited to 'security')
-rw-r--r--security/w3af/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/security/w3af/Makefile b/security/w3af/Makefile
index a2a9e661e9dc..62c8b3f74d00 100644
--- a/security/w3af/Makefile
+++ b/security/w3af/Makefile
@@ -57,31 +57,33 @@ do-patch:
do-build:
@${MKDIR} ${WRKDIR}/build
@${MKDIR} ${WRKSRC}/build/extlib
- @${CP} -R ${WRKSRC}/w3af_console ${WRKDIR}/build/w3af_console.py
+ @${CP} ${WRKSRC}/w3af_console ${WRKDIR}/build/w3af_console.py
.if defined(WITH_GUI)
- @${CP} -R ${WRKSRC}/w3af_gui ${WRKDIR}/build/w3af_gui.py
+ @${CP} ${WRKSRC}/w3af_gui ${WRKDIR}/build/w3af_gui.py
.endif
.for f in core locales plugins profiles readme scripts tools
- @${CP} -R ${WRKSRC}/${f} ${WRKDIR}/build/
+ @${MKDIR} ${WRKDIR}/build/${f}
+ @(cd ${WRKSRC}/${f}/ && ${COPYTREE_SHARE} \* ${WRKDIR}/build/${f})
.endfor
.for ext in cluster pygoogle socksipy xdot
- @${CP} -R ${WRKSRC}/extlib/${ext} ${WRKDIR}/build/extlib/
+ @${MKDIR} ${WRKDIR}/build/extlib/${ext}
+ @(cd ${WRKSRC}/extlib/${ext}/ && ${COPYTREE_SHARE} \* ${WRKDIR}/build/extlib/${ext})
.endfor
@${CP} ${WRKSRC}/extlib/__init__.py ${WRKDIR}/build/extlib/
@${PYTHON_CMD} -m compileall ${WRKDIR}/build
@${PYTHON_CMD} -O -m compileall ${WRKDIR}/build
.for f in w3af_console w3af_gui
- @${SED} -e 's:%%PATH%%:${PYTHON_SITELIBDIR}/${PORTNAME}/:' \
+ @${SED} -e 's:%%PATH%%:${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/:' \
-e 's:%%PYTHON_CMD%%:${PYTHON_CMD}:' \
< ${FILESDIR}/${f}.sh > ${WRKDIR}/${f}.sh
.endfor
do-install:
- @${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}/
- @${CP} -R ${WRKDIR}/build/* ${PYTHON_SITELIBDIR}/${PORTNAME}/
- @${INSTALL_SCRIPT} ${WRKDIR}/w3af_console.sh ${LOCALBASE}/bin/w3af_console
+ @${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/
+ @(cd ${WRKDIR}/build && ${COPYTREE_SHARE} \* ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/)
+ @${INSTALL_SCRIPT} ${WRKDIR}/w3af_console.sh ${PREFIX}/bin/w3af_console
.if defined(WITH_GUI)
- @${INSTALL_SCRIPT} ${WRKDIR}/w3af_gui.sh ${LOCALBASE}/bin/w3af_gui
+ @${INSTALL_SCRIPT} ${WRKDIR}/w3af_gui.sh ${PREFIX}/bin/w3af_gui
.endif
.include <bsd.port.mk>