2016-05-07 12:47:14 +00:00
|
|
|
class Certbot < Formula
|
2016-08-29 16:56:23 +00:00
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
2016-05-07 12:47:14 +00:00
|
|
|
desc "Tool to obtain certs from Let's Encrypt and autoenable HTTPS"
|
2016-05-13 01:43:51 +00:00
|
|
|
homepage "https://certbot.eff.org/"
|
2016-10-14 04:21:56 +00:00
|
|
|
url "https://github.com/certbot/certbot/archive/v0.9.3.tar.gz"
|
|
|
|
sha256 "5c40cfcf3a17624e34dcb733148bd247c4f0cee189766fe0fb6d29571d4068bb"
|
2016-10-06 06:32:19 +00:00
|
|
|
head "https://github.com/certbot/certbot.git"
|
2015-12-31 05:33:57 +00:00
|
|
|
|
2016-02-13 04:01:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-10-14 05:55:27 +00:00
|
|
|
sha256 "fed0accec5e869c6f2666155cbde76e804c3d5a3891d53ce00467f99a28e4204" => :sierra
|
|
|
|
sha256 "bf9bc8705a11bf41cdfcc579cecea25ce6c7a5ca620d79416ec204c23ca36268" => :el_capitan
|
|
|
|
sha256 "2bd87e0b12534a3d702a5e241e326ec08e68bbdc3c386e09eb7951032bfa1519" => :yosemite
|
2016-02-13 04:01:03 +00:00
|
|
|
end
|
|
|
|
|
2015-12-31 05:33:57 +00:00
|
|
|
depends_on "augeas"
|
|
|
|
depends_on "dialog"
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
|
|
|
|
resource "cffi" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a/cffi-1.8.3.tar.gz"
|
|
|
|
sha256 "c321bd46faa7847261b89c0469569530cad5a41976bb6dba8202c0159f476568"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "ConfigArgParse" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/45/87/a815edcdc867de0964e5f1efef6db956bbb6fe77dbe3f273f2aeab39cbe8/ConfigArgParse-0.11.0.tar.gz"
|
|
|
|
sha256 "6c8ae823f6844b055f2a3aa9b51f568ed3bd7e5be9fba63abcaf4bdd38a0ac89"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "configobj" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz"
|
2015-12-31 05:33:57 +00:00
|
|
|
sha256 "a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "cryptography" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/03/1a/60984cb85cc38c4ebdfca27b32a6df6f1914959d8790f5a349608c78be61/cryptography-1.5.2.tar.gz"
|
|
|
|
sha256 "eb8875736734e8e870b09be43b17f40472dc189b1c422a952fa8580768204832"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "enum34" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz"
|
2016-05-27 21:58:07 +00:00
|
|
|
sha256 "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "funcsigs" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/94/4a/db842e7a0545de1cdb0439bb80e6e42dfe82aaeaadd4072f2263a4fbed23/funcsigs-1.0.2.tar.gz"
|
2016-05-13 01:43:51 +00:00
|
|
|
sha256 "a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "idna" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/fb/84/8c27516fbaa8147acd2e431086b473c453c428e24e8fb99a1d89ce381851/idna-2.1.tar.gz"
|
2016-04-07 14:49:50 +00:00
|
|
|
sha256 "ed36f281aebf3cd0797f163bb165d84c31507cedd15928b095b1675e2d04c676"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "ipaddress" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/bb/26/3b64955ff73f9e3155079b9ed31812afdfa5333b5c76387454d651ef593a/ipaddress-1.0.17.tar.gz"
|
|
|
|
sha256 "3a21c5a15f433710aaa26f1ae174b615973a25182006ae7f9c26de151cd51716"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "mock" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/mock-2.0.0.tar.gz"
|
2016-04-07 14:49:50 +00:00
|
|
|
sha256 "b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "ndg-httpsclient" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/a2/a7/ad1c1c48e35dc7545dab1a9c5513f49d5fa3b5015627200d2be27576c2a0/ndg_httpsclient-0.4.2.tar.gz"
|
|
|
|
sha256 "580987ef194334c50389e0d7de885fccf15605c13c6eecaabd8d6c43768eb8ac"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "parsedatetime" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/8b/20/37822d52be72c99cad913fad0b992d982928cac882efbbc491d4b9d216a9/parsedatetime-2.1.tar.gz"
|
2016-04-07 14:49:50 +00:00
|
|
|
sha256 "17c578775520c99131634e09cfca5a05ea9e1bd2a05cd06967ebece10df7af2d"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "pbr" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/c3/2c/63275fab26a0fd8cadafca71a3623e4d0f0ee8ed7124a5bb128853d178a7/pbr-1.10.0.tar.gz"
|
2016-05-27 21:58:07 +00:00
|
|
|
sha256 "186428c270309e6fdfe2d5ab0949ab21ae5f7dea831eab96701b86bd666af39c"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyasn1" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/f7/83/377e3dd2e95f9020dbd0dfd3c47aaa7deebe3c68d3857a4e51917146ae8b/pyasn1-0.1.9.tar.gz"
|
2015-12-31 05:33:57 +00:00
|
|
|
sha256 "853cacd96d1f701ddd67aa03ecc05f51890135b7262e922710112f12a2ed2a7f"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pycparser" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz"
|
2015-12-31 05:33:57 +00:00
|
|
|
sha256 "7959b4a74abdc27b312fed1c21e6caf9309ce0b29ea86b591fd2e99ecdf27f73"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyOpenSSL" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/15/1e/79c75db50e57350a7cefb70b110255757e9abd380a50ebdc0cfd853b7450/pyOpenSSL-16.1.0.tar.gz"
|
|
|
|
sha256 "88f7ada2a71daf2c78a4f139b19d57551b4c8be01f53a1cb5c86c2f3bf01355f"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyRFC3339" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/7a/8a/78e04792f04da5f3780058f8cfc35ff9eb74080faffbf321c58e6d34d089/pyRFC3339-1.0.tar.gz"
|
2015-12-31 05:33:57 +00:00
|
|
|
sha256 "8dfbc6c458b8daba1c0f3620a8c78008b323a268b27b7359e92a4ae41325f535"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "python2-pythondialog" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/26/3e/4ce683158e93cb6047911b457b9dc7858e5c1ba91864a097bb353e9fd071/python2-pythondialog-3.4.0.tar.bz2"
|
2016-05-13 01:43:51 +00:00
|
|
|
sha256 "8978d355c8db6728eeb9e23b39449b14597f1c76cb06dc72462642ca7cde46a0"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "pytz" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/53/35/6376f58fb82ce69e2c113ca0ebe5c0f69b20f006e184bcc238a6007f4bdb/pytz-2016.7.tar.bz2"
|
|
|
|
sha256 "6eab31709e3a4aea748457707da45e805b650cbb352583805d2417de2a1dd71e"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/2e/ad/e627446492cc374c284e82381215dcd9a0a87c4f6e90e9789afefe6da0ad/requests-2.11.1.tar.gz"
|
|
|
|
sha256 "5acf980358283faba0b897c73959cecf8b841205bb4b2ad3ef545f46eae1a133"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "six" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"
|
2015-12-31 05:33:57 +00:00
|
|
|
sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "zope.component" do
|
2016-10-06 06:32:19 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/c9/56/501d51f0277af1899d1381e4b9928b5e14675187752622ddc344a756439d/zope.component-4.3.0.tar.gz"
|
|
|
|
sha256 "bb4136c7443610f8c2d2d357cad247c3e90bb5e6f0b7a02b0edfb11924ff9bc2"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "zope.event" do
|
2016-06-15 22:02:18 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/cd/a5/4927363244aaa7fd8a696d32005ea8214c4811550d35edea27797ebbd4fd/zope.event-4.2.0.tar.gz"
|
2016-03-02 04:44:40 +00:00
|
|
|
sha256 "ce11004217863a4827ea1a67a31730bddab9073832bdb3b9be85869259118758"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "zope.interface" do
|
2016-10-07 07:29:49 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/38/1b/d55c39f2cf442bd9fb2c59760ed058c84b57d25c680819c25f3aff741e1f/zope.interface-4.3.2.tar.gz"
|
|
|
|
sha256 "6a0e224a052e3ce27b3a7b1300a24747513f7a507217fcc2a4cb02eb92945cee"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
2016-03-02 04:44:40 +00:00
|
|
|
# Required because augeas formula doesn't ship these.
|
|
|
|
resource "python-augeas" do
|
2016-10-07 07:29:49 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz"
|
2016-03-02 04:44:40 +00:00
|
|
|
sha256 "67d59d66cdba8d624e0389b87b2a83a176f21f16a87553b50f5703b23f29bac2"
|
|
|
|
end
|
|
|
|
|
|
|
|
# Required for the nginx module.
|
|
|
|
resource "pyparsing" do
|
2016-10-07 07:29:49 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/38/bb/bf325351dd8ab6eb3c3b7c07c3978f38b2103e2ab48d59726916907cd6fb/pyparsing-2.1.10.tar.gz"
|
|
|
|
sha256 "811c3e7b0031021137fc83e051795025fcb98674d07eb8fe922ba4de53d39188"
|
2016-06-06 22:25:01 +00:00
|
|
|
end
|
|
|
|
|
2015-12-31 05:33:57 +00:00
|
|
|
def install
|
2016-08-29 16:56:23 +00:00
|
|
|
virtualenv_install_with_resources
|
2015-12-31 05:33:57 +00:00
|
|
|
|
2016-08-29 16:56:23 +00:00
|
|
|
# Shipped with certbot, not external resources.
|
|
|
|
%w[acme certbot-apache certbot-nginx].each do |r|
|
|
|
|
cd r do
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
|
|
|
end
|
2016-01-30 20:09:15 +00:00
|
|
|
end
|
|
|
|
|
2016-06-09 02:09:34 +00:00
|
|
|
pkgshare.install "examples"
|
2016-05-13 01:43:51 +00:00
|
|
|
# Keep the old name around temporarily for compatibility
|
|
|
|
# so that people's scripts don't suddenly bork.
|
|
|
|
bin.install_symlink bin/"certbot" => "letsencrypt"
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-05-13 01:43:51 +00:00
|
|
|
assert_match version.to_s, pipe_output("#{bin}/certbot --version 2>&1")
|
2015-12-31 05:33:57 +00:00
|
|
|
end
|
|
|
|
end
|