diff options
author | adrianp <adrianp@pkgsrc.org> | 2007-07-24 20:13:19 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2007-07-24 20:13:19 +0000 |
commit | 9a07bde08b1fd4dad8ba32056e5e7dcfa3ff8a05 (patch) | |
tree | 6bc2f2e28bbfda65995ad4e46a381e99da643475 /chat/inspircd/options.mk | |
parent | 55bf3ab6d33b3a6b38ea4947a9f3c68482166cbf (diff) | |
download | pkgsrc-9a07bde08b1fd4dad8ba32056e5e7dcfa3ff8a05.tar.gz |
InspIRCd is a modular C++ IRC Daemon for Linux, BSD and Windows systems
created to provide a stable, modern, lightweight ircd (irc server) from
scratch and provide a vast number of features in a modularised form using
an advanced module API. By keeping the functionality of the main core to a
minimum we hope to increase the stability and speed of our project and make
it customisable to the needs of many users.
Diffstat (limited to 'chat/inspircd/options.mk')
-rw-r--r-- | chat/inspircd/options.mk | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/chat/inspircd/options.mk b/chat/inspircd/options.mk new file mode 100644 index 00000000000..82e47dae286 --- /dev/null +++ b/chat/inspircd/options.mk @@ -0,0 +1,151 @@ +# $NetBSD: options.mk,v 1.1.1.1 2007/07/24 20:13:19 adrianp Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.inspircd + +PKG_SUPPORTED_OPTIONS= inet6 ssl gnutls kqueue epoll inspircd-remoteinet6 +PKG_SUPPORTED_OPTIONS+= pcre inspircd-ziplinks mysql pgsql inspircd-sqlauth +PKG_SUPPORTED_OPTIONS+= inspircd-sqllog inspircd-sqloper inspircd-sqlutils +PKG_SUGGESTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +### +### Dependency notes: +### +### sql = mysql, pgsql, sqlite3 +### sqlutils = sqlutils +### +### sqloper needs sql sqlutils +### sqllog needs sql +### sqlauth needs sql sqlutils +### + +### +### Enable kqueue support +### +.if !empty(PKG_OPTIONS:Mkqueue) +CONFIGURE_ARGS+= --enable-kqueue +.else +CONFIGURE_ARGS+= --disable-kqueue +.endif + +### +### Enable epoll support +### +.if !empty(PKG_OPTIONS:Mepoll) +CONFIGURE_ARGS+= --enable-epoll +.else +CONFIGURE_ARGS+= --disable-epoll +.endif + +### +### Enable IPv6 support +### +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-ipv6 +.endif + +### +### Enable remote IPv6 support +### +.if !empty(PKG_OPTIONS:Mremoteinet6) +PKG_SUGGESTED_OPTIONS+= inet6 +CONFIGURE_ARGS+= --enable-remote-ipv6 +.else +CONFIGURE_ARGS+= --disable-remote-ipv6 +.endif + +### +### Enable OpenSSL support +### +.if !empty(PKG_OPTIONS:Mssl) +. include "../../security/openssl/buildlink3.mk" +CONFIGURE_ARGS+= --enable-openssl +.endif + +### +### Enable GNU TLS support +### Apparently this gives better performance when compared to OpenSSL +### +.if !empty(PKG_OPTIONS:Mgnutls) +. include "../../security/gnutls/buildlink3.mk" +CONFIGURE_ARGS+= --enable-gnutls +.endif + +### +### Compile in support for ziplinks. This compresses data sent from +### server <-> server with zlib. +### +.if !empty(PKG_OPTIONS:Minspircd-ziplinks) +. include "../../devel/zlib/buildlink3.mk" +MODULES+= m_ziplink.cpp +.endif + +### +### Perl regex support +### +.if !empty(PKG_OPTIONS:Mpcre) +. include "../../devel/pcre/buildlink3.mk" +MODULES+= m_filter_pcre.cpp +.endif + +### +### Use SQL for storing user details +### +.if !empty(PKG_OPTIONS:Minspircd-sqlauth) +INSPIRCD_STORAGE_DRIVER?= mysql +MODULES+= m_sqlauth.cpp +PKG_SUGGESTED_OPTIONS+= inspircd-sqlutils +.endif + +### +### Use SQL for logging +### +.if !empty(PKG_OPTIONS:Minspircd-sqllog) +INSPIRCD_STORAGE_DRIVER?= mysql +MODULES+= m_sqllog.cpp +.endif + +### +### Use SQL for storing oper details +### +.if !empty(PKG_OPTIONS:Minspircd-sqloper) +INSPIRCD_STORAGE_DRIVER?= mysql +MODULES+= m_sqloper.cpp +PKG_SUGGESTED_OPTIONS+= inspircd-sqlutils +.endif + +### +### SQL utilities +### +.if !empty(PKG_OPTIONS:Minspircd-sqlutils) +INSPIRCD_STORAGE_DRIVER?= mysql +MODULES+= m_sqlutils.cpp +HEADERS+= m_sqlutils.h +.endif + +### +### Strorage driver magic +### +### This will only be activated if INSPIRCD_STORAGE_DRIVER is set either +### explictly by the user or by selecting one of the options that are +### dependent on an SQL storage driver. +### +.if defined(INSPIRCD_STORAGE_DRIVER) +BUILD_DEFS+= INSPIRCD_STORAGE_DRIVER +. if !empty(INSPIRCD_STORAGE_DRIVER:Mmysql) +. include "../../mk/mysql.buildlink3.mk" +MODULES+= m_mysql.cpp +HEADERS+= m_sqlv2.h +. elif !empty(DSPAM_STORAGE_DRIVER:Mpgsql) +. include "../../mk/pgsql.buildlink3.mk" +MODULES+= m_pgsql.cpp +HEADERS+= m_sqlv2.h +. elif !empty(DSPAM_STORAGE_DRIVER:Msqlite3) +. include "../../databases/sqlite3/buildlink3.mk" +MODULES+= m_sqlite3.cpp +HEADERS+= m_sqlv2.h +. else +PKG_FAIL_REASON+= "${PKGBASE}: unknown storage driver \\'${INSPIRCD_STORAGE_DRIVER}\\'" +. endif +.endif |