95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
30 lines
946 B
Ruby
30 lines
946 B
Ruby
class Tinc < Formula
|
|
desc "Virtual Private Network (VPN) tool"
|
|
homepage "http://www.tinc-vpn.org"
|
|
url "http://tinc-vpn.org/packages/tinc-1.0.25.tar.gz"
|
|
sha256 "c5c1c554e594d77365b63222ef15f4460c0c202f9163a89a087333a779f4f133"
|
|
|
|
bottle do
|
|
sha1 "359656333342ffc8fa80ca09a89390833816b163" => :yosemite
|
|
sha1 "c70ebe54e832e8e920a74e92764306439d9811a4" => :mavericks
|
|
sha1 "762f671f4ec7065728fdd9450e8a363a2db24601" => :mountain_lion
|
|
end
|
|
|
|
devel do
|
|
url "http://www.tinc-vpn.org/packages/tinc-1.1pre11.tar.gz"
|
|
sha256 "942594563d3aef926a2d04e9ece90c16daf1c700e99e3b91ff749e8377fbf757"
|
|
end
|
|
|
|
depends_on "lzo"
|
|
depends_on "openssl"
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}",
|
|
"--with-openssl=#{Formula["openssl"].opt_prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match /^tinc version [-0-9a-z.]/, `#{sbin}/tincd --version`
|
|
end
|
|
end
|