2007-07-22 22:04:25 -04:00
|
|
|
# Ports collection makefile for: metasploit-devel
|
|
|
|
# Date created: 18 Nov 2004
|
|
|
|
# Whom: Yonatan <onatan@gmail.com>
|
2004-12-19 16:52:20 -05:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= metasploit
|
2007-07-22 22:04:25 -04:00
|
|
|
DISTVERSION= 3.0-beta-3
|
2004-12-19 16:52:20 -05:00
|
|
|
CATEGORIES= security
|
2007-07-22 22:04:25 -04:00
|
|
|
MASTER_SITES= #
|
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
DISTNAME= framework-${DISTVERSION}-svn
|
2004-12-19 16:52:20 -05:00
|
|
|
|
|
|
|
MAINTAINER= onatan@gmail.com
|
|
|
|
COMMENT= Exploit-Framework for Penetration-Testing
|
|
|
|
|
2007-07-22 22:04:25 -04:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion \
|
|
|
|
${LOCALBASE}/bin/gem:${PORTSDIR}/devel/ruby-gems \
|
|
|
|
${LOCALBASE}/lib/ruby/gems/1.8/specifications/activerecord-1.15.3.gemspec:${PORTSDIR}/databases/rubygem-activerecord
|
2004-12-19 16:52:20 -05:00
|
|
|
|
2007-07-22 22:04:25 -04:00
|
|
|
SCRIPTS= msfcli msfconsole msfd msfencode msflicense msfopcode \
|
|
|
|
msfpayload msfpescan msfweb
|
2006-07-31 21:44:18 -04:00
|
|
|
|
2007-07-22 22:04:25 -04:00
|
|
|
WRKSRC= ${WRKDIR}/framework-${DISTVERSION}
|
|
|
|
RESTRICTED= May not be re-sold for more than the cost of duplication, nor redistributed after patching
|
2004-12-19 16:52:20 -05:00
|
|
|
|
2007-07-22 22:04:25 -04:00
|
|
|
CONFLICTS= metasploit-2*
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_RUBY= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_MSFWX)
|
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/wxruby.so:${PORTSDIR}/x11-toolkits/ruby-wx
|
|
|
|
SCRIPTS+= msfwx
|
|
|
|
PLIST_SUB+= MSF=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MSF="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
|
|
|
|
ECHO_MSG=/usr/bin/printf
|
|
|
|
IGNORE=\n \
|
|
|
|
Due to licensing restrictions you have to accept the Metasploit Framework\n \
|
|
|
|
License before downloading ${DISTNAME}${EXTRACT_SUFX}. Please direct your\n \
|
|
|
|
web browser to http://metasploit.com/projects/Framework/msf3/ to read and\n \
|
|
|
|
accept the license. Once downloaded, save ${DISTNAME}${EXTRACT_SUFX} \n \
|
|
|
|
in ${DISTDIR} and try again.\n
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKSRC}/ -type d -name '.svn' | ${XARGS} ${RM} -rf
|
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-07-22 22:04:25 -04:00
|
|
|
.include <bsd.port.post.mk>
|