Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

asterisk 13.6.0 (new formula) #46126

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Library/Formula/asterisk.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class Asterisk < Formula
desc "Toolkit for building communications applications"
homepage "http://www.asterisk.org/"
url "http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13.6.0.tar.gz"
sha256 "8a01b53c946d092ac561c11b404f68cd328306d0e3b434a7485a11d4b175005a"

option "with-sample-config", "Install the sample config files. NOTE. Without this, you won't have any config file."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any situation where you wouldn't want a sample config?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not yet so familiar with asterisk as to knowledgable answer that question.

As a base for this formula I used the last one that was removed in 29680ba, that is wehre with-sample-config option stems from.

I would be ok with removing it.


depends_on "openssl"
depends_on "jansson"
depends_on "spandsp" => :optional

def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--localstatedir=#{var}",
"--sysconfdir=#{etc}"
system "make", "ASTCFLAGS=-DRONLY=NETSNMP_OLDAPI_RONLY"
system "make", "install"
system "make", "samples" if build.with? "sample-config"
end

test do
assert_match /#{version}/, shell_output("#{sbin}/asterisk -V")
end
end