mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 18:40:19 +02:00
metasploit: added pcaprub use flag to install pcaprub from external directory
This commit is contained in:
parent
c374377a08
commit
4d4ec0ab9d
2 changed files with 18 additions and 4 deletions
|
|
@ -4,4 +4,4 @@ AUX smart_hasdump_script_82d2446.rb 15509 RMD160 2dbf6b71c336a204c2dd487949a8d61
|
|||
AUX smart_hashdump_post_82d2446.rb 15248 RMD160 eafe737b88ff49a20f8ed7be7e350a76fe41503c SHA1 7770ae269df90d345a822162c1007c69cc424de4 SHA256 2b719934b7f7076a5d3439a1dc252d3513312161f8e488154d1815923782da16
|
||||
DIST dns_fuzzer.rb 19884 RMD160 1a403637009cba5eec88647a6e54c0e6ef771e8d SHA1 7076259a5c93caa6471845db2cf4ea5e3a6647a7 SHA256 02818f5cd0554a5408a5ba28a931e79527d584645b1c87cf2b2291c14532a587
|
||||
DIST vbsmem-1.2.1.patch 69002 RMD160 281461151b0d1e453ee613326f4457eebaddebaa SHA1 883a582552e00102be452a2a0105b9e016b3dccc SHA256 7991a5629c562817919c9bb1c8f0a3bdcd1c63cf9b9f32f322d1d266416589d2
|
||||
EBUILD metasploit-9999.ebuild 6085 RMD160 823a7d6999801a452876f9b61f68fd3438bd3ad9 SHA1 24eab51a44a34ea4fe42864988a8ca67e952ccba SHA256 48355a87e10d7edaca1a250f640156581ee97f5eaf4ff3722d372c8aa6dbda1a
|
||||
EBUILD metasploit-9999.ebuild 6381 RMD160 b6fe4e9814a5e93f8a062f513b14d3b463dd8030 SHA1 99128a38eace257a9b187e57adafc74b7493b002 SHA256 79760cf4c6cd55cba61f01f2868efbc385129b4e7499717dbacc723086ad97ba
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ ESVN_REPO_URI="https://metasploit.com/svn/framework3/trunk"
|
|||
# AV payload bypass written by Blair Strang from security-assesstment.com
|
||||
# see more details at https://dev.metasploit.com/redmine/issues/3894
|
||||
if use unstable; then
|
||||
ESVN_PATCHES="vbsmem-1.2.1.patch"
|
||||
ESVN_PATCHES="vbsmem-1.2.1.patch"
|
||||
fi
|
||||
SRC_URI="https://dev.metasploit.com/redmine/attachments/download/906/vbsmem-1.2.1.patch
|
||||
http://dev.metasploit.com/redmine/attachments/download/690/dns_fuzzer.rb"
|
||||
|
|
@ -30,7 +30,7 @@ HOMEPAGE="http://www.metasploit.org/"
|
|||
LICENSE="BSD"
|
||||
SLOT="3"
|
||||
KEYWORDS="amd64 arm ppc ~sparc x86"
|
||||
IUSE="armitage unstable mysql postgres"
|
||||
IUSE="armitage unstable mysql pcaprub postgres"
|
||||
|
||||
REQUIRED_USE="armitage? ( || ( mysql postgres ) )"
|
||||
|
||||
|
|
@ -43,6 +43,7 @@ RDEPEND="dev-lang/ruby
|
|||
dev-ruby/hpricot
|
||||
mysql? ( dev-ruby/mysql-ruby
|
||||
dev-ruby/activerecord )
|
||||
pcaprub? ( net-libs/libpcap )
|
||||
postgres? ( dev-ruby/pg
|
||||
dev-db/postgresql-server
|
||||
dev-ruby/activerecord )
|
||||
|
|
@ -73,6 +74,14 @@ subversion_src_prepare() {
|
|||
subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap."
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use pcaprub; then
|
||||
cd "${S}"/external/pcaprub
|
||||
ruby extconf.rb || die "extconf.rb failed"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# should be as simple as copying everything into the target...
|
||||
dodir /usr/lib/${PN}${SLOT} || die
|
||||
|
|
@ -125,8 +134,13 @@ src_install() {
|
|||
#https://dev.metasploit.com/redmine/issues/4585
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
if use pcaprub; then
|
||||
cd "${S}"/external/pcaprub
|
||||
emake DESTDIR="${D}" install || die "Install failed"
|
||||
fi
|
||||
|
||||
}
|
||||
pkg_postinst() {
|
||||
if use postgres||mysql; then
|
||||
elog "You need to prepare a database as described on the following page:"
|
||||
|
|
|
|||
Loading…
Reference in a new issue