mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 16:47:21 -08:00
dev-db/sqlmap: new ebuild
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Closes: https://github.com/gentoo/gentoo/pull/24494 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit bash-completion-r1 python-single-r1 wrapper
|
||||
|
||||
DESCRIPTION="An automatic SQL injection and database takeover tool"
|
||||
HOMEPAGE="https://sqlmap.org/"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/sqlmapproject/sqlmap"
|
||||
else
|
||||
SRC_URI="https://github.com/sqlmapproject/sqlmap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
# sqlmap (GPL-2+)
|
||||
# ansitrm (BSD)
|
||||
# beautifulsoup (BSD)
|
||||
# bottle (MIT)
|
||||
# charder (LGPL-2.1+)
|
||||
# clientform (BSD)
|
||||
# colorama (BSD)
|
||||
# fcrypt (BSD-2)
|
||||
# identitywaf (MIT)
|
||||
# keepalive (LGPL-2.1+)
|
||||
# magic (MIT)
|
||||
# multipartpost (LGPL-2.1+)
|
||||
# ordereddict (MIT)
|
||||
# prettyprint (BSD-2)
|
||||
# pydes (public-domain)
|
||||
# six (MIT)
|
||||
# socks (BSD)
|
||||
# termcolor (BSD)
|
||||
# wininetpton (public-domain)
|
||||
LICENSE="BSD BSD-2 GPL-2+ LGPL-2.1+ MIT public-domain"
|
||||
SLOT=0
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DOCS=( doc/ README.md )
|
||||
|
||||
src_install () {
|
||||
einstalldocs
|
||||
|
||||
insinto "/usr/share/${PN}/"
|
||||
doins -r *
|
||||
python_optimize "${ED}/usr/share/${PN}"
|
||||
|
||||
make_wrapper "${PN}" \
|
||||
"${EPYTHON} /usr/share/${PN}/sqlmap.py"
|
||||
|
||||
newbashcomp "${FILESDIR}"/sqlmap.bash-completion sqlmap
|
||||
}
|
||||
Reference in New Issue
Block a user