class IrcdHybrid < Formula desc "High-performance secure IRC server" homepage "http://www.ircd-hybrid.org/" url "https://downloads.sourceforge.net/project/ircd-hybrid/ircd-hybrid/ircd-hybrid-8.2.21/ircd-hybrid-8.2.21.tgz" sha256 "c37f67ff087bb471e6a4fbdd172e4b92d4c9924ba3ddfe481787855febcb8fa5" bottle do sha256 "6c4b9bd6f5a995452b965710994b622ff713a665d256c433a83969bbebd5602c" => :sierra sha256 "be751fd518ea469356f7976d11a2fc57974f4e2ad6c43d48b4a3422a01cf62ad" => :el_capitan sha256 "4ed29598b245938e36eae68005ef3108c2f3415ed78002316dc0d1750394cc36" => :yosemite end # ircd-hybrid needs the .la files skip_clean :la depends_on "openssl" conflicts_with "ircd-irc2", :because => "both install an `ircd` binary" def install ENV.deparallelize # build system trips over itself system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--localstatedir=#{var}", "--sysconfdir=#{etc}", "--enable-openssl=#{Formula["openssl"].opt_prefix}" system "make", "install" etc.install "doc/reference.conf" => "ircd.conf" end def caveats; <<-EOS.undent You'll more than likely need to edit the default settings in the config file: #{etc}/ircd.conf EOS end plist_options :manual => "ircd" def plist; <<-EOS.undent KeepAlive Label #{plist_name} ProgramArguments #{opt_bin}/ircd RunAtLoad WorkingDirectory #{HOMEBREW_PREFIX} StandardErrorPath #{var}/ircd.log EOS end test do system "#{bin}/ircd", "-version" end end