Skip to content

Commit

Permalink
netact6: make silence patch optional
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Apr 19, 2014
1 parent a10a9bf commit 6a91f5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Formula/netcat6.rb
Expand Up @@ -5,7 +5,11 @@ class Netcat6 < Formula
url "http://ftp.debian.org/debian/pool/main/n/nc6/nc6_1.0.orig.tar.gz"
sha1 "50b1a3f7bfa610a2016727e5741791ad3a88bd07"

patch :p0, :DATA
option "silence-patch", "Use silence patch from Debian"

if build.include? "silence-patch"
patch :p0, :DATA
end

def install
system "./configure", "--disable-dependency-tracking",
Expand All @@ -15,7 +19,6 @@ def install
end

test do
# before we do anything too serious, let's just make sure that --version works
IO.popen("#{bin}/nc6 --version") { |subp|
assert subp.readline.strip == "nc6 version #{version}"
}
Expand Down

0 comments on commit 6a91f5b

Please sign in to comment.