2016-01-14 14:42:33 +00:00
|
|
|
class Fastd < Formula
|
|
|
|
desc "Fast and Secure Tunnelling Daemon"
|
|
|
|
homepage "https://projects.universe-factory.net/projects/fastd"
|
|
|
|
url "https://projects.universe-factory.net/attachments/download/81/fastd-17.tar.xz"
|
|
|
|
sha256 "26d4a8bf2f8cc52872f836f6dba55f3b759f8c723699b4e4decaa9340d3e5a2d"
|
|
|
|
head "git://git.universe-factory.net/fastd/"
|
|
|
|
|
2016-01-19 02:55:49 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "5a43b388d80c8e5abb0d7ddf2e9f0a75737acff4640766b70f2f9d3c0c65683a" => :mavericks
|
|
|
|
end
|
|
|
|
|
2016-01-14 14:42:33 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "libuecc"
|
|
|
|
depends_on "libsodium"
|
|
|
|
depends_on "bison" => :build # fastd requires bison >= 2.5
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "json-c"
|
|
|
|
depends_on "openssl" => :optional
|
|
|
|
depends_on :tuntap => :recommended
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = std_cmake_args
|
|
|
|
args << "-DENABLE_LTO=ON"
|
|
|
|
args << "-DENABLE_OPENSSL=ON" if build.with? "openssl"
|
|
|
|
args << buildpath
|
|
|
|
mkdir "fastd-build" do
|
|
|
|
system "cmake", *args
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/fastd"
|
|
|
|
end
|
|
|
|
end
|