diff options
| author | Peter Powell | 2013-02-16 13:56:45 +0000 |
|---|---|---|
| committer | Jack Nagel | 2013-03-03 22:43:47 -0600 |
| commit | 59cd0effae678c3402c999e3d1a6a62cefa36058 (patch) | |
| tree | f2592a214bcc9c3f39e3cdcdb2532293bb1758a6 /Library/Formula/inspircd.rb | |
| parent | 57ae9c7ace04fb1b54bd1d863fd3f701afc62f46 (diff) | |
| download | homebrew-59cd0effae678c3402c999e3d1a6a62cefa36058.tar.bz2 | |
InspIRCd: add optional deps, skip_clean
- Add options for installing all non-standard modules
- Prefer system-provided modules (e.g. OpenSSL over GnuTLS)
- Don't delete the 'data' and 'logs' directories when cleaning
Closes #17996.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/inspircd.rb')
| -rw-r--r-- | Library/Formula/inspircd.rb | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Library/Formula/inspircd.rb b/Library/Formula/inspircd.rb index 9c3bdc12e..fd2d98f81 100644 --- a/Library/Formula/inspircd.rb +++ b/Library/Formula/inspircd.rb @@ -7,18 +7,33 @@ class Inspircd < Formula head 'https://github.com/inspircd/inspircd.git', :branch => 'insp20' + skip_clean 'data' + skip_clean 'logs' + depends_on 'pkg-config' => :build - depends_on 'gnutls' => :recommended - depends_on 'libgcrypt' unless build.without? 'gnutls' - depends_on 'openssl' => :optional + depends_on 'geoip' => :optional + depends_on 'gnutls' => :optional + depends_on 'libgcrypt' if build.with? 'gnutls' + depends_on :mysql => :optional depends_on 'pcre' => :optional + depends_on 'sqlite' => :optional depends_on 'tre' => :optional + option 'without-ldap', 'Build without ldap support' + option 'without-openssl', 'Build without openssl support' + option 'without-postgres', 'Build without postgres support' + def install modules = [] - modules << 'm_ssl_gnutls.cpp' unless build.without? 'gnutls' - modules << 'm_ssl_openssl.cpp' if build.with? 'openssl' + modules << 'm_geoip.cpp' if build.with? 'geoip' + modules << 'm_ssl_gnutls.cpp' if build.with? 'gnutls' + modules << 'm_mysql.cpp' if build.with? 'mysql' + modules << 'm_ssl_openssl.cpp' unless build.without? 'openssl' + modules << 'm_ldapauth.cpp' unless build.without? 'ldap' + modules << 'm_ldapoper.cpp' unless build.without? 'ldap' modules << 'm_regex_pcre.cpp' if build.with? 'pcre' + modules << 'm_ssl_pgsql.cpp' unless build.without? 'postgres' + modules << 'm_sqlite3.cpp' if build.with? 'sqlite' modules << 'm_regex_tre.cpp' if build.with? 'tre' system './configure', "--enable-extras=#{modules.join(',')}" unless modules.empty? |
