collectd: added head
Added a HEAD to the Collectd formula, and added a mirror, and updated to SHA256 since Collectd only display SHA256 on their website download page these days. Closes Homebrew/homebrew#33200. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
a91772c917
commit
e0446099ba
1 changed files with 14 additions and 4 deletions
|
@ -1,14 +1,23 @@
|
|||
require "formula"
|
||||
|
||||
class Collectd < Formula
|
||||
homepage "http://collectd.org/"
|
||||
url "http://collectd.org/files/collectd-5.4.1.tar.bz2"
|
||||
sha1 "cea47e3936ed081bd71efacf7ba825fc837dc347"
|
||||
homepage "https://collectd.org/"
|
||||
url "https://collectd.org/files/collectd-5.4.1.tar.gz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/c/collectd/collectd_5.4.1.orig.tar.gz"
|
||||
sha256 "853680936893df00bfc2be58f61ab9181fecb1cf45fc5cddcb7d25da98855f65"
|
||||
|
||||
# Will fail against Java 1.7
|
||||
option "java", "Enable Java 1.6 support"
|
||||
option "debug", "Enable debug support"
|
||||
|
||||
head do
|
||||
url "git://git.verplant.org/collectd.git"
|
||||
|
||||
depends_on "libtool" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "autoconf" => :build
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
|
||||
fails_with :clang do
|
||||
|
@ -33,8 +42,9 @@ class Collectd < Formula
|
|||
args << "--disable-java" unless build.include? "java"
|
||||
args << "--enable-debug" if build.include? "debug"
|
||||
|
||||
system "./build.sh" if build.head?
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
|
|
Loading…
Reference in a new issue