fstrm 0.3.2 (new formula)
Closes #12949. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
777cdbcb6f
commit
cf00a73668
2 changed files with 36 additions and 31 deletions
32
Formula/fstrm.rb
Normal file
32
Formula/fstrm.rb
Normal file
|
@ -0,0 +1,32 @@
|
|||
class Fstrm < Formula
|
||||
desc "Frame Streams implementation in C"
|
||||
homepage "https://github.com/farsightsec/fstrm"
|
||||
|
||||
url "https://dl.farsightsecurity.com/dist/fstrm/fstrm-0.3.2.tar.gz"
|
||||
sha256 "2d509999ac904e48c038f88820f47859da85ceb86c06552e4052897082423ec5"
|
||||
|
||||
head do
|
||||
url "https://github.com/farsightsec/fstrm.git"
|
||||
|
||||
depends_on "automake" => :build
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "libevent"
|
||||
|
||||
def install
|
||||
system "autoreconf", "-fvi" if build.head?
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
system "sh", "-c", "#{bin}/fstrm_capture -t protobuf:dnstap.Dnstap -u dnstap.sock -w capture.fstrm -dddd & sleep 1; kill $!"
|
||||
system "#{bin}/fstrm_dump", "capture.fstrm"
|
||||
end
|
||||
end
|
|
@ -1,22 +1,9 @@
|
|||
class Knot < Formula
|
||||
desc "High-performance authoritative-only DNS server"
|
||||
homepage "https://www.knot-dns.cz/"
|
||||
|
||||
stable do
|
||||
url "https://secure.nic.cz/files/knot-dns/knot-2.4.3.tar.xz"
|
||||
sha256 "f90258bcb29c1f351cd8d824ff8d67aef906ae5d5ff0f652c4f69c69ed8a704f"
|
||||
|
||||
resource "fstrm" do
|
||||
url "https://dl.farsightsecurity.com/dist/fstrm/fstrm-0.3.2.tar.gz"
|
||||
sha256 "2d509999ac904e48c038f88820f47859da85ceb86c06552e4052897082423ec5"
|
||||
end
|
||||
end
|
||||
|
||||
bottle do
|
||||
sha256 "e0a392eb217d4707174b5319bd5c87a1b6ec4a1c8a05f2e8513d1b8827fe0a5f" => :sierra
|
||||
sha256 "25af8be672f352e88edfb9f41d5a2fc2ac74e99e333a451c08080fccfa51a509" => :el_capitan
|
||||
sha256 "fc92515ae8adb4bbcc75629fb525d34935686877352d86ee50797485429d1c9c" => :yosemite
|
||||
end
|
||||
url "https://secure.nic.cz/files/knot-dns/knot-2.4.3.tar.xz"
|
||||
sha256 "f90258bcb29c1f351cd8d824ff8d67aef906ae5d5ff0f652c4f69c69ed8a704f"
|
||||
revision 1
|
||||
|
||||
head do
|
||||
url "https://gitlab.labs.nic.cz/labs/knot.git"
|
||||
|
@ -24,10 +11,6 @@ class Knot < Formula
|
|||
depends_on "automake" => :build
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "libtool" => :build
|
||||
|
||||
resource "fstrm" do
|
||||
url "https://github.com/farsightsec/fstrm.git"
|
||||
end
|
||||
end
|
||||
|
||||
# due to AT_REMOVEDIR
|
||||
|
@ -42,19 +25,9 @@ class Knot < Formula
|
|||
depends_on "openssl"
|
||||
depends_on "userspace-rcu"
|
||||
depends_on "protobuf-c"
|
||||
depends_on "libevent"
|
||||
depends_on "fstrm"
|
||||
|
||||
def install
|
||||
resource("fstrm").stage do
|
||||
system "autoreconf", "-fvi" if build.head?
|
||||
system "./configure", "--prefix=#{libexec}/fstrm"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
ENV.append "CFLAGS", "-I#{libexec}/fstrm/include"
|
||||
ENV.append "LDFLAGS", "-L#{libexec}/fstrm/lib"
|
||||
ENV.append_path "PKG_CONFIG_PATH", "#{libexec}/fstrm/lib/pkgconfig"
|
||||
|
||||
system "autoreconf", "-fvi" if build.head?
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
|
|
Loading…
Reference in a new issue