aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexis Hildebrandt2015-01-21 22:58:34 +0100
committerMike McQuaid2015-01-24 10:16:28 +0100
commit9acf5040a5198d68042074787a33d00ae64574eb (patch)
tree5f193a9c17ffa5f2e12d5c68c48637a443a71a3e /Library
parenta3ff2f506a16bbf316fe8ae8bacb1d40b68bb0a6 (diff)
downloadhomebrew-9acf5040a5198d68042074787a33d00ae64574eb.tar.bz2
tinc: modernize
* Remove obsolete require 'formula' * Remove superfluous make * Add test Closes #36115. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tinc.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/tinc.rb b/Library/Formula/tinc.rb
index 0a16a5ab2..7b75adcdb 100644
--- a/Library/Formula/tinc.rb
+++ b/Library/Formula/tinc.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class Tinc < Formula
homepage "http://www.tinc-vpn.org"
url "http://tinc-vpn.org/packages/tinc-1.0.25.tar.gz"
@@ -22,7 +20,10 @@ class Tinc < Formula
def install
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}",
"--with-openssl=#{Formula["openssl"].opt_prefix}"
- system "make"
system "make", "install"
end
+
+ test do
+ assert_match /^tinc version [-0-9a-z.]/, `#{sbin}/tincd --version`
+ end
end