From abdc53be121ad4e1d657b236f02a6fa8679d5717 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Sat, 11 Feb 2012 02:43:03 +0000 Subject: [PATCH] metasploit-bin: first pass at an ebuild using the metasploit installer and treating it as a binary. This should allow full functionality with little setup and actual support from the msf team. *sigh*, the binary installer errors and provides a binary error, how helpful. I hope bitrock support gets back to me soon. --- net-analyzer/metasploit-bin/Manifest | 3 ++ .../metasploit-bin/metasploit-bin-9999.ebuild | 45 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 net-analyzer/metasploit-bin/Manifest create mode 100644 net-analyzer/metasploit-bin/metasploit-bin-9999.ebuild diff --git a/net-analyzer/metasploit-bin/Manifest b/net-analyzer/metasploit-bin/Manifest new file mode 100644 index 000000000..a4ca6b1cf --- /dev/null +++ b/net-analyzer/metasploit-bin/Manifest @@ -0,0 +1,3 @@ +DIST metasploit-latest-linux-installer.run 243922601 RMD160 ff8ec6984aa397e8ac306fb640feae8718750d54 SHA1 18de72a751a92c1ed5606f8967c458b2ce5ee197 SHA256 60f8f3f31fd57d7a0f5c87f0ebfeeb9b3e238f5998e9139730794ae09a4b814a +DIST metasploit-latest-linux-x64-installer.run 245241294 RMD160 624e063abba608ea0e3fc6b4d9c4e422faf903a3 SHA1 0d5592b09a3770dedb3f485000a3cc24ae8a4735 SHA256 ea55a7316e620900ed5ca87fc2f1218fea744678560ed02b9f7979acf1d5930b +EBUILD metasploit-bin-9999.ebuild 1471 RMD160 2328e4caef47c1a8267cbdfee6eefce2fa6ca17d SHA1 47fd7c9a4aea9f17e3a42a61f6fc485e199356c4 SHA256 f48b9ac239e0880d0e98110be4a5d58a6e072206e4ac493e2943a45ecc8734b9 diff --git a/net-analyzer/metasploit-bin/metasploit-bin-9999.ebuild b/net-analyzer/metasploit-bin/metasploit-bin-9999.ebuild new file mode 100644 index 000000000..13f46b06a --- /dev/null +++ b/net-analyzer/metasploit-bin/metasploit-bin-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +DESCRIPTION="" +HOMEPAGE="" +SRC_URI="amd64? ( "http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run" ) \ + x86? ( "http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run" )" + +LICENSE="" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="!net-analyzer/metasploit" +RDEPEND="${DEPEND}" + +RESTRICT="strip" + +S=${WORKDIR} + +src_unpack() { + die "This is not ready for use yet, don't even try" + use amd64 && cp "${DISTDIR}/metasploit-latest-linux-x64-installer.run" "${WORKDIR}" + use x86 && cp "${DISTDIR}/metasploit-latest-linux-installer.run" "${WORKDIR}" + + use amd64 && chmod 755 "${WORKDIR}/metasploit-latest-linux-x64-installer.run" + use x86 && chmod 755 "${WORKDIR}/metasploit-latest-linux-installer.run" +} + +pkg_setup() { + : +} + +src_install() { + # We add the following line because metasploit insists on adding it's own postgres user otherwise + # do a proper newuser newgroup in here, steal it from the postgres ebuild + addpredict /etc/passwd + + use amd64 && ${WORKDIR}/metasploit-latest-linux-x64-installer.run --mode unattended --prefix "${ED}/opt/metasploit" --debuglevel 4 --debugtrace "${ED}/opt/metasploit/install.log" + use x86 && ${WORKDIR}/metasploit-latest-linux-installer.run --mode unattended +# make_wrapper skype ./skype /opt/skype /opt/skype +}