2011-08-20 13:02:20 +00:00
|
|
|
class Dc3dd < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Patched GNU dd that is intended for forensic acquisition of data"
|
2015-11-12 02:33:58 +00:00
|
|
|
homepage "https://sourceforge.net/projects/dc3dd/"
|
2015-08-03 12:55:31 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/dc3dd/dc3dd/7.1.0/dc3dd-7.1.614.tar.gz"
|
|
|
|
sha256 "f6fb4d921928e6354e9f8ff2a8415ebc42b129959996e1ab0d10899c11aac198"
|
2012-07-07 18:08:22 +00:00
|
|
|
|
2015-11-15 16:17:43 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "fe98660fe3815dc9618ec5c9fddae3393024a4b23d03d1e3ef8f2ed5c99846da" => :el_capitan
|
|
|
|
sha256 "fbf2891c99d330a38018ea002653ce54bda4661c6e47d8d9398133027c95e789" => :yosemite
|
|
|
|
sha256 "dc413cbaaf429d0304d2c678b154a411fd631ee6556c7784587c2547f14c6a1b" => :mavericks
|
|
|
|
end
|
|
|
|
|
2011-08-20 13:02:20 +00:00
|
|
|
def install
|
2013-07-30 01:43:21 +00:00
|
|
|
args = %W[--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--infodir=#{info}]
|
|
|
|
|
|
|
|
# Check for stpncpy is broken, and the replacement fails to compile
|
2013-12-14 18:13:11 +00:00
|
|
|
# on Lion and newer; see https://github.com/Homebrew/homebrew/issues/21510
|
2013-07-30 01:43:21 +00:00
|
|
|
args << "gl_cv_func_stpncpy=yes" if MacOS.version >= :lion
|
|
|
|
system "./configure", *args
|
2011-08-20 13:02:20 +00:00
|
|
|
system "make"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2012-11-11 19:20:09 +00:00
|
|
|
prefix.install %w[Options_Reference.txt Sample_Commands.txt]
|
2011-08-20 13:02:20 +00:00
|
|
|
end
|
|
|
|
end
|