# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Linux Exploit Suggester based on operating system release number"
HOMEPAGE="https://github.com/InteliSecureLabs/Linux_Exploit_Suggester"

if [[ ${PV} != *9999 ]]; then
	EGIT_COMMIT="9db2f5a2af9cbaf4170ccb3b2674b92487fbca03"
	SRC_URI="https://github.com/InteliSecureLabs/Linux_Exploit_Suggester/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}/Linux_Exploit_Suggester-${EGIT_COMMIT}"
	KEYWORDS="amd64 x86"
else
	EGIT_REPO_URI="https://github.com/InteliSecureLabs/Linux_Exploit_Suggester"
	inherit git-r3
fi

LICENSE="GPL-2"
SLOT="0"

src_install() {
	insinto /usr/share/Linux_Exploit_Suggester
	doins Linux_Exploit_Suggester.pl
}