From f1a8e1f7ccf99a4a16e5b23b588e65a1edfc96a7 Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Thu, 12 Jan 2012 08:14:41 +0000 Subject: [PATCH] Bump Package-Manager: portage-2.2.0_alpha83/cvs/Linux x86_64 --- net-analyzer/metasploit/ChangeLog | 10 +- net-analyzer/metasploit/Manifest | 6 +- .../metasploit/files/msfrpcd-4.1-conf | 25 +++++ .../metasploit/files/msfrpcd-4.1-initd | 22 +++++ .../metasploit/metasploit-4.1.4.ebuild | 93 +++++++++++++++++++ 5 files changed, 153 insertions(+), 3 deletions(-) create mode 100644 net-analyzer/metasploit/files/msfrpcd-4.1-conf create mode 100644 net-analyzer/metasploit/files/msfrpcd-4.1-initd create mode 100644 net-analyzer/metasploit/metasploit-4.1.4.ebuild diff --git a/net-analyzer/metasploit/ChangeLog b/net-analyzer/metasploit/ChangeLog index 3ab3a8e83bfb..3fc6c4e912e4 100644 --- a/net-analyzer/metasploit/ChangeLog +++ b/net-analyzer/metasploit/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/metasploit -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.57 2011/08/04 22:03:37 patrick Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.58 2012/01/12 08:14:41 patrick Exp $ + +*metasploit-4.1.4 (12 Jan 2012) + + 12 Jan 2012; Patrick Lauer +files/msfrpcd-4.1-conf, + +files/msfrpcd-4.1-initd, +metasploit-4.1.4.ebuild: + Bump *metasploit-4.0.0-r1 (04 Aug 2011) diff --git a/net-analyzer/metasploit/Manifest b/net-analyzer/metasploit/Manifest index bf593b18dbcf..eaf91bc6a99c 100644 --- a/net-analyzer/metasploit/Manifest +++ b/net-analyzer/metasploit/Manifest @@ -1,6 +1,8 @@ AUX metasploit.icon 7630 RMD160 4289bddb6b240c8ab94f309cd32dfdd23fc4aa99 SHA1 3bab78d9b905d32ead2e3be13f8fd6553d097dd3 SHA256 d197dd3b939c35d951c2cd5c19b51200ada7f8f92d90775a9eaebdccf18e3949 AUX msfrpcd-4.0-conf 598 RMD160 2c9564cb3422deb4b46254a574f55323896c110c SHA1 0ac1235ecba0d22fc03b2f5adea359a55370a043 SHA256 3ad3e837061fd2b8b28d5afede50fc1965b0df083a8e4b743f39398a344eb6e1 AUX msfrpcd-4.0-initd 636 RMD160 7d5c93935ce73646635e4748c12e3680854bdcf2 SHA1 3b1cc660ddfca643dad93ede1e326b082443a026 SHA256 18804548c2c869addc72a9c003c35c6d25b8144a9a0f841df602834c27c5fd52 +AUX msfrpcd-4.1-conf 598 RMD160 2c9564cb3422deb4b46254a574f55323896c110c SHA1 0ac1235ecba0d22fc03b2f5adea359a55370a043 SHA256 3ad3e837061fd2b8b28d5afede50fc1965b0df083a8e4b743f39398a344eb6e1 +AUX msfrpcd-4.1-initd 636 RMD160 1639d609d963003849f3e8816e74392a04e8265e SHA1 d5356ebb2219682811cc2ee25d0b1b48782959a6 SHA256 f2a02e0c494d5b3dd4641c8640374dc9d3a16adbe37de73096a157f200b3b29a AUX msfweb.confd 273 RMD160 35c10406c74e431aa592c7af6d14f813ad18b984 SHA1 66cff0fe0423baa89ffdd3745b7195ae0f0bf273 SHA256 006040ecd27dc0279c2bea6d69365fe1f0d66f507c039ae43720662abe9f4460 AUX msfweb.initd 533 RMD160 44f94381ae9488fb2e3c6f700458798b692971d7 SHA1 9b62d7d85af34430dda55a192460caae258ba978 SHA256 4fd9668e4b467ecfa5160e2c108ac8ace71fbeaefaf829d2f7bfb566d44bb13c AUX msfweb3.2.confd 234 RMD160 2cad154dc7ac4e836e8b4dd8c4366521742f90b3 SHA1 c3bac2879f00f56ff0a0737eea6a4d200f5761c9 SHA256 bc911b32a2c81d337135c7614e0982e102056fb174d274177cc2b8aca717e97f @@ -19,6 +21,7 @@ DIST framework-3.5.0.tar.bz2 42254784 RMD160 090d557574b8e98e461f9de2bb95f604d74 DIST framework-3.6.0.tar.bz2 47125266 RMD160 afdbce02626ac994d8351d69846a5033758c2783 SHA1 1c78cd774204d6edd6e795ef1dff36d49836f530 SHA256 a113cf9e1a499377807990e506acad83afee18845a148a02747087132fac39a7 DIST framework-3.7.0.tar.bz2 49488660 RMD160 56c76a7d24372f48f5d84da1713acbc7f54590af SHA1 8ca60e75b90da4555274b5fb3a20a152c581aa02 SHA256 1e39a0de7e4b6cc4144b5ea47b3598e6edf27ac00abac5d84e1fec04b7f95dc5 DIST framework-4.0.0.tar.bz2 79515768 RMD160 f8eedb9d68f30b245217b4ed40308dcd351d37c5 SHA1 f1768564be92abcea3ea34fde14acb1af4d52f1d SHA256 45c3c379ea82e46d8efef9cbbe0afa8ae8df98e50f2642afcea84a86c83c5a50 +DIST framework-latest.tar.bz2 77862536 RMD160 33b8e617105552e611356dd337fa29fc84a45362 SHA1 f978b82d0b5d65e2958006aa9a6fca01573b9539 SHA256 f172b46ce6ea19845bfcf919017190bc0b17bc6631259d814c0b639a4a896467 EBUILD metasploit-2.7.ebuild 1451 RMD160 86b02866587de2829a1905ab274cbe4abdd41991 SHA1 e7cc8fb826d55a9be1125dd63ea16798dea1c393 SHA256 fc61998068bf093cf4a68f1563130bed0c1c05c6db7fee51669e49de9460cc96 EBUILD metasploit-3.3.3.ebuild 2919 RMD160 69d867f0c6e7448da1953fe157a28d57718e8235 SHA1 a7344a0baa68cd6a8717b94ef998066f90158e17 SHA256 d65d28b77e8326f9fde85225bef7f7a37e2327fd3f69075653bd13b440e3711b EBUILD metasploit-3.4.0.ebuild 2919 RMD160 0ea84526740db98f902db71e87aaaf73ac0db5ef SHA1 e2a5b180f53844ef927e4412296aaa1d0575fd2a SHA256 75eb237471c8d9cce33d1d48eda9ff0dfee316c1d8e954225e70243109ca0c47 @@ -27,6 +30,7 @@ EBUILD metasploit-3.5.0.ebuild 2745 RMD160 4c520154549bd47c14cd22651fb4f39e320e3 EBUILD metasploit-3.6.0.ebuild 2754 RMD160 cc4d8b91773057649ab5ad6ca858a98def25ba5f SHA1 6d33c16a45214df02a297ea8b1192fc52ed5c7c6 SHA256 7d3809310e145c8a6e1cd928f469012e4efa34db968733fdd3c93b9569e3d356 EBUILD metasploit-3.7.0.ebuild 2754 RMD160 ba32c35b85473387b07df523944a00c19cdf8b30 SHA1 c6c718c9d7a0aeaa8361ea018449716ed7897148 SHA256 07ce498669f9b2f7d701c76ca3543d2f7f1b747739ec7b6bde0636baab6ac21a EBUILD metasploit-4.0.0-r1.ebuild 2688 RMD160 f715ed95b8b1399f88571e2ad3a63a62e46ff497 SHA1 980e38093a7a1ada90ddcc571676d2dcd696cc3d SHA256 5ef00af92caab2471fa770077d812049e25718d3067934383e5239c7a61cfff1 +EBUILD metasploit-4.1.4.ebuild 2817 RMD160 3caa504a9b8b8e3ba49dff9e508ade25141f5baa SHA1 4883a9867510d5b5202b638419fa5a396cf4e3d7 SHA256 179db43a6f009d9b6196a3bb4729d299541a200024d80c9a4f9061bbceab4be6 EBUILD metasploit-9999.ebuild 3475 RMD160 a4f5b34ba451ebd9bdc049c0fa8dc35bb22da853 SHA1 e3d90752bfcaa5bced62671ec47ed4340caa17f1 SHA256 660c8839a36a3331c8d2a55fb12c1c0d5b8a366990fe34417b80460eb797a385 -MISC ChangeLog 9943 RMD160 e2e03435e683f678d8037affa4191da70c728b0d SHA1 6e9ebdb72c2008e8848f77350b1efe64d26e6fa2 SHA256 c74e5c2a6ee0f159ad374f61de9d463f6f0a9aa2119c1eef7a5227455c29c2ff +MISC ChangeLog 10113 RMD160 b0823492fff9bb9a6be3a2e3e46eb1866103bcae SHA1 6504daa9fba75f18d6fc9c43e1dc32be650b4d63 SHA256 af90936e286af41cec92a9b54ebde8af00ffe3aae4558d594d9e13f97816e665 MISC metadata.xml 921 RMD160 921434e10f300e7c3ad351a78009e44a712bf6d2 SHA1 1060d47deb200ba7fcdf4c2b6a0ce864a0adecc1 SHA256 9a88142f22ae111d23f70b42bb41e42301dd5f4c918cc5e0ef585236c1439b22 diff --git a/net-analyzer/metasploit/files/msfrpcd-4.1-conf b/net-analyzer/metasploit/files/msfrpcd-4.1-conf new file mode 100644 index 000000000000..dc56a9d966a6 --- /dev/null +++ b/net-analyzer/metasploit/files/msfrpcd-4.1-conf @@ -0,0 +1,25 @@ +# Config file for /etc/init.d/msfrpcd + +# msfrpcd -h for more info + +# Bind to the following IP instead of 0.0.0.0 +MSF_OPTS="-a 127.0.0.1" + +# Bind to the following TCP port instead of default 55553 +#MSF_OPTS="${MSF_OPTS} -p 55553" + +# Specify the username to access msfrpcd +MSF_OPTS="${MSF_OPTS} -U msf" + +# Specify the password to access msfrpcd +MSF_OPTS="${MSF_OPTS} -P secret" + +# Server type, [Basic|Web] +#MSF_OPTS="${MSF_OPTS} -t Basic" + +# URI for Web server +#MSF_OPTS="${MSF_OPTS} -u " + +# Disable SSL on the XMLRPC socket +# JAVA GUI doesn't support SSL as of Nov 6, 2010 +MSF_OPTS="${MSF_OPTS} -S" diff --git a/net-analyzer/metasploit/files/msfrpcd-4.1-initd b/net-analyzer/metasploit/files/msfrpcd-4.1-initd new file mode 100644 index 000000000000..7527d9c7cf78 --- /dev/null +++ b/net-analyzer/metasploit/files/msfrpcd-4.1-initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/files/msfrpcd-4.1-initd,v 1.1 2012/01/12 08:14:41 patrick Exp $ + +VERSION=4.0 +PIDFILE=/var/run/msfrpcd${VERSION}.pid + +start() { + ebegin "Starting msfrpcd${VERSION}" + start-stop-daemon --start --quiet --background \ + --exec /usr/lib/metasploit${VERSION}/msfrpcd \ + --pidfile ${PIDFILE} \ + --make-pidfile -- -f ${MSF_OPTS} + eend $? +} + +stop() { + ebegin "Stopping msfrpcd${VERSION}" + start-stop-daemon --stop --quiet -s 9 --pidfile ${PIDFILE} + eend $? +} diff --git a/net-analyzer/metasploit/metasploit-4.1.4.ebuild b/net-analyzer/metasploit/metasploit-4.1.4.ebuild new file mode 100644 index 000000000000..906d4bf17bc9 --- /dev/null +++ b/net-analyzer/metasploit/metasploit-4.1.4.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-4.1.4.ebuild,v 1.1 2012/01/12 08:14:41 patrick Exp $ + +EAPI="3" +inherit eutils + +#SRC_URI="http://updates.metasploit.com/data/releases/framework-${PV}.tar.bz2" +# Naughty upstream ... no versioning at the moment +SRC_URI="http://downloads.metasploit.com/data/releases/framework-latest.tar.bz2" + +DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code" +HOMEPAGE="http://www.metasploit.org/" + +LICENSE="BSD" +SLOT="4.1" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="gui mysql postgres" + +# Note we use bundled gems (see data/msfweb/vendor/rails/) as upstream voted for +# such solution, bug #247787 +RDEPEND="dev-lang/ruby + dev-ruby/rubygems + gui? ( virtual/jre ) + mysql? ( dev-ruby/mysql-ruby + dev-ruby/activerecord[mysql] ) + postgres? ( dev-ruby/ruby-postgres + dev-ruby/activerecord[postgres] )" +DEPEND="" + +QA_PRESTRIPPED=" + usr/lib/${PN}${SLOT}/data/msflinker_linux_x86.bin + usr/lib/${PN}${SLOT}/data/templates/template_armle_linux.bin + usr/lib/${PN}${SLOT}/data/templates/template_x86_linux.bin" + +QA_EXECSTACK=" + usr/lib/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin" +QA_WX_LOAD=" + usr/lib/${PN}${SLOT}/data/templates/template_*_linux.bin" + +S=${WORKDIR}/msf + +src_configure() { + # upstream makes weird tarbllz + find "${S}" -type d -name ".svn" -print0 | xargs -0 -n1 rm -R + + rm "${S}"/msfupdate + chmod +x "${S}"/msf* + + use gui || rm msfgui +} + +src_install() { + # should be as simple as copying everything into the target... + dodir /usr/lib/${PN}${SLOT} + cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT} + chown -R root:0 "${D}" + + # do not remove LICENSE, bug #238137 + dodir /usr/share/doc/${PF} + cp "${S}"/{README,HACKING} "${D}"/usr/share/doc/${PF} + dosym /usr/lib/${PN}${SLOT}/documentation /usr/share/doc/${PF}/documentation + + dodir /usr/bin/ + for file in msf*; do + dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT} + done + + newinitd "${FILESDIR}"/msfrpcd-${SLOT}-initd msfrpcd${SLOT} || die + newconfd "${FILESDIR}"/msfrpcd-${SLOT}-conf msfrpcd${SLOT} || die + + use gui && make_desktop_entry msfgui${SLOT} \ + "Metasploit Framework" \ + metasploit \ + 'GNOME;System;Network;' && + doicon "${FILESDIR}"/metasploit.xpm + + # Avoid useless revdep-rebuild trigger #377617 + dodir /etc/revdep-rebuild/ + echo "SEARCH_DIRS_MASK=\"/usr/lib*/${PN}${SLOT}/data/john\"" > \ + ${D}/etc/revdep-rebuild/70-${PN}-${SLOT} +} + +pkg_postinst() { + if use gui; then + elog "You will need to create a /usr/bin/msfrpcd symlink pointing to" + elog "the version of msfrpcd if you want to be able to start msfrpcd" + elog "from the java gui." + elog + elog "ln /usr/bin/msfrpcd${SLOT} /usr/bin/msfrpcd" + elog + fi +} -- 2.26.2