f8fc33eeed
It was looking for ircd.conf in the etc directory of the cellar Closes Homebrew/homebrew#19245. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
61 lines
1.7 KiB
Ruby
61 lines
1.7 KiB
Ruby
require 'formula'
|
|
|
|
class IrcdHybrid < Formula
|
|
homepage 'http://www.ircd-hybrid.org/'
|
|
url 'http://sourceforge.net/projects/ircd-hybrid/files/ircd-hybrid/ircd-hybrid-8.0.6/ircd-hybrid-8.0.6.tgz'
|
|
sha1 'd43cf4464c69f57f1d8273f70cf885c220385a4b'
|
|
|
|
# ircd-hybrid needs the .la files
|
|
skip_clean :la
|
|
|
|
# system openssl fails with undefined symbols: "_SSL_CTX_clear_options"
|
|
depends_on 'openssl' if MacOS.version < :lion
|
|
|
|
def install
|
|
ENV.j1 # build system trips over itself
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--localstatedir=#{var}",
|
|
"--sysconfdir=#{etc}",
|
|
# there's no config setting for this so set it to something generous
|
|
"--with-nicklen=30"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{sbin}/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
|
|
<?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>
|
|
<string>#{opt_prefix}/sbin/ircd</string>
|
|
</array>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>WorkingDirectory</key>
|
|
<string>#{HOMEBREW_PREFIX}</string>
|
|
<key>StandardErrorPath</key>
|
|
<string>#{var}/ircd.log</string>
|
|
</dict>
|
|
</plist>
|
|
EOS
|
|
end
|
|
end
|