mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-17 12:20:59 +02:00
exploitdb: fix issue #121
This commit is contained in:
parent
2bcb45c5ca
commit
d8d033ee36
2 changed files with 20 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
|
|
@ -19,8 +19,14 @@ IUSE=""
|
|||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/exploitdb_path_issue44.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r *
|
||||
dobin searchsploit
|
||||
|
||||
fperms +x /usr/share/${PN}/searchsploit
|
||||
dosym /usr/share/${PN}/searchsploit /usr/bin/searchsploit
|
||||
}
|
||||
|
|
|
|||
11
app-exploits/exploitdb/files/exploitdb_path_issue44.patch
Normal file
11
app-exploits/exploitdb/files/exploitdb_path_issue44.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- /usr/share/exploitdb/searchsploit.orig 2016-09-08 07:23:45.000000000 +0800
|
||||
+++ /usr/share/exploitdb/searchsploit 2016-09-08 07:57:45.660073914 +0800
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
## OS settings (get the path of where the script is stored + database file)
|
||||
-gitpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
+gitpath=`dirname $(readlink -f $0)`
|
||||
csvpath="${gitpath}/files.csv"
|
||||
|
||||
|
||||
Loading…
Reference in a new issue