forked from sidaf/homebrew-pentest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathridenum.rb
More file actions
27 lines (22 loc) · 893 Bytes
/
ridenum.rb
File metadata and controls
27 lines (22 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require "formula"
class Ridenum < Formula
homepage "https://github.com/trustedsec/ridenum"
url "https://github.com/trustedsec/ridenum.git", :using => :git, :revision => "db18a77"
version "1.5.5"
resource "pexpect" do
url "https://pypi.python.org/packages/52/97/13924c85a4b7544a4174781360e0530a7fff23e62d76da0e211369dd61f5/pexpect-3.3.tar.gz"
sha256 'dfea618d43e83cfff21504f18f98019ba520f330e4142e5185ef7c73527de5ba'
end
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
%w[pexpect].each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
ENV.prepend_create_path "PYTHONPATH", libexec
bin.install "ridenum.py"
libexec.install Dir["*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
end