pentoo-overlay/app-exploits/exploitdb/exploitdb-9999.ebuild
2018-08-04 08:28:18 +08:00

34 lines
684 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
IUSE=""
DEPEND=""
RDEPEND=""
src_prepare() {
epatch "${FILESDIR}/disable-update.patch"
eapply_user
}
src_install() {
insinto /etc
doins "${FILESDIR}/searchsploit_rc"
insinto /usr/share/${PN}
doins -r *
fperms +x /usr/share/${PN}/searchsploit
dosym "${EPREFIX}"/usr/share/${PN}/searchsploit /usr/bin/searchsploit
}