aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLifepillar2014-03-17 14:36:01 +0100
committerAdam Vandenberg2014-05-10 10:11:44 -0700
commit9db9660db257e215531e3d275407af67c6289f2e (patch)
tree7a642e13ffe4697485a1da8a75b9d5ae0eaae6bc /Library/Formula
parentb239e44783f10e9669bcfa87937e7dfbc93a93d7 (diff)
downloadhomebrew-9db9660db257e215531e3d275407af67c6289f2e.tar.bz2
sqlmap: update dependencies
Closes #27633. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sqlmap.rb74
1 files changed, 36 insertions, 38 deletions
diff --git a/Library/Formula/sqlmap.rb b/Library/Formula/sqlmap.rb
index 32c38c6c2..7db0e87c7 100644
--- a/Library/Formula/sqlmap.rb
+++ b/Library/Formula/sqlmap.rb
@@ -6,25 +6,33 @@ class Sqlmap < Formula
sha1 "25d7c13fc6e8bb55a1b4d9ba60a7ebd558ad0374"
head "https://github.com/sqlmapproject/sqlmap.git"
- option "with-db-modules", "Install with support for direct database manipulation (sqlmap -d)"
- option "with-impacket", "Install with support for ICMP tunneling out-of-band takeover"
- option "with-ntlm", "Install with support for NTLM authentication"
+ option "with-mysql", "Install with support for direct connection to MySQL"
+ option "with-postgresql", "Install with support for direct connection to PostgreSQL"
+ option "with-unixodbc", "Install with ODBC driver"
depends_on :python if MacOS.version <= :snow_leopard
+ depends_on "mysql" => :optional
+ depends_on "postgresql" => :optional
+ depends_on "unixodbc" => :optional
- resource "psycopg" do
- url "http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.2.tar.gz"
- sha1 "96d071f8e4faa07810976640078742b0a944cd13"
+ resource "ibm-db" do
+ url "https://pypi.python.org/packages/source/i/ibm-db-sa-py3/ibm-db-sa-py3-0.3.0-1.tar.gz"
+ sha1 "a48bc74ea0aafba5c56c6981db5213a23c55a33c"
end
- resource "pymysql" do
- url "https://github.com/PyMySQL/PyMySQL/archive/pymysql-0.6.1.tar.gz"
- sha1 "a5c36278066fc3735a22622a7578e5f8d2ec31f1"
+ resource "impacket" do
+ url "https://pypi.python.org/packages/source/i/impacket/impacket-0.9.11.tar.gz"
+ sha1 "c78855be24f7730182c7914a64b9895f8b244ea2"
end
- resource "python-mysqldb" do
- url "https://github.com/farcepest/MySQLdb1/archive/MySQLdb-1.2.5.tar.gz"
- sha1 "d9d6f8861a571c7ad72631130a82e0f95f6b2723"
+ resource "mysql-python" do
+ url "https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4.zip"
+ sha1 "9af66e09713a79a08a312a7da87f0f0dccfc0a91"
+ end
+
+ resource "ntlm" do
+ url "https://pypi.python.org/packages/source/p/python-ntlm/python-ntlm-1.0.1.tar.gz"
+ sha1 "91644247682f9fe128ce63496cf77b53605f085d"
end
resource "pyodbc" do
@@ -32,46 +40,36 @@ class Sqlmap < Formula
sha1 "88cb519411116012402aa0a0d5d7484949ddd99c"
end
+ resource "psycopg2" do
+ url "https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.5.2.tar.gz"
+ sha1 "96d071f8e4faa07810976640078742b0a944cd13"
+ end
+
resource "pysqlite" do
url "https://pypi.python.org/packages/source/p/pysqlite/pysqlite-2.6.3.tar.gz"
sha1 "b1eed16107232aebec1826b671c99a76e26afa7b"
end
- resource "ibm-db" do
- url "https://pypi.python.org/packages/source/i/ibm-db-sa-py3/ibm-db-sa-py3-0.3.0-1.tar.gz"
- sha1 "a48bc74ea0aafba5c56c6981db5213a23c55a33c"
- end
-
- resource "impacket" do
- url "https://pypi.python.org/packages/source/i/impacket/impacket-0.9.11.tar.gz"
- sha1 "c78855be24f7730182c7914a64b9895f8b244ea2"
- end
-
- resource "ntlm" do
- url "https://pypi.python.org/packages/source/p/python-ntlm/python-ntlm-1.0.1.tar.gz"
- sha1 "91644247682f9fe128ce63496cf77b53605f085d"
- end
-
def install
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
- if build.with? "db-modules"
- resource("psycopg").stage { system "python", *install_args }
- resource("pymysql").stage { system "python", *install_args }
- resource("python-mysqldb").stage { system "python", *install_args }
- resource("pyodbc").stage { system "python", *install_args }
- resource("pysqlite").stage { system "python", *install_args }
- resource("ibm-db").stage { system "python", *install_args }
+ resource("ibm-db").stage { system "python", *install_args }
+ resource("impacket").stage { system "python", *install_args }
+ resource("ntlm").stage { system "python", *install_args }
+ resource("pysqlite").stage { system "python", *install_args }
+
+ if build.with? "mysql"
+ resource("mysql-python").stage { system "python", *install_args }
end
- if build.with? "impacket"
- resource("impacket").stage { system "python", *install_args }
+ if build.with? "postgresql"
+ resource("psycopg2").stage { system "python", *install_args }
end
- if build.with? "ntlm"
- resource("ntlm").stage { system "python", *install_args }
+ if build.with? "unixodbc"
+ resource("pyodbc").stage { system "python", *install_args }
end
prefix.install "doc", "extra", "plugins", "shell", "tamper", "txt", "udf", "xml", "sqlmap.conf"