Permalink
Browse files

audit fixes: C 05: cpmtools - cryptopp

Closes Homebrew/legacy-homebrew#44963.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information...
apjanke authored and DomT4 committed Oct 5, 2015
1 parent 6956f6d commit a1616393ac137637cec618390fa4fa0222e2b5fa
Showing with 11 additions and 16 deletions.
  1. +4 βˆ’4 Formula/cpmtools.rb
  2. +1 βˆ’1 Formula/cputhrottle.rb
  3. +0 βˆ’1 Formula/crm114.rb
  4. +1 βˆ’3 Formula/cronolog.rb
  5. +3 βˆ’3 Formula/crosstool-ng.rb
  6. +1 βˆ’3 Formula/crunch.rb
  7. +1 βˆ’1 Formula/cryptopp.rb
View
@@ -23,19 +23,19 @@ def install
test do
# make a disk image
image = testpath/"disk.cpm"
system "#{bin}/mkfs.cpm -f ibm-3740 #{image}"
system "#{bin}/mkfs.cpm", "-f", "ibm-3740", image
# copy a file into the disk image
src = testpath/"foo"
src.write "a" * 128
system "#{bin}/cpmcp -f ibm-3740 #{image} #{src} 0:foo"
system "#{bin}/cpmcp", "-f", "ibm-3740", image, src, "0:foo"
# check for the file in the cp/m directory
assert shell_output("#{bin}/cpmls -f ibm-3740 #{image}").include?("foo")
assert_match "foo", shell_output("#{bin}/cpmls -f ibm-3740 #{image}")
# copy the file back out of the image
dest = testpath/"bar"
system "#{bin}/cpmcp -f ibm-3740 #{image} 0:foo #{dest}"
system "#{bin}/cpmcp", "-f", "ibm-3740", image, "0:foo", dest
assert_equal src.read, dest.read
end
end
View
@@ -2,8 +2,8 @@ class Cputhrottle < Formula
desc "Limit the CPU usage of a process"
homepage "http://www.willnolan.com/cputhrottle/cputhrottle.html"
url "http://www.willnolan.com/cputhrottle/cputhrottle.tar.gz"
sha256 "fdf284e1c278e4a98417bbd3eeeacf40db684f4e79a9d4ae030632957491163b"
version "20100515"
sha256 "fdf284e1c278e4a98417bbd3eeeacf40db684f4e79a9d4ae030632957491163b"
bottle do
cellar :any
View
@@ -13,4 +13,3 @@ def install
system "make", "prefix=#{prefix}", "install"
end
end
View
@@ -1,5 +1,3 @@
require "formula"
class Cronolog < Formula
desc "Web log rotation"
homepage "https://web.archive.org/web/20140209202032/http://cronolog.org/"
@@ -18,6 +16,6 @@ def install
"--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}"
system "make install"
system "make", "install"
end
end
View
@@ -37,7 +37,8 @@ def install
"--with-libtoolize=glibtoolize",
"--with-install=ginstall",
"--with-sed=gsed",
"--with-awk=gawk"]
"--with-awk=gawk",
]
args << "--with-grep=ggrep" if build.with? "grep"
@@ -49,7 +50,7 @@ def install
# Must be done in two steps
system "make"
system "make install"
system "make", "install"
end
def caveats; <<-EOS.undent
@@ -61,4 +62,3 @@ def caveats; <<-EOS.undent
system "#{bin}/ct-ng", "version"
end
end
View
@@ -1,10 +1,8 @@
require "formula"
class Crunch < Formula
desc "Wordlist generator"
homepage "http://sourceforge.net/projects/crunch-wordlist"
url "https://downloads.sourceforge.net/project/crunch-wordlist/crunch-wordlist/crunch-3.6.tgz"
sha1 "51bdf8b9dfb9e4486fa6a85e0224522569de4557"
sha256 "6a8f6c3c7410cc1930e6854d1dadc6691bfef138760509b33722ff2de133fe55"
def install
system "make", "CC=#{ENV.cc}", "LFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
View
@@ -3,8 +3,8 @@ class Cryptopp < Formula
homepage "http://www.cryptopp.com/"
url "https://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.2/cryptopp562.zip"
mirror "http://www.cryptopp.com/cryptopp562.zip"
sha256 "5cbfd2fcb4a6b3aab35902e2e0f3b59d9171fee12b3fc2b363e1801dfec53574"
version "5.6.2"
sha256 "5cbfd2fcb4a6b3aab35902e2e0f3b59d9171fee12b3fc2b363e1801dfec53574"
bottle do
cellar :any_skip_relocation

0 comments on commit a161639

Please sign in to comment.