require "formula" class IrcdHybrid < Formula homepage "http://www.ircd-hybrid.org/" url "https://downloads.sourceforge.net/project/ircd-hybrid/ircd-hybrid/ircd-hybrid-8.1.18/ircd-hybrid-8.1.18.tgz" sha1 "2dbb4a3dfd4b51d9f0cdcb587720c711e2147ff6" revision 1 bottle do revision 1 sha1 "ff1e017e539d492debb8f2dbe6bfdeb6c6ff52b6" => :mavericks sha1 "4c8d3b8c892ef4a7ed972042bea92cdca1ce96fd" => :mountain_lion sha1 "76aba0f4a90a81fa68b2d0f13f7263cae32e57f1" => :lion end # ircd-hybrid needs the .la files skip_clean :la depends_on "openssl" def install ENV.j1 # 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 test do system "#{bin}/ircd", "-version" 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_sbin}/ircd RunAtLoad WorkingDirectory #{HOMEBREW_PREFIX} StandardErrorPath #{var}/ircd.log EOS end end