Date: Fri, 31 May 2013 21:47:07 GMT From: Antoine Brodin <antoine@freebsd.org> To: FreeBSD-gnats-submit@freebsd.org Cc: tanawts <tanawts@gmail.com> Subject: ports/179159: [patch] update security/metasploit to 4.6.2 Message-ID: <201305312147.r4VLl7hm025008@pepperseed.dreadbsd.org> Resent-Message-ID: <201305312220.r4VMK0t6060287@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 179159 >Category: ports >Synopsis: [patch] update security/metasploit to 4.6.2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri May 31 22:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Antoine Brodin >Release: FreeBSD 9.1-RELEASE-p3 amd64 >Organization: none >Environment: System: FreeBSD pepperseed.dreadbsd.org 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Update security/metasploit to 4.6.2 This includes a new port, security/rubygems-metasploit_data_models >How-To-Repeat: >Fix: --- msf.diff begins here --- Index: security/metasploit/Makefile =================================================================== --- security/metasploit/Makefile (revision 319543) +++ security/metasploit/Makefile (working copy) @@ -2,46 +2,50 @@ # $FreeBSD$ PORTNAME= metasploit -DISTVERSION= 4.5.0 +DISTVERSION= 4.6.2 CATEGORIES= security -MASTER_SITES= http://downloads.metasploit.com/data/releases/ +MASTER_SITES= http://downloads.metasploit.com/data/releases/archive/ DISTNAME= framework-${DISTVERSION} MAINTAINER= tanawts@gmail.com COMMENT= Exploit-Framework for Penetration-Testing -RUN_DEPENDS= nasm:${PORTSDIR}/devel/nasm \ - nmap:${PORTSDIR}/security/nmap +RUN_DEPENDS= nasm:${PORTSDIR}/devel/nasm \ + nmap:${PORTSDIR}/security/nmap \ + rubygem-activesupport>=3.0.0:${PORTSDIR}/devel/rubygem-activesupport \ + rubygem-json>=0:${PORTSDIR}/devel/rubygem-json \ + rubygem-msgpack>=0:${PORTSDIR}/devel/rubygem-msgpack \ + rubygem-nokogiri>=0:${PORTSDIR}/textproc/rubygem-nokogiri \ + rubygem-pcaprub>=0:${PORTSDIR}/net/rubygem-pcaprub \ + rubygem-robots>=0:${PORTSDIR}/www/rubygem-robots WRKSRC= ${WRKDIR}/msf3 -SCRIPTS= msfcli msfconsole msfd msfelfscan msfencode msfmachscan \ - msfopcode msfpayload msfpescan msfweb +SCRIPTS= msfbinscan msfcli msfconsole msfd msfelfscan msfencode \ + msfmachscan msfpayload msfpescan msfrop msfrpc msfrpcd msfvenom -OPTIONS_DEFINE= SVN - NO_BUILD= yes USES= ncurses:port USE_RUBY= yes USE_RUBY_FEATURES= iconv USE_BZIP2= yes -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DB +OPTIONS_DEFAULT=DB +DB_DESC= Database support -.if ${RUBY_VER} == 1.8 -RUN_DEPENDS+= ${LOCALBASE}/bin/gem:${PORTSDIR}/devel/ruby-gems -.else -RUN_DEPENDS+= rubygem-actionpack>0:${PORTSDIR}/www/rubygem-actionpack \ - rubygem-sqlite3>0:${PORTSDIR}/databases/rubygem-sqlite3 \ - rubygem-activerecord>0:${PORTSDIR}/databases/rubygem-activerecord \ - rubygem-activesupport>0:${PORTSDIR}/devel/rubygem-activesupport -.endif +.include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MSVN} -RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion +.if ${PORT_OPTIONS:MDB} +RUN_DEPENDS+= rubygem-activerecord>=0:${PORTSDIR}/databases/rubygem-activerecord \ + rubygem-metasploit_data_models>=0.15.1:${PORTSDIR}/security/rubygem-metasploit_data_models \ + rubygem-pg>=0.11:${PORTSDIR}/databases/rubygem-pg .endif +post-patch: + ${REINPLACE_CMD} 's|bundler/setup|rubygems|' ${WRKSRC}/lib/msfenv.rb + do-install: - ${MKDIR} ${DATADIR} + @${MKDIR} ${DATADIR} ${CP} -Rp ${WRKSRC}/ ${DATADIR} .for f in ${SCRIPTS} ${LN} -s ${DATADIR}/${f} ${PREFIX}/bin/${f} @@ -56,4 +60,4 @@ @${FIND} ${DATADIR} -type d | ${SORT} -r | \ ${SED} 's,${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST} -.include <bsd.port.post.mk> +.include <bsd.port.mk> Index: security/metasploit/distinfo =================================================================== --- security/metasploit/distinfo (revision 319543) +++ security/metasploit/distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (framework-4.5.0.tar.bz2) = 1538770b622a9de4acdebe7a73ed6eb584376278e5c914ece329092112dcc3e0 -SIZE (framework-4.5.0.tar.bz2) = 63963598 +SHA256 (framework-4.6.2.tar.bz2) = fc7f9cdf5be68c117fde4ce80b7446c7d89d3a9860b8509e5a5b3fc4a325eae1 +SIZE (framework-4.6.2.tar.bz2) = 40789497 Index: security/rubygem-metasploit_data_models/Makefile =================================================================== --- security/rubygem-metasploit_data_models/Makefile (revision 0) +++ security/rubygem-metasploit_data_models/Makefile (working copy) @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= metasploit_data_models +PORTVERSION= 0.15.1 +CATEGORIES= security rubygems +MASTER_SITES= RG + +MAINTAINER= tanawts@gmail.com +COMMENT= Database layer for Metasploit + +LICENSE= BSD + +RUN_DEPENDS= rubygem-activerecord>=3.2.13:${PORTSDIR}/databases/rubygem-activerecord \ + rubygem-activesupport>=0:${PORTSDIR}/devel/rubygem-activesupport \ + rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST=yes +PLIST_FILES= bin/mdm_console + +.include <bsd.port.mk> Property changes on: security/rubygem-metasploit_data_models/Makefile ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: security/rubygem-metasploit_data_models/distinfo =================================================================== --- security/rubygem-metasploit_data_models/distinfo (revision 0) +++ security/rubygem-metasploit_data_models/distinfo (working copy) @@ -0,0 +1,2 @@ +SHA256 (rubygem/metasploit_data_models-0.15.1.gem) = bc8635c7c2571bd2963a4a61f4abe033a437c796c5302ad87c898dbd78fea854 +SIZE (rubygem/metasploit_data_models-0.15.1.gem) = 81408 Property changes on: security/rubygem-metasploit_data_models/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: security/rubygem-metasploit_data_models/pkg-descr =================================================================== --- security/rubygem-metasploit_data_models/pkg-descr (revision 0) +++ security/rubygem-metasploit_data_models/pkg-descr (working copy) @@ -0,0 +1,11 @@ +MetasploitDataModels exists to do several key things: +- Allow code sharing between Metasploit Framework (MSF) and the commercial +versions of Metasploit (Community, Express, Pro -- usually referred to +collectively as "Pro") +- Give developers a lightweight entry point to MSF's backend for use in +developing tools that gather data intended for later use with Metasploit +(e.g. specialized scanners) +- Make it easy to keep commercial stuff private while increasing the +functionality of the open-source tools we provide to the community + +WWW: https://github.com/rapid7/metasploit_data_models/ Property changes on: security/rubygem-metasploit_data_models/pkg-descr ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property --- msf.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305312147.r4VLl7hm025008>