summaryrefslogtreecommitdiff
path: root/dev-db/sqlmap/sqlmap-9999.ebuild
diff options
context:
space:
mode:
authorMario Haustein <mario.haustein@hrz.tu-chemnitz.de>2022-03-11 17:08:38 +0100
committerSam James <sam@gentoo.org>2022-04-05 04:13:53 +0100
commit0c2636d824eb25536bd113fba5e2f783568558ff (patch)
tree9fffa92b5ac86b6008742e0dd64e35801d625f4f /dev-db/sqlmap/sqlmap-9999.ebuild
parent1f3a01a3a6717ad8c6ee334748f9181a2abe5389 (diff)
downloadgentoo-0c2636d824eb25536bd113fba5e2f783568558ff.tar.gz
gentoo-0c2636d824eb25536bd113fba5e2f783568558ff.tar.bz2
gentoo-0c2636d824eb25536bd113fba5e2f783568558ff.zip
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>
Diffstat (limited to 'dev-db/sqlmap/sqlmap-9999.ebuild')
-rw-r--r--dev-db/sqlmap/sqlmap-9999.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-db/sqlmap/sqlmap-9999.ebuild b/dev-db/sqlmap/sqlmap-9999.ebuild
new file mode 100644
index 000000000000..1844e8ba2536
--- /dev/null
+++ b/dev-db/sqlmap/sqlmap-9999.ebuild
@@ -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
+}