Skip to content
Permalink
Browse files

exploitdb: KEYWORDS='*' makes 'smart-live-rebuild' blind

  • Loading branch information...
linxon committed Sep 11, 2019
1 parent 8d6a98e commit 3ac0e787d01edd803077184c7dfd7e554846d5cb
Showing with 22 additions and 21 deletions.
  1. +15 −15 app-exploits/exploitdb/exploitdb-9999.ebuild
  2. +7 −6 app-exploits/exploitdb/files/disable-update.patch
@@ -1,34 +1,34 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

inherit eutils git-r3

DESCRIPTION="All exploits from exploit-db.com"
HOMEPAGE="http://www.exploit-db.com/"
EGIT_REPO_URI="https://github.com/offensive-security/exploit-database"

LICENSE="public-domain"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
IUSE=""
IUSE="doc"

DEPEND=""
RDEPEND=""
RDEPEND="
doc? ( app-exploits/exploitdb-papers )
dev-libs/libxml2:2
virtual/awk
x11-misc/xclip"

src_prepare() {
epatch "${FILESDIR}/disable-update.patch"
eapply_user
}
PATCHES=( "${FILESDIR}"/disable-update.patch )

src_install() {
insinto /etc
doins "${FILESDIR}/searchsploit_rc"
insinto "/etc"
doins "${FILESDIR}"/searchsploit_rc

insinto /usr/share/${PN}
insinto "/usr/share/${PN}"
doins -r *

fperms +x /usr/share/${PN}/searchsploit
dosym "${EPREFIX}"/usr/share/${PN}/searchsploit /usr/bin/searchsploit
fperms +x "/usr/share/${PN}/searchsploit"
dosym "../share/${PN}/searchsploit" "/usr/bin/searchsploit"
}
@@ -1,16 +1,17 @@
--- searchsploit.orig 2018-08-04 07:52:12.380881696 +0800
+++ searchsploit 2018-08-04 08:10:02.619869667 +0800
@@ -108,6 +108,13 @@
diff -ur a/searchsploit b/searchsploit
--- a/searchsploit 2019-09-11 13:58:00.879499000 +0300
+++ b/searchsploit 2019-09-11 14:10:57.883479546 +0300
@@ -109,6 +109,13 @@
## Update database check
function update()
{
+ echo -e "\nWarning: the build-in update (-u) is disabled in Pentoo \n "
+ echo -e "Instead, you should update it using one of the following commands:"
+ echo -e " emerge -1 app-exploits/exploitdb"
+ echo -e " smart-live-rebuild\n"
+ echo -e " emerge -1 app-exploits/exploitdb"
+ echo -e " smart-live-rebuild\n"
+ #something went wrong
+ exit 1
+
+
arraylength="${#files_array[@]}"
for (( i=0; i<${arraylength}; i++ )); do
## Check to see if we already have the value

0 comments on commit 3ac0e78

Please sign in to comment.
You can’t perform that action at this time.