saltstack 2016.11.3
Closes #10335. Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
parent
1b9880154a
commit
71706096e6
1 changed files with 19 additions and 18 deletions
|
@ -3,8 +3,8 @@ class Saltstack < Formula
|
|||
|
||||
desc "Dynamic infrastructure communication bus"
|
||||
homepage "http://www.saltstack.org"
|
||||
url "https://files.pythonhosted.org/packages/dd/b2/2a81377b66a25ef29c38deea8244f6d35d56ae7c7db1d0234201b284c7d3/salt-2016.11.1.tar.gz"
|
||||
sha256 "00343e190dcf6dfa27dbec996d1161f7aef16cf99510b67970136cf24f092992"
|
||||
url "https://files.pythonhosted.org/packages/54/fe/a9c3be921e84927b93e3388f5ba4e271a6e774860bdb897726d10c1fdbb6/salt-2016.11.3.tar.gz"
|
||||
sha256 "9d5849f38a858288ebc6ef790ced86ae724e61b06e3ee27e6cecf3f6c1ecbc51"
|
||||
head "https://github.com/saltstack/salt.git", :branch => "develop", :shallow => false
|
||||
|
||||
bottle do
|
||||
|
@ -21,8 +21,8 @@ class Saltstack < Formula
|
|||
depends_on "openssl" # For M2Crypto
|
||||
|
||||
resource "Jinja2" do
|
||||
url "https://files.pythonhosted.org/packages/f2/2f/0b98b06a345a761bec91a079ccae392d282690c2d8272e708f4d10829e22/Jinja2-2.8.tar.gz"
|
||||
sha256 "bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4"
|
||||
url "https://files.pythonhosted.org/packages/71/59/d7423bd5e7ddaf3a1ce299ab4490e9044e8dfd195420fc83a24de9e60726/Jinja2-2.9.5.tar.gz"
|
||||
sha256 "702a24d992f856fa8d5a7a36db6128198d0c21e1da34448ca236c42e92384825"
|
||||
end
|
||||
|
||||
resource "M2Crypto" do
|
||||
|
@ -40,19 +40,14 @@ class Saltstack < Formula
|
|||
sha256 "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab"
|
||||
end
|
||||
|
||||
resource "backports.ssl_match_hostname" do
|
||||
url "https://files.pythonhosted.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/backports.ssl_match_hostname-3.5.0.1.tar.gz"
|
||||
sha256 "502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2"
|
||||
end
|
||||
|
||||
resource "backports_abc" do
|
||||
url "https://files.pythonhosted.org/packages/68/3c/1317a9113c377d1e33711ca8de1e80afbaf4a3c950dd0edfaf61f9bfe6d8/backports_abc-0.5.tar.gz"
|
||||
sha256 "033be54514a03e255df75c5aee8f9e672f663f93abb723444caec8fe43437bde"
|
||||
end
|
||||
|
||||
resource "certifi" do
|
||||
url "https://files.pythonhosted.org/packages/4f/75/e1bc6e363a2c76f8d7e754c27c437dbe4086414e1d6d2f6b2a3e7846f22b/certifi-2016.9.26.tar.gz"
|
||||
sha256 "8275aef1bbeaf05c53715bfc5d8569bd1e04ca1e8e69608cc52bcaac2604eb19"
|
||||
url "https://files.pythonhosted.org/packages/b6/fa/ca682d5ace0700008d246664e50db8d095d23750bb212c0086305450c276/certifi-2017.1.23.tar.gz"
|
||||
sha256 "81877fb7ac126e9215dfb15bfef7115fdc30e798e0013065158eed0707fd99ce"
|
||||
end
|
||||
|
||||
resource "futures" do
|
||||
|
@ -76,8 +71,8 @@ class Saltstack < Formula
|
|||
end
|
||||
|
||||
resource "requests" do
|
||||
url "https://files.pythonhosted.org/packages/5b/0b/34be574b1ec997247796e5d516f3a6b6509c4e064f2885a96ed885ce7579/requests-2.12.4.tar.gz"
|
||||
sha256 "ed98431a0631e309bb4b63c81d561c1654822cb103de1ac7b47e45c26be7ae34"
|
||||
url "https://files.pythonhosted.org/packages/16/09/37b69de7c924d318e51ece1c4ceb679bf93be9d05973bb30c35babd596e2/requests-2.13.0.tar.gz"
|
||||
sha256 "5722cd09762faa01276230270ff16af7acf7c5c45d623868d9ba116f15791ce8"
|
||||
end
|
||||
|
||||
resource "singledispatch" do
|
||||
|
@ -95,17 +90,23 @@ class Saltstack < Formula
|
|||
sha256 "2898f992f898cd41eeb8d53b6df75495f2f423b6672890aadaf196ea1448edcc"
|
||||
end
|
||||
|
||||
def resources
|
||||
super - [resource("M2Crypto")]
|
||||
end
|
||||
|
||||
def install
|
||||
venv = virtualenv_install_with_resources
|
||||
venv = virtualenv_create(libexec)
|
||||
|
||||
res = resources.map(&:name).to_set - ["M2Crypto"]
|
||||
|
||||
res.each do |r|
|
||||
venv.pip_install resource(r)
|
||||
end
|
||||
|
||||
resource("M2Crypto").stage do
|
||||
inreplace "setup.py", "self.openssl = '/usr'",
|
||||
"self.openssl = '#{Formula["openssl"].opt_prefix}'"
|
||||
venv.pip_install Pathname.pwd
|
||||
end
|
||||
|
||||
venv.pip_install_and_link buildpath
|
||||
|
||||
prefix.install libexec/"share" # man pages
|
||||
(etc/"saltstack").install (buildpath/"conf").children # sample config files
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue