audit fixes: B: backupninja - bigdata

audit fixes for: backupninja, bashdb, bats, bfg, bgpdump, bgrep, bigdata

Closes Homebrew/homebrew#44690.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Andrew Janke 2015-10-05 08:03:06 -04:00 committed by Xu Cheng
parent 8a1277b707
commit 45868a3aff
7 changed files with 9 additions and 9 deletions

View file

@ -1,9 +1,9 @@
class Backupninja < Formula class Backupninja < Formula
desc "Backup automation tool" desc "Backup automation tool"
homepage "https://labs.riseup.net/code/projects/backupninja" homepage "https://labs.riseup.net/code/projects/backupninja"
head "git://labs.riseup.net/backupninja.git"
url "https://labs.riseup.net/code/attachments/download/275/backupninja-1.0.1.tar.gz" url "https://labs.riseup.net/code/attachments/download/275/backupninja-1.0.1.tar.gz"
sha256 "10fa5dbcd569a082b8164cd30276dd04a238c7190d836bcba006ea3d1235e525" sha256 "10fa5dbcd569a082b8164cd30276dd04a238c7190d836bcba006ea3d1235e525"
head "git://labs.riseup.net/backupninja.git"
depends_on "dialog" depends_on "dialog"
depends_on "gawk" depends_on "gawk"

View file

@ -2,8 +2,8 @@ class Bashdb < Formula
desc "Bash shell debugger" desc "Bash shell debugger"
homepage "http://bashdb.sourceforge.net" homepage "http://bashdb.sourceforge.net"
url "https://downloads.sourceforge.net/project/bashdb/bashdb/4.3-0.91/bashdb-4.3-0.91.tar.bz2" url "https://downloads.sourceforge.net/project/bashdb/bashdb/4.3-0.91/bashdb-4.3-0.91.tar.bz2"
sha256 "60117745813f29070a034c590c9d70153cc47f47024ae54bfecdc8cd86d9e3ea"
version "4.3-0.91" version "4.3-0.91"
sha256 "60117745813f29070a034c590c9d70153cc47f47024ae54bfecdc8cd86d9e3ea"
depends_on "bash" depends_on "bash"
depends_on :macos => :mountain_lion depends_on :macos => :mountain_lion

View file

@ -19,7 +19,6 @@ class Bats < Formula
EOS EOS
chmod 0755, testpath/"testing.sh" chmod 0755, testpath/"testing.sh"
output = shell_output("./testing.sh") assert_match "addition", shell_output("./testing.sh")
assert output.include?("addition")
end end
end end

View file

@ -1,5 +1,5 @@
class Bfg < Formula class Bfg < Formula
desc "Removes large files or passwords from Git history like git-filter-branch does, but faster." desc "Remove large files or passwords from Git history like git-filter-branch"
homepage "https://rtyley.github.io/bfg-repo-cleaner/" homepage "https://rtyley.github.io/bfg-repo-cleaner/"
url "https://repo1.maven.org/maven2/com/madgag/bfg/1.12.5/bfg-1.12.5.jar" url "https://repo1.maven.org/maven2/com/madgag/bfg/1.12.5/bfg-1.12.5.jar"
sha256 "fa797cc6e5878a3b7b61104f3a3ba3d43987e2a7a9c596cb9d137c7b95e6b082" sha256 "fa797cc6e5878a3b7b61104f3a3ba3d43987e2a7a9c596cb9d137c7b95e6b082"

View file

@ -1,5 +1,5 @@
class Bgpdump < Formula class Bgpdump < Formula
desc "A C library for analyzing MRT/Zebra/Quagga dump files" desc "C library for analyzing MRT/Zebra/Quagga dump files"
homepage "https://bitbucket.org/ripencc/bgpdump/wiki/Home" homepage "https://bitbucket.org/ripencc/bgpdump/wiki/Home"
url "https://bitbucket.org/ripencc/bgpdump/get/1.4.99.15.tar.gz" url "https://bitbucket.org/ripencc/bgpdump/get/1.4.99.15.tar.gz"
sha256 "6da4ef4020345c68a2551460919ec02b7b63c194324e209fc73bea9889fb5c7c" sha256 "6da4ef4020345c68a2551460919ec02b7b63c194324e209fc73bea9889fb5c7c"

View file

@ -5,14 +5,15 @@ class Bgrep < Formula
sha256 "24c02393fb436d7a2eb02c6042ec140f9502667500b13a59795388c1af91f9ba" sha256 "24c02393fb436d7a2eb02c6042ec140f9502667500b13a59795388c1af91f9ba"
def install def install
system "#{ENV.cc} #{ENV.cflags} -o bgrep bgrep.c" system ENV.cc, ENV.cflags, "-o", "bgrep", "bgrep.c"
bin.install "bgrep" bin.install "bgrep"
end end
test do test do
path = testpath/"hi.prg" path = testpath/"hi.prg"
path.binwrite [0x00, 0xc0, 0xa9, 0x48, 0x20, 0xd2, 0xff, path.binwrite [0x00, 0xc0, 0xa9, 0x48, 0x20, 0xd2, 0xff,
0xa9, 0x49, 0x20, 0xd2, 0xff, 0x60].pack("C*") 0xa9, 0x49, 0x20, 0xd2, 0xff, 0x60,
].pack("C*")
assert_equal ["#{path}: 00000004", "#{path}: 00000009"], assert_equal ["#{path}: 00000004", "#{path}: 00000009"],
shell_output("#{bin}/bgrep 20d2ff #{path}").split("\n") shell_output("#{bin}/bgrep 20d2ff #{path}").split("\n")

View file

@ -2,8 +2,8 @@ class Bigdata < Formula
desc "Graph database supporting RDF data model, Sesame, and Blueprint APIs" desc "Graph database supporting RDF data model, Sesame, and Blueprint APIs"
homepage "http://www.blazegraph.com/bigdata" homepage "http://www.blazegraph.com/bigdata"
url "https://downloads.sourceforge.net/project/bigdata/bigdata/1.5.1/bigdata-bundled.jar" url "https://downloads.sourceforge.net/project/bigdata/bigdata/1.5.1/bigdata-bundled.jar"
sha256 "092ecfb1293de27ef40c02795a34ac410e30d175623a342b27271952f01c1f1a"
version "1.5.1" version "1.5.1"
sha256 "092ecfb1293de27ef40c02795a34ac410e30d175623a342b27271952f01c1f1a"
depends_on :java => "1.7+" depends_on :java => "1.7+"