mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-05 23:33:11 +01:00
exploitdb-20200717.ebuild
This commit is contained in:
parent
f11a6952ff
commit
1fbf01461a
3 changed files with 18 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
16
app-exploits/exploitdb/files/disable-update2.patch
Normal file
16
app-exploits/exploitdb/files/disable-update2.patch
Normal 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
|
||||
Loading…
Reference in a new issue