exploitdb-20200717.ebuild

This commit is contained in:
blshkv 2020-07-18 12:52:09 +08:00
parent f11a6952ff
commit 1fbf01461a
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 18 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -24,7 +24,7 @@ RDEPEND="
virtual/awk
x11-misc/xclip"
PATCHES=( "${FILESDIR}"/disable-update.patch )
PATCHES=( "${FILESDIR}"/disable-update2.patch )
src_install() {
insinto "/etc"

View file

@ -0,0 +1,16 @@
--- a/searchsploit.orig 2020-07-18 12:46:59.287018894 +0800
+++ b/searchsploit 2020-07-18 12:48:36.286025200 +0800
@@ -135,6 +135,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"
+ #something went wrong
+ exit 1
+
arraylength="${#files_array[@]}"
for (( i=0; i<${arraylength}; i++ )); do
## Check to see if we already have the value