31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
class Bgpdump < Formula
|
|
desc "C library for analyzing MRT/Zebra/Quagga dump files"
|
|
homepage "https://bitbucket.org/ripencc/bgpdump/wiki/Home"
|
|
url "https://bitbucket.org/ripencc/bgpdump/get/1.5.0.tar.gz"
|
|
sha256 "47534112b427b8107ae0fd52437927de25f5cfe0ef98eba6e08df441ae5f05c5"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "2ed0b9633e3ca02f0bc7ccc828488135aae5184d05e9dab6c27f29e1c7ade18b" => :high_sierra
|
|
sha256 "3abf1e40a8259d4bc10240547dee890a07eab6945f0c713eb3581461ad025884" => :sierra
|
|
sha256 "ba9a99d87eca4aa356d506e5b6e14eb25bc5f47c8001114f82519b9dfbedf88e" => :el_capitan
|
|
sha256 "ce81cb3942f040ea14406d3c2369e531605033b6173c36eada757f372c8d81f7" => :yosemite
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
def install
|
|
system "./bootstrap.sh"
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "check"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/bgpdump", "-T"
|
|
end
|
|
end
|