pkgsrc/chat/jabberd2/Makefile
gdt 4b84cba1bb Update to 2.1.24.
Added missing files to distribution

  Check for non configured c2s local.id

  Added tool to migrate from jabberd14 to jabberd2 SQLite. BBN.com
  contribution.

  Fix for authreg_pipe. Fixes #204

  Updated bdb2mysql.rb to jabberd 2.1 DB schema

  Do not handle disco to nodes

  Fixed vCard get

  Fixed empty node check

  Restored reading [jabberd] group from my.cnf

  Unified way utf-8 is selected in MySQL backend

  Merged crypted passwords support for MySQL. Closes #184 and 197

  Removed debug that might cause segfault. Fixes #196.

  Do not handle vCard request destined to full JIDs. Fixes #190

  Added charset utf-8 to db-setup.mysql

  Fixes segfault that happend when there are multiple sessions and
  privacy list was changed. Fixes #188

  Really fix gsasl ANONYMOUS login

  Webstatus presence resource enabled only when service enabled

  Added server component presence resources

  Added maxstanzasize debug message

  Include “util/inaddr.h” for socklen_t ss_family etc. Refs #191

  Include <stdarg.h> if available. Refs #191

  TYPE_SOCKLEN_T check. Refs #91

  TYPE_SOCKLEN_T check. Refs #91

  Include inttypes.h instead of stdlib.h as it is more universally
  available. Refs #191

  Check for stdarg.h in configure.

  Remove AC_PROG_GCC_TRADITIONAL (obsolete).

  Remove AC_FUNC_MALLOC, AC_FUNC_REALLOC - if they find malloc(0) does
  not return a valid pointer malloc will be defined to rpl_malloc, and
  no rpl_malloc is available. See
  http://www.gnu.org/software/autoconf/manual/autoconf.html#Particular-Functions

  Seems easier to use AC_SEARCH_LIBS for inet_ntop etc.

  Move the broken __ss_family check so that it appears after the check
  for struct sockaddr_storage.

  Check for socklen_t

  Fix –enable-pgsql

  Fixed compatibility with VC++ and ANSI, variables must be declared at
  the beginning of the block.

  Check for Win32 OpenSSL and Visual C++ 2005 SP1 Redistributable
  Package (x86), and raise error if not found in the installer.

  Updated Makefile.am witn new README.protocol file

  Unified URI/URN definitions
2009-07-24 19:05:53 +00:00

121 lines
3.5 KiB
Makefile

# $NetBSD: Makefile,v 1.50 2009/07/24 19:05:53 gdt Exp $
#
DISTNAME= jabberd-2.1.24
CATEGORIES= chat
MASTER_SITES= http://codex.xiaoka.com/pub/jabberd2/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://jabberd2.xiaoka.com/
COMMENT= Instant messaging server (version 2)
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS= jabberd-[0-9]*
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
SUBST_CLASSES+= path
SUBST_STAGE.path= post-patch
SUBST_FILES.path= configure
SUBST_MESSAGE.path= Fixing configure script.
SUBST_SED.path= -e "s,/usr/local,${PREFIX},g"
SUBST_SED.path+= -e "s,\$$sysconfdir/jabberd,\$$sysconfdir,g"
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --disable-mysql
CONFIGURE_ARGS+= --enable-pipe
CONFIGURE_ARGS+= --enable-anon
CONFIGURE_ARGS+= --enable-ssl
CONFIGURE_ARGS+= --enable-fs
CONFIGURE_ARGS+= --with-sasl=gsasl
USE_TOOLS+= perl:run
REPLACE_PERL+= tools/*.pl
.include "../../mk/bsd.prefs.mk"
JABBERD_DBDIR?= ${VARBASE}/db/jabberd
BUILD_DEFS+= VARBASE JABBERD_USER JABBERD_GROUP
BUILD_DEFS+= JABBERD_LOGDIR JABBERD_PIDDIR JABBERD_DBDIR
PKG_SYSCONFSUBDIR= jabberd
RCD_SCRIPTS= jabberd c2s sm resolver router s2s
JABBERD_USER?= jabberd
JABBERD_GROUP?= jabberd
FILES_SUBST+= JABBERD_USER=${JABBERD_USER:Q}
FILES_SUBST+= JABBERD_GROUP=${JABBERD_GROUP:Q}
FILES_SUBST+= JABBERD_PIDDIR=${JABBERD_PIDDIR:Q}
FILES_SUBST+= JABBERD_LOGDIR=${JABBERD_LOGDIR:Q}
PKG_USERS_VARS+= JABBERD_USER
PKG_GROUPS_VARS+= JABBERD_GROUP
PKG_GROUPS= ${JABBERD_GROUP}
PKG_USERS= ${JABBERD_USER}:${JABBERD_GROUP}
BINDIR= ${PREFIX}/bin
EGDIR= ${PREFIX}/share/examples/jabberd
DOCDIR= ${PREFIX}/share/doc/jabberd
FILES= jabberd.cfg c2s.xml resolver.xml router.xml \
router-users.xml router-filter.xml s2s.xml \
sm.xml
DBFILES= db-jd14-2-jd2.sql db-setup.mysql db-setup.pgsql \
db-update.mysql db-setup.sqlite
DOCFILES= README.protocol README UPGRADE ChangeLog
INSTALLATION_DIRS= bin share/examples/jabberd share/doc/jabberd
.for f in ${FILES}
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
CONF_FILES+= ${EGDIR}/roster.xml ${PKG_SYSCONFDIR}/roster.xml
.include "options.mk"
.for f in ${JABBERD_LOGDIR} ${JABBERD_DBDIR} ${JABBERD_PIDDIR}
OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 770
.endfor
post-extract:
.for f in ${FILES}
mv ${WRKSRC}/etc/${f}.dist.in ${WRKSRC}/etc/${f}.in
.endfor
pre-configure:
.for f in ${FILES}
sed \
-e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
-e "s|@PIDDIR@|${JABBERD_PIDDIR}|g" \
-e "s|@LOGDIR@|${JABBERD_LOGDIR}|g" \
-e "s|@SSLCERTS@|${SSLCERTS}|g" \
-e "s|@BINDIR@|${PREFIX}/bin|g" \
-e "s|@DBDIR@|${JABBERD_DBDIR}|g" \
-e "s|@pkglibdir@|${PREFIX}/lib/jabberd|g" \
${WRKSRC}/etc/${f}.in > ${WRKSRC}/etc/${f}
.endfor
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/templates/roster.xml.dist.in \
${DESTDIR}${EGDIR}/roster.xml
${INSTALL_SCRIPT} ${WRKSRC}/tools/pipe-auth.pl ${DESTDIR}${BINDIR}
${INSTALL_SCRIPT} ${WRKSRC}/tools/migrate.pl ${DESTDIR}${BINDIR}
.for f in ${DBFILES}
${INSTALL_DATA} ${WRKSRC}/tools/${f} ${DESTDIR}${EGDIR}
.endfor
.for f in ${FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${f} ${DESTDIR}${EGDIR}
.endfor
.for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
.endfor
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../security/gsasl/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"