summaryrefslogtreecommitdiff
path: root/chat/ejabberd/Makefile
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2015-10-01 14:48:14 +0000
committerfhajny <fhajny@pkgsrc.org>2015-10-01 14:48:14 +0000
commita3e9612b3b6dcaa87838e9e4df0fe54175f9df97 (patch)
tree4c669104deff4b40b7b3dafbaa38a8661e2a6d0b /chat/ejabberd/Makefile
parent610ff08b51a9033156bebe6e854512cc9fe768b1 (diff)
downloadpkgsrc-a3e9612b3b6dcaa87838e9e4df0fe54175f9df97.tar.gz
Update chat/ejabberd to 15.09.
### Major changes - Added OAuth delegation framework - Preliminary OAuth and HTTP based ejabberd API - X-AUTH2 authentication mechanism, - MAM now can store MUC room - MSSQL: improved schema, simplified config, and fixed support *Note: ejabberd now requires erlang 17.1 or higher* ### Core improvements - New `set_loglevel` admin command to ease changing loglevel. - Configuration: allow to override main config file options with data from included files - Improve S2S certificate checks - Log TLS errors as debug messages only - XEP-0198: new option "max_resume_timeout" - XEP-0198: Improve handling of non-message stanzas - ext_mod: Check external modules configuration on load - ext_mod: Don't override custom configuration on module upgrade - Several Elixir fixes - Updated most translation languages ### Modules improvements - Carbon Copy: Don't copy messages of type "normal" without body - HTTP-Bind: More eye-candy mod_http_bind help page - HTTP-Bind: Nameprep host name passed to http-bind before using in - HTTP-Bind: Set disable caching headers in http-bind responses - HTTP: pass stream management options defined in http listener to http-bind and websocket - MAM: Add XEP-0359 to archived messages - MAM: Add XEP-0313 v0.4 support - MUC commands: Changed argument names in two commands - MUC commands: Fix and document create_rooms_file and destroy_rooms_file - MUC hooks: added muc_filter_presence - MUC hooks: renamed muc_filter_packet to muc_filter_message - MUC logging: check for hint - Multicast: many improvements in the source code - SIP: Do not crash SIP authentication on SCRAMed passwords ### Packaging - Remove bashisms in join_cluster leave_cluster and postinstall scripts - Allow root to run join_cluster and leave_cluster - Allow building an ejabberd release with mix and elixir release manager - Allow installing as root - Fix Debian/Ubuntu package - Rename idna to ejabberd_idna - Improve 'make install' to remove useless failure cases
Diffstat (limited to 'chat/ejabberd/Makefile')
-rw-r--r--chat/ejabberd/Makefile34
1 files changed, 18 insertions, 16 deletions
diff --git a/chat/ejabberd/Makefile b/chat/ejabberd/Makefile
index e042806c495..5b57c1a7b83 100644
--- a/chat/ejabberd/Makefile
+++ b/chat/ejabberd/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.57 2015/09/01 11:36:59 fhajny Exp $
+# $NetBSD: Makefile,v 1.58 2015/10/01 14:48:14 fhajny Exp $
-DISTNAME= ejabberd-15.07
+DISTNAME= ejabberd-15.09
CATEGORIES= chat
MASTER_SITES= http://www.process-one.net/downloads/ejabberd/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tgz
@@ -23,17 +23,22 @@ USE_TOOLS+= bash:run gmake patch
CONFIGURE_ARGS+= --disable-debug
CONFIGURE_ARGS+= --enable-iconv
-CONFIGURE_ARGS+= --enable-json
CONFIGURE_ARGS+= --enable-lager
CONFIGURE_ARGS+= --enable-mysql
CONFIGURE_ARGS+= --enable-nif
CONFIGURE_ARGS+= --enable-odbc
CONFIGURE_ARGS+= --enable-pgsql
CONFIGURE_ARGS+= --enable-zlib
+CONFIGURE_ARGS+= --with-expat=${BUILDLINK_PREFIX.expat}
CONFIGURE_ARGS+= --enable-user=${EJABBERD_USER}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
+# Configure normally happens as part of getting the deps, which we avoid
+# by using a separate deps distfile.
+CONFIGURE_DIRS= . deps/esip deps/p1_stringprep deps/p1_tls deps/p1_xml deps/p1_yaml
+BUILD_DIRS= .
+
RCD_SCRIPTS= ejabberd
BUILD_DEFS+= EJABBERD_USER EJABBERD_GROUP EJABBERD_LOGDIR
@@ -66,8 +71,7 @@ PKG_SHELL.${EJABBERD_USER}= ${SH}
EGDIR= share/examples/ejabberd
-INSTALLATION_DIRS+= share/doc/${PKGBASE}
-INSTALLATION_DIRS+= ${EGDIR}
+INSTALLATION_DIRS+= share/doc/${PKGBASE} ${EGDIR} share/bash-completion.d
CONF_FILES_PERMS= ${EGDIR}/ejabberd.yml ${PKG_SYSCONFDIR}/ejabberd.yml \
${ROOT_USER} ${EJABBERD_GROUP} 0640
@@ -77,21 +81,15 @@ CONF_FILES_PERMS+= ${EGDIR}/inetrc ${PKG_SYSCONFDIR}/inetrc \
${ROOT_USER} ${EJABBERD_GROUP} 0640
SPECIAL_PERMS+= sbin/ejabberdctl ${ROOT_USER} ${EJABBERD_GROUP} 0750
-REPLACE_BASH= ejabberdctl.template tools/captcha.sh \
- tools/joincluster tools/leavecluster
+REPLACE_BASH= tools/captcha.sh
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Localizing paths
SUBST_STAGE.paths= pre-configure
-SUBST_FILES.paths= Makefile.in
-SUBST_FILES.paths+= ejabberd.yml.example
-SUBST_FILES.paths+= ejabberdctl.template
-SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
-SUBST_SED.paths+= -e 's,@EJABBERD_DB@,${EJABBERD_DB},g'
-SUBST_SED.paths+= -e 's,@EJABBERD_LOGDIR@,${EJABBERD_LOGDIR},g'
-SUBST_SED.paths+= -e 's,@EJABBERD_PIDDIR@,${EJABBERD_PIDDIR},g'
-SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
-SUBST_SED.paths+= -e 's,@DISTNAME@,${DISTNAME},g'
+SUBST_FILES.paths= Makefile.in ejabberd.yml.example ejabberdctl.template
+SUBST_FILES.paths+= tools/ejabberdctl.bc
+SUBST_VARS.paths= DISTNAME EJABBERD_DB EJABBERD_LOGDIR EJABBERD_PIDDIR
+SUBST_VARS.paths+= PKG_SYSCONFDIR PREFIX
# Helper target to refresh remote deps for tarring up
fetch-deps:
@@ -100,6 +98,10 @@ fetch-deps:
post-extract:
${LN} -s ${WRKDIR}/deps ${WRKSRC}/
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/tools/ejabberdctl.bc \
+ ${DESTDIR}${PREFIX}/share/bash-completion.d/ejabberd
+
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/erlang/buildlink3.mk"