2007-07-13 11:43:36 +02:00
|
|
|
# $NetBSD: Makefile,v 1.39 2007/07/13 09:43:36 xtraeme Exp $
|
2004-03-28 21:44:05 +02:00
|
|
|
#
|
|
|
|
|
2007-07-13 11:43:36 +02:00
|
|
|
DISTNAME= jabberd-2.1.8
|
|
|
|
#PKGREVISION= 1
|
2004-03-28 21:44:05 +02:00
|
|
|
CATEGORIES= chat
|
2007-05-26 13:50:12 +02:00
|
|
|
MASTER_SITES= http://ftp.xiaoka.com/jabberd2/releases/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
MAINTAINER= xtraeme@NetBSD.org
|
2007-05-26 13:50:12 +02:00
|
|
|
HOMEPAGE= http://jabberd2.xiaoka.com/
|
2004-03-28 21:44:05 +02:00
|
|
|
COMMENT= Instant messaging server (version 2)
|
|
|
|
|
2006-04-21 11:18:37 +02:00
|
|
|
CONFLICTS= jabberd-[0-9]*
|
2004-03-28 21:44:05 +02:00
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2004-03-28 21:44:05 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2007-01-17 04:11:18 +01:00
|
|
|
BUILDLINK_FNAME_TRANSFORM.db4+= -e "s,/db4/,/,g"
|
2004-03-28 21:44:05 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= path
|
2004-03-28 21:44:05 +02:00
|
|
|
SUBST_STAGE.path= post-patch
|
|
|
|
SUBST_FILES.path= configure
|
2006-04-21 11:18:37 +02:00
|
|
|
SUBST_MESSAGE.path= Fixing configure script.
|
|
|
|
SUBST_SED.path= -e "s,/usr/local,${PREFIX},g"
|
|
|
|
SUBST_SED.path+= -e "s,\$$sysconfdir/jabberd,\$$sysconfdir,g"
|
2004-03-28 21:44:05 +02:00
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2004-07-14 02:25:11 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
|
|
|
CONFIGURE_ARGS+= --enable-pipe
|
|
|
|
CONFIGURE_ARGS+= --enable-anon
|
Update to 2.0s6.
Changes:
* Fix base64 encoding length in authreg_pipe.c Stephen Marquard,
Diagnosed by Jerome Vandenabeele
* Fixes segfault on s2s startup on some platforms when ssl is enabled
(local pemfile defined in s2s.xml), Stephen Marquard
* mod_offline handling of jabber:x:event client requests (JEP-0022) can
lead to a loop repeatedly adding duplicates to the offline queue under
certain race conditions. Correctly detect jabber:x:event notifications
and do not respond to them as requests, Stephen Marquard
* Check for invalid jids in directed presence packets, Stephen Marquard,
Based on bug report by Christopher Zorn
* Fixes minor memory leaks in authreg_ldap, Ilja Booij
* Fixes error in storage filter code using bdb storage causing sm
crash, Stephen Marquard
* Changes incorrectly indexed primary keys to non-unique indexes,
adds other indexes for efficiency, and changes type of xml field to
increase max allowed length, Stephen Marquard
* Include sys/types.h if available in util.h inter alia for FreeeBSD,
Stephen Marquard
* Minor code cleanups for compilation on HP-UX, Christof Meerwald
* Fix configure.in for correct handling of resolv.h, Magnus Henoch
* Include resquery checks from MAIN cvs branch in 2.0, Christof Meerwald
* Allows jabberd to start new components and place itself in the
background, Richard Bullington-McGuire (original ver), Additional
components defined in jabberd.cfg get started as long as they are in
the same directory as the jabberd script (useful for mu-conference
installed through jcr) The script can daemonize itself with the "-b"
switch after starting the various programs it watches over, unless the
debug option is set.
* Paranoia, ensure than srv->name is nul terminated., Jedi/Sector One
And more, please see the Changelog file.
2005-01-20 16:08:54 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
|
|
CONFIGURE_ARGS+= --enable-fs
|
2004-03-28 21:44:05 +02:00
|
|
|
|
2006-04-21 11:18:37 +02:00
|
|
|
REPLACE_PERL+= tools/*.pl
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-05-26 15:33:56 +02:00
|
|
|
JABBERD_DBDIR?= ${VARBASE}/db/jabberd
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
2007-05-26 15:33:56 +02:00
|
|
|
BUILD_DEFS+= JABBERD_LOGDIR JABBERD_PIDDIR JABBERD_DBDIR
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= jabberd
|
|
|
|
RCD_SCRIPTS= jabberd c2s sm resolver router s2s
|
|
|
|
JABBERD_USER?= jabberd
|
|
|
|
JABBERD_GROUP?= jabberd
|
2005-12-05 21:49:47 +01:00
|
|
|
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}
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_USERS_VARS+= JABBERD_USER
|
|
|
|
PKG_GROUPS_VARS+= JABBERD_GROUP
|
2007-02-22 20:26:05 +01:00
|
|
|
PKG_GROUPS= ${JABBERD_GROUP}
|
|
|
|
PKG_USERS= ${JABBERD_USER}:${JABBERD_GROUP}
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
BINDIR= ${PREFIX}/bin
|
|
|
|
EGDIR= ${PREFIX}/share/examples/jabberd
|
2005-08-19 20:12:36 +02:00
|
|
|
CONF_FILES= ${EGDIR}/jabberd.cfg ${PKG_SYSCONFDIR}/jabberd.cfg
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
FILES= c2s.xml resolver.xml router.xml \
|
2007-05-26 13:50:12 +02:00
|
|
|
router-users.xml router-filter.xml s2s.xml \
|
|
|
|
sm.xml storage.xml
|
|
|
|
DBFILES= db-setup.mysql db-setup.pgsql db-update.mysql \
|
|
|
|
db-setup-status.mysql db-setup.sqlite
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
.for f in ${FILES}
|
|
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
|
|
.endfor
|
|
|
|
CONF_FILES+= ${EGDIR}/roster.xml ${PKG_SYSCONFDIR}/roster.xml
|
|
|
|
|
2004-08-07 16:29:20 +02:00
|
|
|
.include "options.mk"
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
.for f in ${JABBERD_LOGDIR} ${JABBERD_DBDIR} ${JABBERD_PIDDIR}
|
|
|
|
OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 770
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-extract:
|
2005-05-24 23:02:53 +02:00
|
|
|
.for f in ${FILES}
|
2007-05-26 13:50:12 +02:00
|
|
|
${MV} ${WRKSRC}/etc/${f}.dist.in ${WRKSRC}/etc/${f}.in
|
2004-03-28 21:44:05 +02:00
|
|
|
.endfor
|
2007-05-26 13:50:12 +02:00
|
|
|
${MV} ${WRKSRC}/etc/jabberd.cfg.dist.in ${WRKSRC}/etc/jabberd.cfg.in
|
2004-03-28 21:44:05 +02:00
|
|
|
|
|
|
|
pre-configure:
|
2004-07-06 02:10:57 +02:00
|
|
|
.for f in ${FILES} jabberd.cfg
|
2007-05-26 13:50:12 +02:00
|
|
|
${SED} \
|
2004-03-28 21:44:05 +02:00
|
|
|
-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" \
|
2007-05-26 15:33:56 +02:00
|
|
|
-e "s|@pkglibdir@|${PREFIX}/lib/jabberd|g" \
|
2004-03-28 21:44:05 +02:00
|
|
|
${WRKSRC}/etc/${f}.in > ${WRKSRC}/etc/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/templates/roster.xml.dist.in \
|
|
|
|
${EGDIR}/roster.xml
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/pipe-auth.pl ${BINDIR}
|
2004-07-14 02:25:11 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/migrate.pl ${BINDIR}
|
2004-03-28 21:44:05 +02:00
|
|
|
.for f in ${DBFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/${f} ${EGDIR}
|
|
|
|
.endfor
|
|
|
|
.for f in jabberd.cfg ${FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${f} ${EGDIR}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2004-07-14 02:25:11 +02:00
|
|
|
.include "../../devel/libidn/buildlink3.mk"
|
2004-03-28 21:44:05 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2007-05-26 13:50:12 +02:00
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
2004-03-28 21:44:05 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|