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

EAPI=7

inherit git-r3

DESCRIPTION="Shell script to check for simple privilege escalation vectors"
HOMEPAGE="https://github.com/pentestmonkey/unix-privesc-check"

EGIT_REPO_URI="https://github.com/pentestmonkey/unix-privesc-check"
if [[ ${PV} != *9999 ]]; then
	EGIT_COMMIT="de8223a7b2ff3ed8fa6344cf4a358ec624e42270"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="Unlicense"
SLOT="0"

src_install() {
	insinto /usr/share/unix-privesc-check
	doins -r lib/ tools/ upc.sh
	dodoc -r doc/* README.md
}
