diff options
author | Peter Volkov <pva@gentoo.org> | 2008-05-19 12:37:40 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-05-19 12:37:40 +0000 |
commit | c8727e44f6aac2ef2a6eb40246551c760d6bf8d6 (patch) | |
tree | 843299986260fa0a03e692c97f4e294f2770759f /net-analyzer/metasploit | |
parent | Version bumped. Needed to change udev-start to use udevadm subcommands instea... (diff) | |
download | historical-c8727e44f6aac2ef2a6eb40246551c760d6bf8d6.tar.gz historical-c8727e44f6aac2ef2a6eb40246551c760d6bf8d6.tar.bz2 historical-c8727e44f6aac2ef2a6eb40246551c760d6bf8d6.zip |
Update to current HEAD, to get all updates.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-analyzer/metasploit')
-rw-r--r-- | net-analyzer/metasploit/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/metasploit/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/metasploit/metasploit-3.1_p5507.ebuild | 102 |
3 files changed, 110 insertions, 2 deletions
diff --git a/net-analyzer/metasploit/ChangeLog b/net-analyzer/metasploit/ChangeLog index 84479c597e9b..c129a9508a97 100644 --- a/net-analyzer/metasploit/ChangeLog +++ b/net-analyzer/metasploit/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/metasploit # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.34 2008/03/26 10:32:49 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.35 2008/05/19 12:37:40 pva Exp $ + +*metasploit-3.1_p5507 (19 May 2008) + + 19 May 2008; Peter Volkov <pva@gentoo.org> +metasploit-3.1_p5507.ebuild: + Update to current HEAD, to get all updates. 26 Mar 2008; Peter Volkov <pva@gentoo.org> -files/metasploit-3.0.patch, -metasploit-3.1.ebuild, -metasploit-3.1_p5422.ebuild, diff --git a/net-analyzer/metasploit/Manifest b/net-analyzer/metasploit/Manifest index b92711e2c440..eb0e7ed922ef 100644 --- a/net-analyzer/metasploit/Manifest +++ b/net-analyzer/metasploit/Manifest @@ -5,5 +5,6 @@ AUX msfweb3.initd 578 RMD160 47baabd2beb338fd8a067694830400801a028c1a SHA1 6a5ec DIST framework-2.7.tar.gz 5800216 RMD160 cfdf2705522c845bb4405413207a7df0f3873b94 SHA1 da5d41dfa13e549aacd4fbf2994877cbe80ceed9 SHA256 516952772aaa8982628460b927c9119850925f870903c5a131a9c9f0390cf77f EBUILD metasploit-2.7.ebuild 1451 RMD160 86b02866587de2829a1905ab274cbe4abdd41991 SHA1 e7cc8fb826d55a9be1125dd63ea16798dea1c393 SHA256 fc61998068bf093cf4a68f1563130bed0c1c05c6db7fee51669e49de9460cc96 EBUILD metasploit-3.1_p5456.ebuild 3663 RMD160 3e77a85fb23ffa911fe64b6ea27336e4fe4cf434 SHA1 fa2cfedf4ea5de3c60c5588108e7ebb6f90c9025 SHA256 15beb8db43cf64093f1ef07c555104181217ef719a560acf88714f7557322097 -MISC ChangeLog 5842 RMD160 f072401c35104e982a3447ca898593cd394624a1 SHA1 162f78d7c2fb3f50c9ac7f8e1a60c7544ded331d SHA256 e2a447d8cdc90565cc1f6a0a7b028f60a18662eeb161f4df5ce8a3ec480d1614 +EBUILD metasploit-3.1_p5507.ebuild 3663 RMD160 2e5b90e6cf63af5613fc8112649c6292d1249f95 SHA1 68841799480026e5ab5c9254ce4d103945946614 SHA256 a2ecb36fb254fefc08384b05e28ed59d32c4172f9a89c0b2c40644adc68a11ee +MISC ChangeLog 6001 RMD160 4358c9ed7871bbf00d45240f2603e98394b943c7 SHA1 7a087e90218bb9cb4ac40d47253db5f2244304a6 SHA256 8862415dcb0e1128d4b73247e4944a5c10f787868cabf5103317385bebe6c1dd MISC metadata.xml 863 RMD160 90c921bdc34bc98f2c43fb75f633dbdeb65561ae SHA1 022699039a88ca8d53bd75d0b20dbd8709953d55 SHA256 594bd50431c2ecc70b0834fed0dbfe28bac86201fb4e5b20989a56baa8f21eff diff --git a/net-analyzer/metasploit/metasploit-3.1_p5507.ebuild b/net-analyzer/metasploit/metasploit-3.1_p5507.ebuild new file mode 100644 index 000000000000..6e2a35af6fb7 --- /dev/null +++ b/net-analyzer/metasploit/metasploit-3.1_p5507.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-3.1_p5507.ebuild,v 1.1 2008/05/19 12:37:40 pva Exp $ + +MY_P=${PN/metasploit/framework}-${PV} + +# Metasploit uses subversion as a *normal* update mechanism for stable branches +# of the package. This ebuild uses _p<number> inside $PV to install updated up +# to revision <number> version of framework. For more information, take a look +# at bug #195924. +if [[ "${PV}" =~ (_p)([0-9]+) ]] ; then + inherit subversion + SRC_URI="" + MTSLPT_REV=${BASH_REMATCH[2]} + ESVN_REPO_URI="https://metasploit.com/svn/framework3/branches/framework-${PV%_p*}/@${MTSLPT_REV}" +else + SRC_URI="http://sugar.metasploit.com/releases/${MY_P}.tar.gz" +fi + +DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code" +HOMEPAGE="http://www.metasploit.org/" + +LICENSE="MSF-1.2" +SLOT="3" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="gtk sqlite sqlite3 postgres httpd" + +RDEPEND="dev-lang/ruby + gtk? ( dev-ruby/ruby-libglade2 ) + httpd? ( =dev-ruby/rails-1.2* ) + sqlite? ( dev-ruby/sqlite-ruby + dev-ruby/activerecord ) + sqlite3? ( dev-ruby/sqlite3-ruby + dev-ruby/activerecord ) + postgres? ( dev-ruby/ruby-postgres + dev-ruby/activerecord )" +DEPEND="" + +S=${WORKDIR}/${MY_P} + +src_compile() { + sed -i -e "s/RAILS_GEM_VERSION = '1.2.2'/RAILS_GEM_VERSION = '1.2'/" \ + data/msfweb/config/environment.rb || die "sed failed" +} + +src_install() { + if [[ "${SRC_URI}" != "" ]] ; then + # remove the subversion directories + find "${S}" -type d -name ".svn" -print0 | xargs -0 -n1 rm -R + fi + + # should be as simple as copying everything into the target... + dodir /usr/lib/${PN}${SLOT} + cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT} || die "Copy files failed" + rm -Rf "${D}"/usr/lib/${PN}${SLOT}/documentation "${D}"/usr/lib/${PN}${SLOT}/README + + rm "${S}"/documentation/LICENSE + dodir /usr/share/doc/${PF} + cp -R "${S}"/{documentation,README} "${D}"/usr/share/doc/${PF} + + dodir /usr/bin/ + for file in `ls msf*`; do + dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT} + done + + chown -R root:0 "${D}" + + if use httpd; then + newinitd "${FILESDIR}"/msfweb${SLOT}.initd msfweb${SLOT} \ + || die "newinitd failed" + newconfd "${FILESDIR}"/msfweb${SLOT}.confd msfweb${SLOT} \ + || die "newconfd failed" + fi +} + +pkg_postinst() { + if [[ "${SRC_URI}" == "" ]] ; then + elog "If you wish to update ${PN} manually simply run:" + elog + elog "ESVN_REVISION=<rev> emerge =${PF}" + elog + elog "where <rev> is either HEAD (in case you wish to get all updates)" + elog "or specific revision number. But NOTE, this update will vanish" + elog "next time you reemerge ${PN}. To make update permanent either" + elog "create ebuild with specific revision number inside your overlay" + elog "or report revision bump bug at http://bugs.gentoo.org ." + elog + elog "In case you use portage it's also possible to create" + elog "/etc/portage/env/${CATEGORY}/${PN} file with ESVN_REVISION=<rev>" + elog "content. Then each time you run emerge ${PN} you'll have said" + elog "<rev> installed. For example, if you run" + elog " # mkdir -p /etc/portage/env/${CATEGORY}" + elog " # echo ESVN_REVISION=HEAD >> /etc/portage/env/${CATEGORY}/${PN}" + elog "each time you reemerge ${PN} it'll be updated to get all possible" + elog "updates for framework-${PV%_p*} branch." + elog "You can do similar things in paludis using /etc/paludis/bashrc." + else + ewarn "${PN} version you installed is for testing purposes only" + ewarn "as it's impossible to update it. For day by day work use" + ewarn "different version." + fi +} |