2004-12-19 16:52:20 -05:00
|
|
|
# Ports collection makefile for: metasploit
|
|
|
|
# Date created: 18 Nov 2004
|
|
|
|
# Whom: Yonatan <onatan@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= metasploit
|
2006-11-01 03:50:31 -05:00
|
|
|
PORTVERSION= 2.7
|
2004-12-19 16:52:20 -05:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= http://www.metasploit.org/tools/
|
|
|
|
DISTNAME= framework-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= onatan@gmail.com
|
|
|
|
COMMENT= Exploit-Framework for Penetration-Testing
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${SITE_PERL}/mach/Term/ReadLine/Gnu.pm:${PORTSDIR}/devel/p5-ReadLine-Gnu \
|
|
|
|
${SITE_PERL}/mach/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \
|
2006-11-01 03:50:31 -05:00
|
|
|
${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm \
|
|
|
|
${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion
|
2004-12-19 16:52:20 -05:00
|
|
|
|
2006-07-31 21:44:18 -04:00
|
|
|
CONFLICTS= metasploit-3*
|
2007-04-26 05:42:19 -04:00
|
|
|
DEPRECATED= This port will soon be replaced by metasploit 3 (security/metasploit-devel)
|
|
|
|
EXPIRATION_DATE= 2007-05-30
|
2006-07-31 21:44:18 -04:00
|
|
|
|
2004-12-19 16:52:20 -05:00
|
|
|
NO_BUILD= yes
|
|
|
|
USE_PERL5_RUN= yes
|
2005-11-07 05:32:38 -05:00
|
|
|
REINPLACE_ARGS= -i ''
|
|
|
|
|
2006-11-01 03:50:31 -05:00
|
|
|
SCRIPTS= msfcli msfconsole msfelfscan msfencode msflogdump msfpayload \
|
|
|
|
msfpescan msfupdate msfweb msfdldebug
|
2004-12-19 16:52:20 -05:00
|
|
|
|
2005-11-07 05:32:38 -05:00
|
|
|
post-patch:
|
|
|
|
.for f in ${SCRIPTS}
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
2006-11-01 03:50:31 -05:00
|
|
|
@${REINPLACE_CMD} -e 's|framework-2.x|${DATADIR}|' ${WRKSRC}/msfupdate
|
2005-11-07 05:32:38 -05:00
|
|
|
|
2004-12-19 16:52:20 -05:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${CP} -Rp ${WRKSRC}/ ${DATADIR}
|
2005-11-07 05:32:38 -05:00
|
|
|
.for f in ${SCRIPTS}
|
|
|
|
${LN} -s ${DATADIR}/${f} ${PREFIX}/bin
|
|
|
|
.endfor
|
2004-12-19 16:52:20 -05:00
|
|
|
|
2007-04-26 05:42:19 -04:00
|
|
|
.include <bsd.port.mk>
|