aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-02-04 17:46:46 +0000
committerMike McQuaid2015-03-13 10:41:55 +0000
commitffae5ba62773439dbad86e57fc5308435a6ad137 (patch)
tree1f588e6a8d458959a45a8bb2324033efc98cc50a /Library
parentddc993bc7ec3316b6985e056d994c31fa77ad232 (diff)
downloadhomebrew-ffae5ba62773439dbad86e57fc5308435a6ad137.tar.bz2
bip: system openssl linkage fix
Stops bip linking into the defunct system OpenSSL. Also moves the URL to SSL/TLS, adds some caveats, adds a test, fixes strict audit. Closes #36531. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/bip.rb26
1 files changed, 20 insertions, 6 deletions
diff --git a/Library/Formula/bip.rb b/Library/Formula/bip.rb
index ecdd0ba60..7afc82df8 100644
--- a/Library/Formula/bip.rb
+++ b/Library/Formula/bip.rb
@@ -1,15 +1,29 @@
-require "formula"
-
class Bip < Formula
- homepage "http://bip.milkypond.org"
- url "http://ftp.de.debian.org/debian/pool/main/b/bip/bip_0.8.9.orig.tar.gz"
- sha1 "6c6828dde0ec9c41237bac42a679aa8237bdeffe"
+ homepage "https://bip.milkypond.org" # Self-signed cert.
+ url "https://mirrors.kernel.org/debian/pool/main/b/bip/bip_0.8.9.orig.tar.gz"
+ sha256 "3c950f71ef91c8b686e6835f9b722aa7ccb88d3da4ec1af19617354fd3132461"
+ revision 1
+
+ depends_on "openssl"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
- "--prefix=#{prefix}"
+ "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}/bip"
+
system "make", "install"
+ (etc+"bip").install "samples/bip.conf"
+ end
+
+ def caveats; <<-EOS.undent
+ Prior to running bip you will need to do:
+ mkdir -p ~/.bip/logs
+ EOS
+ end
+
+ test do
+ system bin/"bip", "-v"
end
end