mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-02-06 07:23:22 +01:00
exploitdb: KEYWORDS='*' makes 'smart-live-rebuild' blind
This commit is contained in:
parent
8d6a98e83c
commit
3ac0e787d0
2 changed files with 22 additions and 21 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# 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
|
||||
|
||||
|
|
@ -9,26 +9,26 @@ 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue