summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Farina <zerochaos@gentoo.org>2014-04-11 17:38:54 +0000
committerRichard Farina <zerochaos@gentoo.org>2014-04-11 17:38:54 +0000
commitfaad741cec39e430cd2d8052bdcff632d641547d (patch)
treebfeea8a4e4096475b35ac81b129a8158455ce124 /net-analyzer
parentKeyword ~amd64-linux ~x86-linux (diff)
downloadhistorical-faad741cec39e430cd2d8052bdcff632d641547d.tar.gz
historical-faad741cec39e430cd2d8052bdcff632d641547d.tar.bz2
historical-faad741cec39e430cd2d8052bdcff632d641547d.zip
version bump, remove old
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xDD11F94A
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/metasploit/ChangeLog8
-rw-r--r--net-analyzer/metasploit/Manifest33
-rw-r--r--net-analyzer/metasploit/metasploit-4.8.2.ebuild244
-rw-r--r--net-analyzer/metasploit/metasploit-4.9.2.ebuild (renamed from net-analyzer/metasploit/metasploit-4.9.1.ebuild)2
4 files changed, 24 insertions, 263 deletions
diff --git a/net-analyzer/metasploit/ChangeLog b/net-analyzer/metasploit/ChangeLog
index df06f665b9b5..3b17e37f2f57 100644
--- a/net-analyzer/metasploit/ChangeLog
+++ b/net-analyzer/metasploit/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/metasploit
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.84 2014/04/11 03:32:23 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.85 2014/04/11 17:38:42 zerochaos Exp $
+
+*metasploit-4.9.2 (11 Apr 2014)
+
+ 11 Apr 2014; Rick Farina <zerochaos@gentoo.org> +metasploit-4.9.2.ebuild,
+ -metasploit-4.8.2.ebuild, -metasploit-4.9.1.ebuild:
+ version bump, remove old
*metasploit-4.9.1 (11 Apr 2014)
diff --git a/net-analyzer/metasploit/Manifest b/net-analyzer/metasploit/Manifest
index d19d9054b8a9..997e8f63fce5 100644
--- a/net-analyzer/metasploit/Manifest
+++ b/net-analyzer/metasploit/Manifest
@@ -17,29 +17,28 @@ AUX msfweb.initd 533 SHA256 4fd9668e4b467ecfa5160e2c108ac8ace71fbeaefaf829d2f7bf
DIST framework-2.7.tar.gz 5800216 SHA256 516952772aaa8982628460b927c9119850925f870903c5a131a9c9f0390cf77f SHA512 a65740c81e6c711e6661170ec0dd87919cad6c4aa3aaac08fdaa72b4825be4bea28ec09c78f818ddab7660f5b485b13f87e3175b43c625319ce89b044a40f2a0 WHIRLPOOL f309608e30488484b24555fec84e65ed0dcbeba62a69e6ec23c507dbc0fcf720551a795e2a0793886fcd38d3a9b160819c864720155f58f274577b0246f05946
DIST framework-4.4.0.tar.bz2 148529027 SHA256 ddcc7890a394d8154120a163c90b11119a0322b62d937ad1a3a14ef3fe6cf74e SHA512 dffa5dd36904d4963d0fd240f1796d43824f7df011f91d75a41f0d0ff20d942fc8a3d10495c1a0537df5b455ad7055760743e5022d742e5321b679b2d4c003df WHIRLPOOL ee0fa85a83965f75213e60aaf0174b1962841e8f10193be1cd6bea1aff561f80471c4d8892a07e65ad767587e73c4445b88149460cc5bc5509b5b096f2375b52
DIST framework-4.8.2.tar.bz2 35964128 SHA256 7678fce2b22ff824f48244f52fdb27a2a7823d7332f2a75e4c670ccfa5aa6471 SHA512 6a9a8b5704c3331bd7fa4b004f234ee7b9d7ad93b244b44a3184810b97bdfd0ede17a044c3a6f63ef3fe02f9845c85dd82b3da46dba5633724b9784adafe3d71 WHIRLPOOL a5e2d0d995dc3401aab851b3ce3c1b0e0945bf6b5b7921575056ee7398203728ceb2dfa88cb8106276271fbde2c3ef01ae780bf3af4adb7fdab22b709c72dfe6
-DIST framework-4.9.1.tar.bz2 36148575 SHA256 099a13daa16fadc26660cf45f99c851e5c5c06d071a6faa240fe8bcc3df5362b SHA512 144542299fd805909d33feef705adcbc1190331d651c6c8688b6dc0c767b454e61671d85ff2ab8b70166e29d2d4a9f1bd85a1b3285d94e9bb9a1ec9f2e35ff2d WHIRLPOOL f4f82f51c1ef60e2b4de9638c51f09a8f27d8ce6c4cc0850efa8fa9b28cac13aa0a642623a6d08a6283c401f9f80e5923a0778b2458914b91d2a2405ba600ecc
+DIST framework-4.9.2.tar.bz2 36150330 SHA256 0371cbaf5d5f7c66e3e8eb5cc7ee10ffeb043a2c2622550a5d79852b4a09777d SHA512 5b5c89b0f81ac551bb6b7f78eee322aa149a16df9f56696ec9c8df2ca68b7f9d09203d073f71fe97422e1e2c85755295fe53a0e07169ef52d39ccbbf92008c0d WHIRLPOOL 01627530a2e62fec41bb0e5201f1defdf37b1648f890048e2f44f870aed34ddbb4749a85066f1397d2fbc309fe8400604122fabb1ebdac761b8b458fd69da4ef
EBUILD metasploit-2.7.ebuild 1448 SHA256 4e186ca7e1133568ae38e62584b86600cfc65c7b7bec691b85418151901ea984 SHA512 a31c2dfc5a32eabad32dd50ba9a82a75b35661c81b039a284a14d0ecc0ae2ebae46c29f7e6dd6f30b2671f0509f3ef1a7045c6537d626832eac375d0cb8325a1 WHIRLPOOL ff86aadb12002ea6d2f050927c087ba436b3362d64d0cd2b0785ae727349ae12f010eba7e7e572831e9d95c217d93abc2ecc9862061feada26e823987560d7be
EBUILD metasploit-4.4.0-r1.ebuild 6023 SHA256 d3b9ba91f0572d07cf9e858e5a51f4d40d14d019ab1485ecdc186dd46b0a87db SHA512 73f1a07b35cc9e83082c7998d44422f80c02ca34a06664d0cd8b486dfac9ae6a4d2d3a7158c6eedc1713487d9ec1cac79ebc1acc1d3d30723381b871b120e8f1 WHIRLPOOL 18074f28e2fe33960df766ba9f48cef00caaef64b631d651d0bb07f40f461a7388e2637d8d35f515ed8dbf11d96c626d1912762593cf9f25d0d067550d2edf05
EBUILD metasploit-4.8.2-r1.ebuild 9181 SHA256 0d871765c984ad403c9f9fc9e582c9d4e1d4485d8a1b9cdaf9b50fb2c909fc11 SHA512 9635055a497a229e10fccfa96fc84ccbe98c351d207fb1a04c99f31f7b537111ddb44c89e6328a5acaecf0ac4a77ef85145928156b8d894d9995045eba42226d WHIRLPOOL 0864d5ecaa9577dedcc98387dff67136812dd413b0da8eb63b76e37be22958b96916648a8405272a3a27fc9aa2216c34619820d7bc94e3942688d2404e57a89f
-EBUILD metasploit-4.8.2.ebuild 9637 SHA256 27d3c3d0c6947d6b13b9df1efa3622b4ab289f6900446c5b42e20e7d5e89e8de SHA512 0c01e59623bcb998631963e7f54481d798bf65292044c2c2d304fc75b9967ebba2acf9a40f56b7b9b88d7dc0ff7afc40ddfed0d6d51e09183620bc4ec5491bdd WHIRLPOOL 6def4d3eb99c429fb804c6568baf5bce6e6ebbfaac96998efc8776e71336bef17bcf026d22ea42defaf29f0d1bab9d5c8c142a8f67e663d30949e19cae874cc3
-EBUILD metasploit-4.9.1.ebuild 9523 SHA256 4995c04554fdc28b984025e4fa5199fe8036337c242a412f9d09aae8491d4e62 SHA512 0e0750e35704a586c6b014a25acae16893f8d09cb2e57c111afb7d55b33f082eea147db455c54c692263263a99a894de08b0b691483c26e603c7e36128c36a68 WHIRLPOOL e992bb967bf359f28b729720048abdae08538564a103669a0fc7b3bedbc00a84d9e3ef914f1b8e275ce167dc2eaadba4934cc61213d9e6a968b76bd5d4ac4048
+EBUILD metasploit-4.9.2.ebuild 9523 SHA256 2272f58bca5c5eaf1140968180b62f1c821ea408b1eae421f2c0190a8cc9dec4 SHA512 a7d8118798a5c939d4d87c367b934c7b350b60a352be6b0f1be38d66e4089fb6814048ee56e70c13296d11ae34d40b2eadc6093ef0777a0fe57cdf627f27c9f1 WHIRLPOOL 2f5471fb34d43f51a7ad361985d56f1069b7da92eaa36cdc088ac133ce199bb4d612d6ff3993393ae33097e07d1558e21f1960bbf9cc096364da0e60446a2c4c
EBUILD metasploit-9999.ebuild 9554 SHA256 acb793ca613475107b3d3071375d415b6d3b69583a378aead260c4909bf74b91 SHA512 1e0efeb78c6a8116ff7d7da6cfed8e4e5758276536a53be5decf672cd674ce64cf0cfc2f840d640484c74f02c29e0446eeb359f8a44dc713d5504946859d1e3f WHIRLPOOL 14cfe8ddc9e4a1e9756bec710d10af3ac2f31e0fbbb10721cc71b03cb3b5201652ab90bebf66c9ab22df1dccbccd4e66011cdbe319952ffb44be203ccf366952
-MISC ChangeLog 14819 SHA256 ac0bf2c71519702f0577104ced09f2d5c3a857177270c82740bd34544b061a1a SHA512 96e53ca1f6c2c5657cf1877c271b1448fa028fc7b5b4b9877bbd0be3df1e4bc8f85add5f172c33bbb77add250920d08b136d7a179f69dc3fd9c2682899f2249d WHIRLPOOL 14a79335f3670e6828e3f410440f041ba2136e389aac96cb75eb1fb257835828b480b5427113ac27f14ff4d4eeed80806b721d2d0a781b11bdf17b06477357d4
+MISC ChangeLog 15010 SHA256 de3a70478567cab596eb5f0a2ca8d5515be7d92b0638b77095710347663433c0 SHA512 7138c7d678f0811d698da485547724071281f015cc543263d11d8b0221f943126b81bd4e6cd0d1ab49846882592a5fb60171a9fea4613f1a5f76bf9157c65466 WHIRLPOOL 79ba20a7f2626e21df00d091e1bccb7c1ee088023922478e2a89c9952a0127e47c2ad30a59ebac3091319ab49895f69280bc2daaa25a8b68c8f6fcf85da72803
MISC metadata.xml 690 SHA256 3b24db79935a37e1583fdcee310076a175dcc7dc6d174b02f2aaede536435455 SHA512 3d0f49d10bd37b71036823c5eae753049778604610d05cd180a55bac731b746eae57e1362f33fba3f4e642dd558a818012ed9e00bb56b92f2219a743e70fd9e6 WHIRLPOOL bc55738aa50b4d6a8bb98755af0d1966d0d5a939ae2ef57bce093400ff1e82a5ffd50f6bce72ea5e1e3f40c8d36fd33392741af901355dbe6a200bd3892cb6a5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCgAGBQJTR2KvAAoJEKXdFCfdEflKG1cP/A/zTSbkRLLwDMQOj5vCy1ci
-df31tfzSoV1kdixfNPuAavsKbdm+P8pX4k+txSWPJFL6t+JERaTddgC8Xw3zQN3u
-yEK4FeMWClrl8xvjG//GQyDmnNmKZJJ3IL9C2HWUDbDEJciOChXOo6xRfR7DVrC6
-Jo/nWxQgPPwMHSemNEPMknOgrUZ4KPbAy6Iz6EMBjbJe1zYZA3pPm0XDEeBkBioK
-lejrQHP8x/gUPGM4/SPyQokTMaRY5lw4egCsfsy9GdBQ1aFR7nncKQ2MvCxowKVJ
-tB1dmhQ6PqGWXR6wQxomrvTpffKWF5ELxR/+3bHfn0I7kaWV711wSE+pKo7O+Kng
-YwW59BajgESJvHTTklo1AmzuVG7rIHyrre3MqOg7N0vlGBTEsrABtcoH/8MmcnQ4
-Gliqt6ME3iiizJKGxL9yLXKmLEgZyICuS2OH5+ocTcZXTCLmKvyb8nBO6n0BNhZ/
-QyGXuPfuwIEGnluVvv3LoVvr6caOIXgaRxmAx/J8QN2c88LmBgzNZq2ggBx+hub1
-qogRXiTyEbDFHO+GMVETboIxHv0bShuLVorDP2GnlUPtmzq4vpaHICqfoux217dn
-qpJd1xlciBnzZUqUrJO6gmIfA7Jz5m1xXS31qPQAqUj+UGNBInsG7WpnkBGAkZZR
-suJAQBDaSLE5sKvqqO6j
-=sUZg
+iQIcBAEBCgAGBQJTSCkNAAoJEKXdFCfdEflK+WoP/ja8vSjuIB4S3UQQFBzcIHE5
+fzUhLjao/cpQ2vRxDii6yAPUtfZW+lTt4GyF+P1r/Os/0yNblcqQgRoML4mnb1rR
+UcQ8nx8iqOUXSnimCzGoJZzDDllZr3caPNIz9tXq8+2J0RVtflw7Mp/bCuYDN4Fa
+t7JQIRJY9IfKjt139R/fFi9YN1yi/ABXulR40oK11DF2MSIy+ffjzW1fJXQm90g/
+Ek2wFYebu7B547PcXtypy3iBUxS0dpgSsYaiSer8PcF740ECMdLEEplS5dUNk7HU
+9Sp/HV+YTKL4qjrFRjkgdDRL2qXsppqoGu83O+r6PdfddRflpcuNYoC6PJyCAJcX
+88Yga14EjIfmLSE44q9PEcYFabvziy2oFIZjU4Fs9Q6t5KS7TYpHgW1F/2xJarVM
+Cd3n0wLxMG5aVtAMECV56LyWunaFW1VZZZntVIqx2fENExs37OIufS1haN7RJ+Hw
+ugeWW9kUxRgUZmZmVBumqzzsBzTzXS8nh5dn2sNs5Xf73bfajAwgrRb9GGuXcX0O
+maJRIK5wKDmvvVmXSmr90xmZeCcsBBaRSXwevRwMwYQik7qeI+PnRoFOrE2OEhMe
+shoKONgPryoRWpYiHjr8bZerW+hNZ09hVrThCPkU2/4uGKZAhDf6wfftb1LTMOuA
+PJ0oaoQ66WNknfXa68jf
+=3iad
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/metasploit/metasploit-4.8.2.ebuild b/net-analyzer/metasploit/metasploit-4.8.2.ebuild
deleted file mode 100644
index bcdc82fa157f..000000000000
--- a/net-analyzer/metasploit/metasploit-4.8.2.ebuild
+++ /dev/null
@@ -1,244 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-4.8.2.ebuild,v 1.2 2014/01/30 01:24:58 zerochaos Exp $
-
-EAPI="5"
-inherit eutils
-
-#MY_P=${PN/metasploit/framework}-${PV}
-
-if [[ ${PV} == "9999" ]] ; then
- EGIT_REPO_URI="https://github.com/rapid7/metasploit-framework.git"
- inherit git-r3
- KEYWORDS=""
-# S="${WORKDIR}/${MY_P}"
-else
- #https://github.com/rapid7/metasploit-framework/wiki/Downloads-by-Version
- SRC_URI="http://downloads.metasploit.com/data/releases/archive/framework-${PV}.tar.bz2"
- KEYWORDS="~amd64 ~arm ~x86"
- S="${WORKDIR}"/msf3
-fi
-
-DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code"
-HOMEPAGE="http://www.metasploit.org/"
-SLOT="4.8"
-LICENSE="BSD"
-IUSE="development +java lorcon +pcap test"
-
-#multiple known bugs with tests reported upstream and ignored
-RESTRICT="test"
-
-COMMON_DEPEND="dev-db/postgresql-server
- dev-lang/ruby:1.9[ssl]
- || ( dev-ruby/activesupport:3.1[ruby_targets_ruby19] dev-ruby/activesupport:3.2[ruby_targets_ruby19] )
- dev-ruby/activerecord:3.2[ruby_targets_ruby19]
- dev-ruby/json[ruby_targets_ruby19]
- >=dev-ruby/metasploit_data_models-0.16.6[ruby_targets_ruby19]
- dev-ruby/msgpack[ruby_targets_ruby19]
- dev-ruby/nokogiri[ruby_targets_ruby19]
- dev-ruby/builder:3[ruby_targets_ruby19]
- >=dev-ruby/pg-0.11[ruby_targets_ruby19]
- =dev-ruby/packetfu-1.1.9[ruby_targets_ruby19]
- dev-ruby/robots[ruby_targets_ruby19]
- dev-ruby/kissfft[ruby_targets_ruby19]
- >=app-crypt/johntheripper-1.7.9-r1[-minimal]
- net-analyzer/nmap
- !arm? ( java? ( dev-ruby/rjb[ruby_targets_ruby19] ) )
- pcap? ( dev-ruby/pcaprub[ruby_targets_ruby19]
- dev-ruby/network_interface[ruby_targets_ruby19] )
- lorcon? ( net-wireless/lorcon[ruby] )
- dev-ruby/bundler[ruby_targets_ruby19]
- development? ( dev-ruby/redcarpet[ruby_targets_ruby19]
- dev-ruby/yard[ruby_targets_ruby19]
- dev-ruby/rake[ruby_targets_ruby19]
- >=dev-ruby/factory_girl-4.1.0[ruby_targets_ruby19] )"
-DEPEND="${COMMON_DEPEND}
- test? ( >=dev-ruby/factory_girl-4.1.0[ruby_targets_ruby19]
- dev-ruby/database_cleaner[ruby_targets_ruby19]
- >=dev-ruby/rspec-2.12[ruby_targets_ruby19]
- dev-ruby/shoulda-matchers[ruby_targets_ruby19]
- dev-ruby/timecop[ruby_targets_ruby19] )
- "
-
-RDEPEND="${COMMON_DEPEND}
- >=app-admin/eselect-metasploit-0.10"
-
-RESTRICT="strip"
-
-QA_PREBUILT="
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x86_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_armle_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x86_solaris.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x64_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x86_bsd.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_mipsbe_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_mipsle_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/ext_server_sniffer.lso
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/ext_server_networkpug.lso
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/ext_server_stdapi.lso
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x86_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_armle_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x86_solaris.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x64_linux.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_x86_bsd.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/ext_server_sniffer.lso
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/ext_server_networkpug.lso
- usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/ext_server_stdapi.lso
- usr/$(get_libdir)/${PN}${SLOT}/data/exploits/CVE-2013-2171.bin
- "
-
-pkg_setup() {
- if use test; then
- su postgres -c "dropdb msf_test_database" #this is intentionally allowed to fail
- su postgres -c "createuser msf_test_user -d -S -R"
- if [ $? -ne 0 ]; then
- su postgres -c "dropuser msf_test_user" || die
- su postgres -c "createuser msf_test_user -d -S -R" || die
- fi
- su postgres -c "createdb --owner=msf_test_user msf_test_database" || die
- fi
-}
-
-src_prepare() {
- # add psexec patch from pull request 2657 to allow custom exe templates from any files, bypassing most AVs
- epatch "${FILESDIR}/agix_psexec_pull-2657.patch"
- #so much cruft is bundled with msf that we will fix it in src_prepare to make intentions more clear
-
- #stop asking about bloody bundler
- #sed -i "/require 'bundler\/setup'/d" lib/msfenv.rb
-
- #unbundle johntheripper, at least it now defaults to running the system version
- rm -rf "${S}"/data/john/run.*
- rm -rf "${S}"/data/john/src.tar.bz2
- #remove random "cpuinfo" binaries which a only needed to detect which bundled john to run
- rm -rf "${S}"/data/cpuinfo
-
- #remove random included sources
- rm -rf "${S}"/external/source
-
- #remove unused "external" modules
- rm -rf "${S}"/external/ruby-kissfft
- rm -rf "${S}"/external/ruby-lorcon
- rm -rf "${S}"/external/ruby-lorcon2
-
- #remove unneeded ruby bundler versioning files
- #Gemfile.lock contains the versions tested by the msf team but not the hard requirements
- #we regen this file with src_test
- rm -f "${S}"/Gemfile.lock
- #The Gemfile contains real known deps, we keep it for use in src_test
- #rm -f "${S}"/Gemfile
- #now we edit the Gemfile based on use flags
- #even if we pass --without=blah bundler still calculates the deps and messes us up
- if ! use pcap; then
- sed -i -e "/^group :pcap do/,/^end$/d" Gemfile || die
- fi
- if ! use development; then
- sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
- fi
- if ! use test; then
- sed -i -e "/^group :test/,/^end$/d" Gemfile || die
- fi
- if ! use test && ! use development; then
- sed -i -e "/^group :development/,/^end$/d" Gemfile || die
- fi
- if use test; then
- #We don't need simplecov
- sed -i -e "s#gem 'simplecov', '0.5.4', :require => false##" Gemfile || die
- sed -i -e "s#require 'simplecov'##" spec/spec_helper.rb || die
- fi
- bundle install --local || die
- bundle check || die
-
- #they removed bundled armitage from releases so let's just keep it external
- rm -rf "${S}"/armitage "${S}"/data/armitage
-
- #whiles we are commiting fixes for filth, let's bogart msfupdate
- rm "${S}"/msfupdate
- echo "#!/bin/sh" > "${S}"/msfupdate
- echo "echo \"[*]\"" >> "${S}"/msfupdate
- echo "echo \"[*] Attempting to update the Metasploit Framework...\"" >> "${S}"/msfupdate
- echo "echo \"[*]\"" >> "${S}"/msfupdate
- echo "echo \"\"" >> "${S}"/msfupdate
- if [[ ${PV} == "9999" ]] ; then
- echo "ESVN_REVISION=HEAD emerge --oneshot \"=${CATEGORY}/${PF}\"" >> "${S}"/msfupdate
- else
- echo "echo \"Unable to update tagged version of metasploit.\"" >> "${S}"/msfupdate
- echo "echo \"If you want the latest please install and eselect the live version (metasploit9999)\"" >> "${S}"/msfupdate
- echo "echo \"emerge metasploit:9999 -vat && eselect metasploit set metasploit9999\"" >> "${S}"/msfupdate
- fi
- #this is set executable in src_install
-
- #install our database.yml file before tests are run
- cp "${FILESDIR}"/database.yml "${S}"/config/
-
- #force all metasploit executables to ruby19, ruby18 is not supported anymore and ruby20 is not supported yet
- #https://dev.metasploit.com/redmine/issues/8357
- for file in $(ls -1 "${S}"/msf*)
- do
- #poorly adapted from python.eclass
- sed -e "1s:^#![[:space:]]*\([^[:space:]]*/usr/bin/env[[:space:]]\)\?[[:space:]]*\([^[:space:]]*/\)\?ruby\([[:digit:]]\+\(\.[[:digit:]]\+\)\?\)\?\(\$\|[[:space:]].*\):#!\1\2ruby19:" -i "${file}" || die "Conversion of shebang in '${file}' failed"
- done
-}
-
-#serialport does not work with ruby19 at this time
-#src_compile() {
-# if use serialport; then
-# cd "${S}"/external/serialport
-# ruby extconf.rb
-# emake
-# fi
-#}
-
-src_test() {
- #rake --trace spec || die
- #MSF_DATABASE_CONFIG="${S}"/config/database.yml
- # https://dev.metasploit.com/redmine/issues/8425
- rake db:migrate || die
- RAILS_ENV=test MSF_DATABASE_CONFIG="${S}"/config/database.yml rake spec || die
- su postgres -c "dropuser msf_test_user" || die "failed to cleanup msf_test-user"
-}
-
-src_install() {
- #Tests have already been run, we don't need this stuff
- rm -rf "${S}"/spec
- rm -rf "${S}"/test
-
- # should be as simple as copying everything into the target...
- dodir /usr/$(get_libdir)/${PN}${SLOT}
- cp -R "${S}"/* "${ED}"/usr/$(get_libdir)/${PN}${SLOT} || die "Copy files failed"
- rm -Rf "${ED}"/usr/$(get_libdir)/${PN}${SLOT}/documentation "${ED}"/usr/$(get_libdir)/${PN}${SLOT}/README.md
- fowners -R root:0 /
-
- # do not remove LICENSE, bug #238137
- dodir /usr/share/doc/${PF}
- cp -R "${S}"/{documentation,README.md} "${ED}"/usr/share/doc/${PF} || die
- dosym /usr/share/doc/${PF}/documentation /usr/$(get_libdir)/${PN}${SLOT}/documentation
-
- #does not work with ruby19 at this time
- #if use serialport; then
- # cd "${S}"/external/serialport
- # emake DESTDIR="${ED}" install
- #fi
-
- fperms +x /usr/$(get_libdir)/${PN}${SLOT}/msfupdate
-}
-
-pkg_postinst() {
- elog "You need to prepare the database by running:"
- elog "emerge --config postgresql-server"
- elog "/etc/init.d/postgresql-<version> start"
- elog "emerge --config =metasploit-${PV}"
-
- "${EROOT}"/usr/bin/eselect metasploit set --use-old ${PN}${SLOT}
-
- einfo
- elog "Adjust /usr/lib/${PN}${SLOT}/config/database.yml if necessary"
-}
-
-pkg_config() {
- einfo "If the following fails, it is likely because you forgot to start/config postgresql first"
- su postgres -c "createuser msf_user -D -S -R"
- su postgres -c "createdb --owner=msf_user msf_database"
-}
diff --git a/net-analyzer/metasploit/metasploit-4.9.1.ebuild b/net-analyzer/metasploit/metasploit-4.9.2.ebuild
index c6e26ad9d715..7200b3aef24c 100644
--- a/net-analyzer/metasploit/metasploit-4.9.1.ebuild
+++ b/net-analyzer/metasploit/metasploit-4.9.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-4.9.1.ebuild,v 1.1 2014/04/11 03:32:23 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-4.9.2.ebuild,v 1.1 2014/04/11 17:38:42 zerochaos Exp $
EAPI="5"