diff options
| author | Peter Powell | 2014-12-29 17:05:17 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-29 18:53:08 +0000 |
| commit | 20c08894bdddd2d62fea124ec5658313fccbd466 (patch) | |
| tree | 71c545a457ea81620ee9bd02fe047a74ef770030 | |
| parent | 773a10bab70c1a9149930cb5186f9f2c13784f65 (diff) | |
| download | homebrew-20c08894bdddd2d62fea124ec5658313fccbd466.tar.bz2 | |
InspIRCd: fix various audit warnings.
Closes #35344.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/inspircd.rb | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/Library/Formula/inspircd.rb b/Library/Formula/inspircd.rb index af76a45ad..61d80f79a 100644 --- a/Library/Formula/inspircd.rb +++ b/Library/Formula/inspircd.rb @@ -1,11 +1,9 @@ -require 'formula' - class Inspircd < Formula - homepage 'http://www.inspircd.org' - url 'https://github.com/inspircd/inspircd/archive/v2.0.18.tar.gz' - sha1 '40039d9be51ad28493be16b27c9f20bc7fe617a4' + homepage "http://www.inspircd.org" + url "https://github.com/inspircd/inspircd/archive/v2.0.18.tar.gz" + sha1 "40039d9be51ad28493be16b27c9f20bc7fe617a4" - head 'https://github.com/inspircd/inspircd.git' + head "https://github.com/inspircd/inspircd.git" bottle do sha1 "b1def0c5b281422dbe37e89b2104321b33f685d0" => :yosemite @@ -13,38 +11,42 @@ class Inspircd < Formula sha1 "5cce454e59cf0a0e67e5d4c2bb1d5d94fe8e831d" => :mountain_lion end - skip_clean 'data' - skip_clean 'logs' + skip_clean "data" + skip_clean "logs" - depends_on 'pkg-config' => :build - depends_on 'geoip' => :optional - depends_on 'gnutls' => :optional + depends_on "pkg-config" => :build + depends_on "geoip" => :optional + depends_on "gnutls" => :optional depends_on :mysql => :optional - depends_on 'openssl' => :optional - depends_on 'pcre' => :optional - depends_on 'postgresql' => :optional - depends_on 'sqlite' => :optional - depends_on 'tre' => :optional + depends_on "openssl" => :optional + depends_on "pcre" => :optional + depends_on "postgresql" => :optional + depends_on "sqlite" => :optional + depends_on "tre" => :optional - option 'without-ldap', 'Build without ldap support' + option "without-ldap", "Build without ldap support" def install modules = [] - modules << 'm_geoip.cpp' if build.with? 'geoip' - modules << 'm_ssl_gnutls.cpp' if build.with? 'gnutls' - modules << 'm_mysql.cpp' if build.with? 'mysql' - modules << 'm_ssl_openssl.cpp' if build.with? 'openssl' - modules << 'm_ldapauth.cpp' if build.with? 'ldap' - modules << 'm_ldapoper.cpp' if build.with? 'ldap' - modules << 'm_regex_pcre.cpp' if build.with? 'pcre' - modules << 'm_pgsql.cpp' if build.with? 'postgresql' - modules << 'm_sqlite3.cpp' if build.with? 'sqlite' - modules << 'm_regex_tre.cpp' if build.with? 'tre' - - system './configure', "--enable-extras=#{modules.join(',')}" unless modules.empty? - system './configure', "--prefix=#{prefix}", "--with-cc=#{ENV.cc}" - system 'make install' - - inreplace "#{prefix}/org.inspircd.plist", 'ircdaemon', ENV['USER'] + modules << "m_geoip.cpp" if build.with? "geoip" + modules << "m_ssl_gnutls.cpp" if build.with? "gnutls" + modules << "m_mysql.cpp" if build.with? "mysql" + modules << "m_ssl_openssl.cpp" if build.with? "openssl" + modules << "m_ldapauth.cpp" if build.with? "ldap" + modules << "m_ldapoper.cpp" if build.with? "ldap" + modules << "m_regex_pcre.cpp" if build.with? "pcre" + modules << "m_pgsql.cpp" if build.with? "postgresql" + modules << "m_sqlite3.cpp" if build.with? "sqlite" + modules << "m_regex_tre.cpp" if build.with? "tre" + + system "./configure", "--enable-extras=#{modules.join(",")}" unless modules.empty? + system "./configure", "--prefix=#{prefix}", "--with-cc=#{ENV.cc}" + system "make", "install" + + inreplace "#{prefix}/org.inspircd.plist", "ircdaemon", ENV["USER"] + end + + test do + system "#{bin}/inspircd", "--version" end end |
