exploitdb: fix issue #121

This commit is contained in:
blshkv 2016-09-08 09:35:35 +08:00
parent 2bcb45c5ca
commit d8d033ee36
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
2 changed files with 20 additions and 3 deletions

View file

@ -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
}

View 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"