pentoo-overlay/app-exploits/exploitdb/exploitdb-9999.ebuild

34 lines
706 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils git-r3
DESCRIPTION="All exploits from exploit-db.com"
HOMEPAGE="http://www.exploit-db.com/"
EGIT_REPO_URI="https://github.com/offensive-security/exploit-database"
LICENSE="GPL-2"
SLOT="0"
IUSE="doc"
DEPEND=""
RDEPEND="
doc? ( app-exploits/exploitdb-papers )
dev-libs/libxml2:2
virtual/awk
x11-misc/xclip"
PATCHES=( "${FILESDIR}"/disable-update.patch )
src_install() {
insinto "/etc"
doins "${FILESDIR}"/searchsploit_rc
insinto "/usr/share/${PN}"
doins -r *
fperms +x "/usr/share/${PN}/searchsploit"
dosym "../share/${PN}/searchsploit" "/usr/bin/searchsploit"
}