aboutsummaryrefslogtreecommitdiffstats
path: root/irc/inspircd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'irc/inspircd/Makefile')
-rw-r--r--irc/inspircd/Makefile61
1 files changed, 45 insertions, 16 deletions
diff --git a/irc/inspircd/Makefile b/irc/inspircd/Makefile
index 5b49c8e97b65..9a6730008837 100644
--- a/irc/inspircd/Makefile
+++ b/irc/inspircd/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= inspircd
-PORTVERSION= 2.0.5
-PORTREVISION= 2
+PORTVERSION= 2.0.8
CATEGORIES= irc
MASTER_SITES= http://cloud.github.com/downloads/inspircd/inspircd/
DISTNAME= InspIRCd-${PORTVERSION}
@@ -36,34 +35,44 @@ USE_PERL5_BUILD=yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-cc=${CXX} --config-dir=${ETCDIR} \
- --module-dir=${PREFIX}/lib/${PORTNAME}/modules \
- --library-dir=${PREFIX}/lib/${PORTNAME} \
+ --module-dir=${PREFIX}/lib/${PORTNAME}/modules \
--prefix=${PREFIX}/lib/${PORTNAME} --binary-dir=${PREFIX}/bin \
- --enable-kqueue --enable-ipv6 --disable-interactive \
+ --enable-kqueue --disable-interactive \
--uid=${INSPIRCD_UID}
-
PORTDOCS= docs/* extras/*
-OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAP GNUTLS OPENSSL
+OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAPAUTH LDAPOPER GNUTLS OPENSSL PCRE POSIX
+OPTIONS_DEFAULT= POSIX
GNUTLS_DESC= Build m_ssl_gnutls module
-LDAP_DESC= Build m_ldapauth module
+LDAPAUTH_DESC= Build m_ldapauth module
+LDAPOPER_DESC= Build m_ldapoper 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
+PCRE_DESC= Build m_regex_pcre module
+POSIX_DESC= Build m_regex_posix module
.include <bsd.port.options.mk>
post-extract:
@(cd ${WRKDIR} && ${MV} ${PORTNAME} ${DISTNAME})
-.if ${PORT_OPTIONS:MLDAP}
+.if ${PORT_OPTIONS:MLDAPAUTH}
USE_OPENLDAP= yes
EXTRAS:=${EXTRAS},m_ldapauth.cpp
-PLIST_SUB+= LDAP=""
+PLIST_SUB+= LDAPAUTH=""
+.else
+PLIST_SUB+= LDAPAUTH="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MLDAPOPER}
+USE_OPENLDAP= yes
+EXTRAS:=${EXTRAS},m_ldapoper.cpp
+PLIST_SUB+= LDAPOPER=""
.else
-PLIST_SUB+= LDAP="@comment "
+PLIST_SUB+= LDAPOPER="@comment "
.endif
.if ${PORT_OPTIONS:MMYSQL}
@@ -94,6 +103,7 @@ PLIST_SUB+= SQLITE="@comment "
LIB_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls \
gcrypt.18:${PORTSDIR}/security/libgcrypt
CONFIGURE_ARGS+= --enable-gnutls
+EXTRAS:=${EXTRAS},m_ssl_gnutls.cpp
PLIST_SUB+= GNUTLS=""
.else
PLIST_SUB+= GNUTLS="@comment "
@@ -102,22 +112,41 @@ PLIST_SUB+= GNUTLS="@comment "
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL=yes
CONFIGURE_ARGS+= --enable-openssl
+EXTRAS:=${EXTRAS},m_ssl_openssl.cpp
PLIST_SUB+= OPENSSL=""
.else
PLIST_SUB+= OPENSSL="@comment "
.endif
-CONFIGURE_ARGS+= --enable-extras=${EXTRAS}
+.if ${PORT_OPTIONS:MPCRE}
+LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
+EXTRAS:=${EXTRAS},m_regex_pcre.cpp
+PLIST_SUB+= PCRE=""
+.else
+PLIST_SUB+= PCRE="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MPOSIX}
+EXTRAS:=${EXTRAS},m_regex_posix.cpp
+PLIST_SUB+= POSIX=""
+.else
+PLIST_SUB+= POSIX="@comment "
+.endif
+
+pre-configure:
+ @if [ ${EXTRAS} ]; then \
+ cd ${WRKSRC} && ./${CONFIGURE_SCRIPT} --enable-extras=${EXTRAS} ; \
+ fi
post-install:
@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/modules/*.so
@${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}
.for FILE in inspircd.censor inspircd.conf inspircd.filter inspircd.helpop-full \
inspircd.helpop inspircd.motd inspircd.quotes inspircd.rules links.conf modules.conf opers.conf
- @if ${TEST} -f ${ETCDIR}/${FILE} && \
- ${TEST} ! -f ${ETCDIR}/${FILE}.example ; then \
- ${CP} -p ${ETCDIR}/${FILE}.example \
- ${ETCDIR}/${FILE}; \
+ @if ${TEST} -f ${ETCDIR}/${FILE} && \
+ ${TEST} ! -f ${ETCDIR}/examples/${FILE}.example ; then \
+ ${CP} -p ${ETCDIR}/examples/${FILE}.example \
+ ${ETCDIR}/${FILE}; \
fi
.endfor