2012-09-18 20:25:19 +00:00
|
|
|
class IrcdHybrid < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "High-performance secure IRC server"
|
2014-06-17 06:49:16 +00:00
|
|
|
homepage "http://www.ircd-hybrid.org/"
|
2015-08-09 03:46:11 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/ircd-hybrid/ircd-hybrid/ircd-hybrid-8.2.8/ircd-hybrid-8.2.8.tgz"
|
|
|
|
sha256 "651031ca86c829535ef91ff8a344c36cd5d79d2c6fb4a1c10bbd12a3b8fb2f9f"
|
2012-09-18 20:25:19 +00:00
|
|
|
|
2014-08-22 18:04:05 +00:00
|
|
|
bottle do
|
2015-08-10 04:23:51 +00:00
|
|
|
sha256 "0967877f3d687ece2b7dd5bf132ceadfbed5ecdf003102c17cbb8d061c8ba5c6" => :yosemite
|
|
|
|
sha256 "e723c57f791e6ff5dc0dd6fe7a54f782da0176ce4c750cc7ad8f6d364afaa876" => :mavericks
|
|
|
|
sha256 "e7753f62a75b4fa22603897487352132833b2602d790b1af1e0ab94415e751d2" => :mountain_lion
|
2014-08-22 18:04:05 +00:00
|
|
|
end
|
|
|
|
|
2012-09-18 20:25:19 +00:00
|
|
|
# ircd-hybrid needs the .la files
|
2012-10-21 20:06:40 +00:00
|
|
|
skip_clean :la
|
2012-09-18 20:25:19 +00:00
|
|
|
|
2014-06-17 06:49:16 +00:00
|
|
|
depends_on "openssl"
|
2013-02-01 15:57:45 +00:00
|
|
|
|
2015-08-09 03:46:11 +00:00
|
|
|
conflicts_with "ircd-irc2", :because => "both install an `ircd` binary"
|
|
|
|
|
2012-09-18 20:25:19 +00:00
|
|
|
def install
|
2013-02-01 15:57:45 +00:00
|
|
|
ENV.j1 # build system trips over itself
|
|
|
|
|
2012-09-18 20:25:19 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-09-19 00:12:01 +00:00
|
|
|
"--localstatedir=#{var}",
|
2013-04-16 17:29:52 +00:00
|
|
|
"--sysconfdir=#{etc}",
|
2014-05-23 20:40:19 +00:00
|
|
|
"--enable-openssl=#{Formula["openssl"].opt_prefix}"
|
2014-08-24 16:08:03 +00:00
|
|
|
system "make", "install"
|
2014-02-07 15:10:48 +00:00
|
|
|
etc.install "doc/reference.conf" => "ircd.conf"
|
2012-09-18 20:25:19 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2014-04-18 22:22:04 +00:00
|
|
|
system "#{bin}/ircd", "-version"
|
2012-09-18 20:25:19 +00:00
|
|
|
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
|
|
|
|
|
2012-11-25 15:06:41 +00:00
|
|
|
plist_options :manual => "ircd"
|
|
|
|
|
|
|
|
def plist; <<-EOS.undent
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
|
|
|
<key>KeepAlive</key>
|
|
|
|
<false/>
|
|
|
|
<key>Label</key>
|
|
|
|
<string>#{plist_name}</string>
|
|
|
|
<key>ProgramArguments</key>
|
|
|
|
<array>
|
2014-03-06 05:28:31 +00:00
|
|
|
<string>#{opt_sbin}/ircd</string>
|
2012-11-25 15:06:41 +00:00
|
|
|
</array>
|
|
|
|
<key>RunAtLoad</key>
|
|
|
|
<true/>
|
|
|
|
<key>WorkingDirectory</key>
|
|
|
|
<string>#{HOMEBREW_PREFIX}</string>
|
|
|
|
<key>StandardErrorPath</key>
|
|
|
|
<string>#{var}/ircd.log</string>
|
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
EOS
|
2012-09-18 20:25:19 +00:00
|
|
|
end
|
|
|
|
end
|