54 lines
1.7 KiB
Ruby
54 lines
1.7 KiB
Ruby
class Ngircd < Formula
|
|
homepage "http://ngircd.barton.de"
|
|
url "http://ngircd.barton.de/pub/ngircd/ngircd-22.tar.gz"
|
|
mirror "http://ngircd.mirror.3rz.org/pub/ngircd/ngircd-22.tar.gz"
|
|
sha256 "a08e18de52bcf09d35ce75a802204ecf000f32663c1c57ad930ebcd139bf4cc8"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha1 "cb000923d5f10a21957cb05751d07ec82014c515" => :yosemite
|
|
sha1 "c2488e5b46e8ae0a17eeb80366e54f7e3e4fdeec" => :mavericks
|
|
sha1 "8dc756fb808f99ab01c5806926761609c0eaaad8" => :mountain_lion
|
|
end
|
|
|
|
option "with-iconv", "Enable character conversion using libiconv."
|
|
option "with-pam", "Enable user authentication using PAM."
|
|
|
|
# Older Formula used the next option by default, so keep it unless
|
|
# deactivated by the user:
|
|
option "without-ident", "Disable 'IDENT' ('AUTH') protocol support."
|
|
|
|
depends_on "libident" if build.with? "ident"
|
|
depends_on "openssl"
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--sysconfdir=#{HOMEBREW_PREFIX}/etc
|
|
--enable-ipv6
|
|
--with-openssl
|
|
]
|
|
|
|
args << "--with-iconv" if build.with? "iconv"
|
|
args << "--with-ident" if build.with? "ident"
|
|
args << "--with-pam" if build.with? "pam"
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
|
|
prefix.install "contrib/MacOSX/de.barton.ngircd.plist.tmpl" => "de.barton.ngircd.plist"
|
|
(prefix+"de.barton.ngircd.plist").chmod 0644
|
|
|
|
inreplace prefix+"de.barton.ngircd.plist" do |s|
|
|
s.gsub! ":SBINDIR:", sbin
|
|
s.gsub! "/Library/Logs/ngIRCd.log", var/"Logs/ngIRCd.log"
|
|
end
|
|
end
|
|
|
|
test do
|
|
# Exits non-zero, so test version and match Author's name supplied.
|
|
assert_match /Alexander/, pipe_output("#{sbin}/ngircd -V 2>&1")
|
|
end
|
|
end
|