Skip to content

Commit

Permalink
massive audit fix
Browse files Browse the repository at this point in the history
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
  • Loading branch information
BrewTestBot authored and bfontaine committed Dec 1, 2015
1 parent 4a77328 commit 21aac30
Show file tree
Hide file tree
Showing 75 changed files with 549 additions and 643 deletions.
34 changes: 16 additions & 18 deletions abiword.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
require 'formula'

class Abiword < Formula
homepage 'http://www.abisource.com/'
url 'http://www.abisource.com/downloads/abiword/2.8.6/source/abiword-2.8.6.tar.gz'
sha1 '998f69d038000b3fc027d4259548f02d67c8d0df'
homepage "http://www.abisource.com/"
url "http://www.abisource.com/downloads/abiword/2.8.6/source/abiword-2.8.6.tar.gz"
sha256 "d99089a63a6cfc1a6a4a026be9278028d47d224088d24b1853acb67e95683a15"

devel do
url 'http://www.abisource.com/downloads/abiword/2.9.4/source/abiword-2.9.4.tar.gz'
sha1 '67cfbc633129128a1aa48ffba8959229cef2ebdd'
url "http://www.abisource.com/downloads/abiword/2.9.4/source/abiword-2.9.4.tar.gz"
sha256 "d06b731feb23cbe7b28f5a4afd875e013bfecf8482f7a8bead0afaf74370bbd4"
end

depends_on 'libpng'
depends_on 'jpeg'
depends_on 'fribidi'
depends_on 'libgsf'
depends_on 'enchant'
depends_on 'cairo'
depends_on 'pango'
depends_on 'wv'
depends_on 'imagemagick'
depends_on "libpng"
depends_on "jpeg"
depends_on "fribidi"
depends_on "libgsf"
depends_on "enchant"
depends_on "cairo"
depends_on "pango"
depends_on "wv"
depends_on "imagemagick"

fails_with :clang do
build 421
Expand All @@ -30,14 +28,14 @@ def patches
# Fixes newer libpng versions; needed for libpng 1.2, too
:p0 => "https://trac.macports.org/export/102401/trunk/dports/editors/abiword-x11/files/patch-libpng-1.5.diff",
# Fixes bad glib include
:p1 => DATA
:p1 => DATA,
} if build.stable?
end

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
system "make", "install"
end
end

Expand Down
8 changes: 3 additions & 5 deletions agrep.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require 'formula'

class Agrep < Formula
homepage 'http://en.wikipedia.org/wiki/Agrep'
url 'ftp://ftp.cs.arizona.edu/agrep/agrep-2.04.tar.Z'
sha1 '862fa60832b175b9b0c3f43d792f7663a43902b7'
homepage "http://en.wikipedia.org/wiki/Agrep"
url "ftp://ftp.cs.arizona.edu/agrep/agrep-2.04.tar.Z"
sha256 "31275a2fee28fb8966e1978d26fe8113b61ce49b39e68ddf4cad3964db72d5f8"

def install
system "make", "CFLAGS=#{ENV.cflags}"
Expand Down
12 changes: 5 additions & 7 deletions aimage.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
require 'formula'

class Aimage < Formula
homepage 'http://www.forensicswiki.org/wiki/Aimage'
url 'http://pkgs.fedoraproject.org/repo/pkgs/aimage/aimage-3.2.5.tar.gz/07a11d653cdd1d7a5aefe4d99cdbd408/aimage-3.2.5.tar.gz'
sha1 '8f3136e9ad3204fb4c91149b3f01a32cc83e0371'
homepage "http://www.forensicswiki.org/wiki/Aimage"
url "http://pkgs.fedoraproject.org/repo/pkgs/aimage/aimage-3.2.5.tar.gz/07a11d653cdd1d7a5aefe4d99cdbd408/aimage-3.2.5.tar.gz"
sha256 "9c362dbb24a064af014677c30d9511ed65b4f2b2c5ea3ba051bc4c5ada635b11"

depends_on 'afflib'
depends_on "afflib"

def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
system "make", "install"
end
end
10 changes: 4 additions & 6 deletions aplus.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
require 'formula'

class Aplus < Formula
homepage 'http://www.aplusdev.org/'
url 'http://mirrors.kernel.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz'
mirror 'http://ftp.us.debian.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz'
sha1 'e757cc7654cf35dba15a6a5d6cac5320146558fc'
homepage "http://www.aplusdev.org/"
url "https://mirrors.kernel.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz"
mirror "http://ftp.us.debian.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz"
sha256 "74c8bc1ac45941ba2f350d22b5beb1891e6e23996c609114b598ea84c9b2041f"

depends_on :x11

Expand Down
10 changes: 5 additions & 5 deletions attica.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require 'formula'
require "formula"

class Attica < Formula
homepage 'http://www.kde.org/'
url 'ftp://ftp.kde.org/pub/kde/stable/attica/attica-0.2.0.tar.bz2'
sha1 '724c6e9aab662280ec5b6570b23cf1cfc6c28cc7'
homepage "http://www.kde.org/"
url "ftp://ftp.kde.org/pub/kde/stable/attica/attica-0.2.0.tar.bz2"
sha1 "724c6e9aab662280ec5b6570b23cf1cfc6c28cc7"

depends_on 'cmake' => :build
depends_on "cmake" => :build

def install
system "cmake #{std_cmake_parameters} ."
Expand Down
4 changes: 1 addition & 3 deletions authexec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require "formula"

class Authexec < Formula
homepage "https://github.com/tcurdt/authexec"
url "https://github.com/tcurdt/authexec/archive/1.0.tar.gz"
sha1 "73d8fb4202ae99057691788442bb192972ef304c"
sha256 "96e2e3479a22b367a402b38b66f7b67a8ce31dcf2aa2ee869f1d66b978831730"

head "https://github.com/tcurdt/authexec.git"

Expand Down
8 changes: 3 additions & 5 deletions aws-iam-tools.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require 'formula'

class AwsIamTools < AmazonWebServicesFormula
homepage 'http://aws.amazon.com/developertools/4143'
url 'http://awsiammedia.s3.amazonaws.com/public/tools/cli/latest/IAMCli.zip'
sha1 'a2bd3048327d1ee34e20abbc8e2cc6c68ebdee5f'
homepage "http://aws.amazon.com/developertools/4143"
url "http://awsiammedia.s3.amazonaws.com/public/tools/cli/latest/IAMCli.zip"
sha256 "eec2795e20c1ec4374ab9c395b63db2b85ba2a74b6468fa3424276152695f68d"
version "1.5.0"

def install
Expand Down
8 changes: 3 additions & 5 deletions bcwipe.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require 'formula'

class Bcwipe < Formula
homepage 'http://www.jetico.com/linux/bcwipe-help/'
url 'http://www.jetico.com/linux/BCWipe-1.9-9.tar.gz'
sha1 'be4d945a5d24076fb6b0356389323a0686e1e4d7'
homepage "http://www.jetico.com/linux/bcwipe-help/"
url "http://www.jetico.com/linux/BCWipe-1.9-9.tar.gz"
sha256 "831f69ae920b27629738ad25228e0c507fa934ce3f75ef10e829b1061299653f"

def install
system "./configure", "--prefix=#{prefix}"
Expand Down
10 changes: 4 additions & 6 deletions blackbox.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
require 'formula'

class Blackbox < Formula
homepage 'http://www.cs.rochester.edu/u/kautz/satplan/blackbox/'
url 'http://www.cs.rochester.edu/u/kautz/satplan/blackbox/Blackbox44.tgz'
sha1 '6e61cf9bbb1f28f2dd9f77f9be59fb6fd4fae224'
homepage "http://www.cs.rochester.edu/u/kautz/satplan/blackbox/"
url "http://www.cs.rochester.edu/u/kautz/satplan/blackbox/Blackbox44.tgz"
sha256 "bf63cb7dffa8be6871bc2d059cd636f9ecb40cfacf510ec66880a6af43625ff1"

def install
system "make"
bin.install 'blackbox'
bin.install "blackbox"
end
end
12 changes: 5 additions & 7 deletions catdoc.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
require 'formula'

class Catdoc < Formula
homepage 'http://wagner.pp.ru/~vitus/software/catdoc/'
url 'http://ftp.wagner.pp.ru/pub/catdoc/catdoc-0.94.2.tar.gz'
sha1 '50ce9d7cb24ad6b10a856c9c24183e2b0a11ca04'
homepage "http://wagner.pp.ru/~vitus/software/catdoc/"
url "http://ftp.wagner.pp.ru/pub/catdoc/catdoc-0.94.2.tar.gz"
sha256 "03c98b103664e5d1b63de110854e93c2453bc10be5634f86c280303eb843d362"

fails_with :clang do
cause "The source uses undocumented behavior (decrementing null)."
end

def install
# catdoc configure says it respects --mandir=, but does not.
ENV['man1dir'] = man1
ENV["man1dir"] = man1
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
# The INSTALL file confuses make on case insensitive filesystems.
system "mv INSTALL INSTALL.txt"
system "make"
# There is a race condition in the charsets/Makefile install target. The following line solves it.
system "make -C charsets install-dirs"
system "make install"
system "make", "install"
end
end
8 changes: 4 additions & 4 deletions cdf.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require 'formula'
require "formula"

class Cdf < Formula
homepage 'http://bmp-plugins.berlios.de/misc/cdf/cdf.html'
url 'http://download.berlios.de/bmp-plugins/cdf-0.2.tar.gz'
sha1 '5f5d0c1f1003d9ad3c3cbbda1d8159e9fe10768a'
homepage "http://bmp-plugins.berlios.de/misc/cdf/cdf.html"
url "http://download.berlios.de/bmp-plugins/cdf-0.2.tar.gz"
sha1 "5f5d0c1f1003d9ad3c3cbbda1d8159e9fe10768a"

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
Expand Down
4 changes: 2 additions & 2 deletions celt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make check"
system "make install"
system "make", "check"
system "make", "install"
end
end
26 changes: 12 additions & 14 deletions clam.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
require 'formula'

class Clam < Formula
homepage 'http://clam-project.org'
url 'http://clam-project.org/download/src/CLAM-1.4.0.tar.gz'
sha1 '32acbdc64e641b4a666e8e58e008430a6a906cd0'
homepage "http://clam-project.org"
url "http://clam-project.org/download/src/CLAM-1.4.0.tar.gz"
sha256 "36fb156b01bb88276962763fef18cd1533cc10d64f8d7824b4623bf5d761bd4d"

depends_on 'scons' => :build
depends_on 'xerces-c'
depends_on 'fftw'
depends_on 'libsndfile'
depends_on 'libvorbis'
depends_on 'mad'
depends_on 'jack'
depends_on 'portaudio'
depends_on 'id3lib'
depends_on "scons" => :build
depends_on "xerces-c"
depends_on "fftw"
depends_on "libsndfile"
depends_on "libvorbis"
depends_on "mad"
depends_on "jack"
depends_on "portaudio"
depends_on "id3lib"

def install
scons "configure", "prefix=#{prefix}", "with_ladspa=no", "xmlbackend=none"
Expand Down
24 changes: 11 additions & 13 deletions comparepdf.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
require 'formula'

class Comparepdf < Formula
homepage 'http://www.qtrac.eu/comparepdf.html'
url 'http://www.qtrac.eu/comparepdf-1.0.1.tar.gz'
sha1 '01774dac78dca9b712d55bfdbaf58c4b0bd31295'
homepage "http://www.qtrac.eu/comparepdf.html"
url "http://www.qtrac.eu/comparepdf-1.0.1.tar.gz"
sha256 "cfb092fc40a8ed1317af36a574a470280eaeffcb9056095a65c974abd060c82c"

depends_on 'qt'
depends_on 'poppler' => 'with-qt4'
depends_on "qt"
depends_on "poppler" => "with-qt4"

def install
# Generate makefile and disable .app creation
if MacOS.version >= :mavericks && ENV.compiler == :clang
spec = 'unsupported/macx-clang-libc++'
spec = "unsupported/macx-clang-libc++"
else
spec = 'macx-g++'
spec = "macx-g++"
end
system 'qmake', '-spec', spec, 'CONFIG-=app_bundle'
system 'make'
system "qmake", "-spec", spec, "CONFIG-=app_bundle"
system "make"

bin.install 'comparepdf'
man1.install 'comparepdf.1'
bin.install "comparepdf"
man1.install "comparepdf.1"
end
end
10 changes: 5 additions & 5 deletions connect.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'formula'
require "formula"

class Connect < Formula
homepage 'http://bent.latency.net/bent/git/goto-san-connect-1.85/src/connect.html'
url 'http://www.meadowy.org/~gotoh/ssh/connect.c'
version '1.100'
sha1 '39614dfa842514f46bdb6ff66a10d2f5b084234f'
homepage "http://bent.latency.net/bent/git/goto-san-connect-1.85/src/connect.html"
url "http://www.meadowy.org/~gotoh/ssh/connect.c"
version "1.100"
sha1 "39614dfa842514f46bdb6ff66a10d2f5b084234f"

def install
system ENV.cc, "connect.c", "-o", "connect", "-lresolv"
Expand Down
10 changes: 5 additions & 5 deletions dbslayer.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'formula'
require "formula"

class Dbslayer < Formula
homepage 'http://code.nytimes.com/projects/dbslayer/wiki'
url 'http://code.nytimes.com/downloads/dbslayer-beta-12.tgz'
version '0.12.b'
sha1 'fbf1c5563a6ee45783e31f6b49612e64fc141186'
homepage "http://code.nytimes.com/projects/dbslayer/wiki"
url "http://code.nytimes.com/downloads/dbslayer-beta-12.tgz"
version "0.12.b"
sha1 "fbf1c5563a6ee45783e31f6b49612e64fc141186"

depends_on :mysql

Expand Down
34 changes: 16 additions & 18 deletions denyhosts.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
require 'formula'

class Denyhosts < Formula
homepage 'http://denyhosts.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz'
sha1 '02143843cb7c37c986c222b7acc11f7b75eb7373'
homepage "http://denyhosts.sourceforge.net/"
url "https://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz"
sha256 "5190ead13a7238e3ccf328cb3b71b16716e1c73939909a4f3fa6904ba58ddf7d"

depends_on :python

Expand All @@ -13,21 +11,21 @@ class Denyhosts < Formula
def install
# If the `libpath` is relative, instead of absolute, we can influence the
# 'data path' via command line arguments to `setup.py`.
inreplace 'setup.py' do |s|
s.change_make_var! 'libpath', "''"
s.change_make_var! 'scriptspath', "''"
s.change_make_var! 'pluginspath', "''"
inreplace "setup.py" do |s|
s.change_make_var! "libpath", "''"
s.change_make_var! "scriptspath", "''"
s.change_make_var! "pluginspath", "''"
end

# Make it so that all DenyHosts tools have a default path that points at
# our config file.
inreplace 'DenyHosts/constants.py' do |s|
s.change_make_var! 'CONFIG_FILE', "'#{etc}/denyhosts.cfg'"
inreplace "DenyHosts/constants.py" do |s|
s.change_make_var! "CONFIG_FILE", "'#{etc}/denyhosts.cfg'"
end

unless MacOS.mountain_lion_or_newer?
inreplace 'denyhosts.cfg' do |s|
s.gsub! %r{^SECURE_LOG\s*=\s*/private/var/log/system\.log}, 'SECURE_LOG = /private/var/log/secure.log'
inreplace "denyhosts.cfg" do |s|
s.gsub! %r{^SECURE_LOG\s*=\s*/private/var/log/system\.log}, "SECURE_LOG = /private/var/log/secure.log"
end
end

Expand All @@ -38,14 +36,14 @@ def install
"--install-scripts=#{bin}",
"--install-data=#{libexec}"
end
libexec.install 'daemon-control'
(libexec+'daemon-control').chmod 0755
libexec.install "daemon-control"
(libexec+"daemon-control").chmod 0755

# Don't overwrite the config file; the user may have tweaked it.
etc.install 'denyhosts.cfg'
etc.install "denyhosts.cfg"

sbin.install_symlink libexec+'daemon-control'
sbin.install_symlink libexec+'denyhosts.py' => 'denyhosts'
sbin.install_symlink libexec+"daemon-control"
sbin.install_symlink libexec+"denyhosts.py" => "denyhosts"
end

plist_options :startup => true
Expand Down
Loading

0 comments on commit 21aac30

Please sign in to comment.