aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2011-08-26 10:20:56 -0500
committerMax Howell2011-08-26 16:55:12 +0100
commit752de0d31e7e4a6a1efb1553f9eeb798310087dc (patch)
treee178a6510500a96d64898245380a3594e4d6d12a /Library
parentddb4d9bd16437a89e726b04fde049c69efcd3f92 (diff)
downloadhomebrew-752de0d31e7e4a6a1efb1553f9eeb798310087dc.tar.bz2
midnight-commander: use curl -k to download
Closes #7229. Signed-off-by: Max Howell <max@methylblue.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/midnight-commander.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/midnight-commander.rb b/Library/Formula/midnight-commander.rb
index cd12dfdac..c2864b433 100644
--- a/Library/Formula/midnight-commander.rb
+++ b/Library/Formula/midnight-commander.rb
@@ -1,7 +1,16 @@
require 'formula'
+class MidnightCommanderDownloadStrategy < CurlDownloadStrategy
+ # midnight-commander.org uses a self-signed cert, which is
+ # silly and trips curl up
+ def _fetch
+ curl '-k', @url, '-o', @tarball_path
+ end
+end
+
class MidnightCommander < Formula
- url 'http://www.midnight-commander.org/downloads/mc-4.7.5.3.tar.bz2'
+ url 'http://www.midnight-commander.org/downloads/mc-4.7.5.3.tar.bz2',
+ :using => MidnightCommanderDownloadStrategy
homepage 'http://www.midnight-commander.org/'
sha256 '0875b4c745d771b65ab71d0a295f2e6e91297121411a82068e2879f39a7628b6'