aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlexander Barton2014-02-08 18:40:59 +0100
committerAdam Vandenberg2014-02-20 21:44:44 -0800
commitcce2b12504dd75a5e3d2fab05cd9498c68f7ae9f (patch)
tree57eb24070faf6afc38023f7994312f27ca10d607 /Library/Formula
parent37b3bbbc11bbd2c2d0449f6caad3911eb788174c (diff)
downloadhomebrew-cce2b12504dd75a5e3d2fab05cd9498c68f7ae9f.tar.bz2
ngIRCd: add some installation options to the formula
Closes #26522. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ngircd.rb27
1 files changed, 21 insertions, 6 deletions
diff --git a/Library/Formula/ngircd.rb b/Library/Formula/ngircd.rb
index 0a872170c..080cff555 100644
--- a/Library/Formula/ngircd.rb
+++ b/Library/Formula/ngircd.rb
@@ -6,14 +6,29 @@ class Ngircd < Formula
mirror 'http://ngircd.barton.de/pub/ngircd/ngircd-21.tar.gz'
sha256 '0edbd41304186e43f9d907a7017b40520cc90c2ce29b1339bdcd7622fffe19a0'
- depends_on 'libident'
+ 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'
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--with-ident",
- "--with-openssl",
- "--enable-ipv6"
+ args =%W[
+ --disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --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"
end
end