diff options
author | sylvio <sylvio@FreeBSD.org> | 2012-06-07 09:12:50 +0800 |
---|---|---|
committer | sylvio <sylvio@FreeBSD.org> | 2012-06-07 09:12:50 +0800 |
commit | f886a03f0b4cfad2d4b3ba0323fefd9ee1d3a938 (patch) | |
tree | 6303c44003c3e5c139f010cae16e670379d083b5 /irc | |
parent | b79da435db192419fcc814eee65c0b601778b39c (diff) | |
download | freebsd-ports-gnome-f886a03f0b4cfad2d4b3ba0323fefd9ee1d3a938.tar.gz freebsd-ports-gnome-f886a03f0b4cfad2d4b3ba0323fefd9ee1d3a938.tar.zst freebsd-ports-gnome-f886a03f0b4cfad2d4b3ba0323fefd9ee1d3a938.zip |
- Converted to optionsng
- Standardized on SQLITE and LDAP knob names
- Added proper PORTDOCS
PR: ports/168722
Submitted by: Mark Felder <feld@feld.me> (maintainer)
Diffstat (limited to 'irc')
-rw-r--r-- | irc/inspircd/Makefile | 37 | ||||
-rw-r--r-- | irc/inspircd/pkg-plist | 4 |
2 files changed, 23 insertions, 18 deletions
diff --git a/irc/inspircd/Makefile b/irc/inspircd/Makefile index 559bebdc0d29..43f856bbd800 100644 --- a/irc/inspircd/Makefile +++ b/irc/inspircd/Makefile @@ -7,6 +7,7 @@ PORTNAME= inspircd PORTVERSION= 2.0.5 +PORTREVISION= 1 CATEGORIES= irc MASTER_SITES= http://cloud.github.com/downloads/inspircd/inspircd/ DISTNAME= InspIRCd-${PORTVERSION} @@ -48,27 +49,31 @@ CONFIGURE_ARGS= --with-cc=${CXX} --config-dir=${ETCDIR} \ --enable-kqueue --enable-ipv6 --disable-interactive \ --uid=${INSPIRCD_UID} -OPTIONS= LDAPAUTH "Build m_ldapauth module" off \ - MYSQL "Build m_mysql module" off \ - PGSQL "Build m_pgsql module" off \ - SQLITE3 "Build m_sqlite3 module" off \ - GNUTLS "Build m_ssl_gnutls module" off \ - OPENSSL "Build m_ssl_openssl module" off +PORTDOCS= docs/* extras/* + +OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAP GNUTLS OPENSSL + +GNUTLS_DESC= Build m_ssl_gnutls module +LDAP_DESC= Build m_ldapauth module +MYSQL_DESC= Build m_mysql module +OPENSSL_DESC= Build m_ssl_openssl module +PGSQL_DESC= Build m_pgsql module +SQLITE_DESC= Build m_sqlite3 module .include <bsd.port.options.mk> post-extract: @(cd ${WRKDIR} && ${MV} ${PORTNAME} ${DISTNAME}) -.if defined(WITH_LDAPAUTH) && !defined(WITHOUT_LDAPAUTH) +.if ${PORT_OPTIONS:MLDAP} USE_OPENLDAP= yes EXTRAS:=${EXTRAS},m_ldapauth.cpp -PLIST_SUB+= LDAPAUTH="" +PLIST_SUB+= LDAP="" .else -PLIST_SUB+= LDAPAUTH="@comment " +PLIST_SUB+= LDAP="@comment " .endif -.if defined(WITH_MYSQL) && !defined(WITHOUT_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes EXTRAS:=${EXTRAS},m_mysql.cpp PLIST_SUB+= MYSQL="" @@ -76,7 +81,7 @@ PLIST_SUB+= MYSQL="" PLIST_SUB+= MYSQL="@comment " .endif -.if defined(WITH_PGSQL) && !defined(WITHOUT_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes EXTRAS:=${EXTRAS},m_pgsql.cpp PLIST_SUB+= PGSQL="" @@ -84,15 +89,15 @@ PLIST_SUB+= PGSQL="" PLIST_SUB+= PGSQL="@comment " .endif -.if defined(WITH_SQLITE3) && !defined(WITHOUT_SQLITE3) +.if ${PORT_OPTIONS:MSQLITE} USE_SQLITE= 3 EXTRAS:=${EXTRAS},m_sqlite3.cpp -PLIST_SUB+= SQLITE3="" +PLIST_SUB+= SQLITE="" .else -PLIST_SUB+= SQLITE3="@comment " +PLIST_SUB+= SQLITE="@comment " .endif -.if defined(WITH_GNUTLS) && !defined(WITHOUT_GNUTLS) +.if ${PORT_OPTIONS:MGNUTLS} LIB_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls \ gcrypt.18:${PORTSDIR}/security/libgcrypt CONFIGURE_ARGS+= --enable-gnutls @@ -101,7 +106,7 @@ PLIST_SUB+= GNUTLS="" PLIST_SUB+= GNUTLS="@comment " .endif -.if defined(WITH_OPENSSL) && !defined(WITHOUT_OPENSSL) +.if ${PORT_OPTIONS:MOPENSSL} USE_OPENSSL=yes CONFIGURE_ARGS+= --enable-openssl PLIST_SUB+= OPENSSL="" diff --git a/irc/inspircd/pkg-plist b/irc/inspircd/pkg-plist index ecbb63eae5fb..8195542ae524 100644 --- a/irc/inspircd/pkg-plist +++ b/irc/inspircd/pkg-plist @@ -182,10 +182,10 @@ lib/inspircd/modules/m_silence.so lib/inspircd/modules/m_spanningtree.so lib/inspircd/modules/m_sqlauth.so lib/inspircd/modules/m_sqloper.so -%%LDAPAUTH%%lib/inspircd/modules/m_ldapauth.so +%%LDAP%%lib/inspircd/modules/m_ldapauth.so %%MYSQL%%lib/inspircd/modules/m_mysql.so %%PGSQL%%lib/inspircd/modules/m_pgsql.so -%%SQLITE3%%lib/inspircd/modules/m_sqlite3.so +%%SQLITE%%lib/inspircd/modules/m_sqlite3.so %%GNUTLS%%lib/inspircd/modules/m_ssl_gnutls.so %%OPENSSL%%lib/inspircd/modules/m_ssl_openssl.so lib/inspircd/modules/m_sslinfo.so |