bgpstream 1.1.0 (new formula)
Closes Homebrew/homebrew#50247. Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
parent
39ee67efcc
commit
ba195166ea
1 changed files with 32 additions and 0 deletions
32
Formula/bgpstream.rb
Normal file
32
Formula/bgpstream.rb
Normal file
|
@ -0,0 +1,32 @@
|
|||
class Bgpstream < Formula
|
||||
desc "For live and historical BGP data analysis"
|
||||
homepage "https://bgpstream.caida.org/"
|
||||
url "https://bgpstream.caida.org/bundles/caidabgpstreamwebhomepage/dists/bgpstream-1.1.0.tar.gz"
|
||||
sha256 "b89cef45bcc5ae4011aa3c42f689ae9fd7b5c8fd25e06ab18589577b5e077f89"
|
||||
|
||||
depends_on "wandio"
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
#include "bgpstream.h"
|
||||
int main()
|
||||
{
|
||||
bgpstream_t *bs = bs = bgpstream_create();
|
||||
if(!bs) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lbgpstream", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue