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"
|
2016-04-03 15:51:46 +00:00
|
|
|
url "https://projects.universe-factory.net/attachments/download/86/fastd-18.tar.xz"
|
|
|
|
sha256 "714ff09d7bd75f79783f744f6f8c5af2fe456c8cf876feaa704c205a73e043c9"
|
2016-03-01 11:02:28 +00:00
|
|
|
head "https://git.universe-factory.net/fastd/", :using => :git
|
2016-01-14 14:42:33 +00:00
|
|
|
|
2016-01-19 02:55:49 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-04-11 09:10:22 +00:00
|
|
|
revision 2
|
|
|
|
sha256 "c89ecf6a83289f7d4fee098474304e41f58799031b3468d0147884848d60e825" => :mavericks
|
2016-01-19 02:55:49 +00:00
|
|
|
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
|
2016-04-11 08:59:05 +00:00
|
|
|
system "#{bin}/fastd", "--generate-key"
|
2016-01-14 14:42:33 +00:00
|
|
|
end
|
|
|
|
end
|