0b0e85f6ef
This is a maintenance release - all updates to 2.4 have been rolled into 2.5, along with some new exploits and minor features.
85 lines
2.7 KiB
Makefile
85 lines
2.7 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2005/10/19 10:34:33 adrianp Exp $
|
|
#
|
|
|
|
DISTNAME= framework-2.5
|
|
PKGNAME= msf-2.5
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.metasploit.com/tools/
|
|
|
|
MAINTAINER= adrianp@NetBSD.org
|
|
HOMEPAGE= http://www.metasploit.com/
|
|
COMMENT= Platform for developing, testing, and using exploit code
|
|
|
|
DEPENDS+= p5-Net-SSLeay>=1.23:../../security/p5-Net-SSLeay
|
|
DEPENDS+= p5-Term-ReadLine>=1.14:../../devel/p5-Term-ReadLine
|
|
|
|
LICENSE= inlineegg-license
|
|
|
|
MSFDIR?= ${PREFIX}/share/msf
|
|
MSFDOC?= ${PREFIX}/share/doc/msf
|
|
MESSAGE_SUBST+= MSFDIR=${MSFDIR}
|
|
|
|
USE_TOOLS+= perl:run
|
|
PERL_FILES= msfcli msfconsole msfelfscan msfencode msflogdump msfpayload \
|
|
msfpescan msfupdate msfweb
|
|
REPLACE_PERL+= ${PERL_FILES} tools/socketNinja.pl sdk/formatGen.pl \
|
|
sdk/patternOffset.pl sdk/spitCode.pl src/shellcode/import.pl
|
|
|
|
NO_BUILD= YES
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.msf
|
|
PKG_SUPPORTED_OPTIONS= python
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
# add python support for external payloads
|
|
.if !empty(PKG_OPTIONS:Mpython)
|
|
PYTHON_PATCH_SCRIPTS= payloads/external/WindowsSyscall.py \
|
|
payloads/external/bsdx86bind_ie.py \
|
|
payloads/external/bsdx86reverse_ie.py \
|
|
payloads/external/linx86bind_ie.py \
|
|
payloads/external/linx86reverse_ie.py \
|
|
payloads/external/linx86reverse_xor.py \
|
|
payloads/external/win32_stg_winexec.py \
|
|
payloads/external/inlineegg.py
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${MSFDIR}
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/docs
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/data
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/encoders
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/exploits
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/extras
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/lib
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/nops
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/payloads
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/payloads/external
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/sdk
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/src
|
|
${INSTALL_DATA_DIR} ${MSFDIR}/tools
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${MSFDIR}/docs
|
|
${INSTALL_DATA} ${WRKSRC}/encoders/*.pm ${MSFDIR}/encoders
|
|
${INSTALL_DATA} ${WRKSRC}/exploits/*.pm ${MSFDIR}/exploits
|
|
${INSTALL_DATA} ${WRKSRC}/extras/*.tar.gz ${MSFDIR}/extras
|
|
|
|
cd ${PREFIX}/share/doc && ${LN} -s ${MSFDIR}/docs msf
|
|
cd ${WRKSRC}/lib && ${PAX} -rw . ${MSFDIR}/lib
|
|
cd ${WRKSRC}/sdk && ${PAX} -rw . ${MSFDIR}/sdk
|
|
cd ${WRKSRC}/tools && ${PAX} -rw . ${MSFDIR}/tools
|
|
cd ${WRKSRC}/src && ${PAX} -rw . ${MSFDIR}/src
|
|
cd ${WRKSRC}/data && ${PAX} -rw . ${MSFDIR}/data
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/nops/*.pm ${MSFDIR}/nops
|
|
${INSTALL_DATA} ${WRKSRC}/payloads/*.pm ${MSFDIR}/payloads
|
|
${INSTALL_DATA} ${WRKSRC}/payloads/external/*.py \
|
|
${MSFDIR}/payloads/external
|
|
|
|
cd ${WRKSRC}; for f in ${PERL_FILES}; do \
|
|
${INSTALL_SCRIPT} $$f ${MSFDIR}; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|