2006-05-14 13:31:16 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2006/05/14 17:31:16 steven Exp $
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
COMMENT= "jabber server"
|
SECURITY: update to 2.0s11
http://jabberstudio.org/projects/jabberd2/releases/view.php?id=826
* Sending a stanza before an stanza during a SASL negotiation can
cause a c2s segfault. Leading to a remote DoS
http://jabberstudio.org/projects/jabberd2/releases/view.php?id=802
* fixed SASL anonymous, bug#126
* fixed edge cases with new dynamic jid code
* fixed incorrect free order in c2s, byg#125
* corrected debug logging, bug#119
* fixed s2s bus error on 64-bit architectures, bug#122
* fixed c2s collisions due to long jids, bug#118
* fixed error response to iq result, bug#110
* fixed roster pushing packets without id, bug#73
* applied new dynamic jid patch, bug#100
* fixed double free of nad in c2s and s2s, bug#97
* major memory enhancement, made jid structure dynamically allocated, bug#100
* fixed glibc error with custom sql statements, bug#106
* fixed segfault with keepalives, bug#102
From: maintainer Gerardo Santana Gomez Garrido
2006-04-16 14:54:31 -04:00
|
|
|
DISTNAME= jabberd-2.0s11
|
2004-05-29 09:12:30 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://jabberd.jabberstudio.org/2/
|
2006-04-10 01:43:47 -04:00
|
|
|
MAINTAINER= Gerardo Santana Gomez Garrido <gerardo.santana@gmail.com>
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-11-14 07:46:04 -05:00
|
|
|
WANTLIB= c crypto ssl
|
2004-05-29 09:12:30 -04:00
|
|
|
|
2006-05-14 13:31:16 -04:00
|
|
|
MASTER_SITES= http://files.jabberstudio.org/jabberd2/ \
|
|
|
|
http://jabberstudio.rediris.es/jabberd2/ \
|
|
|
|
http://jabberstudio.2nw.net/jabberd2/
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
JABBERDUSER= _jabberd
|
|
|
|
JABBERDGROUP= _jabberd
|
|
|
|
JABBERDDIR= /var/jabberd
|
|
|
|
|
|
|
|
CONFIG_DIR= ${SYSCONFDIR}/jabberd
|
|
|
|
EXAMPLES= ${PREFIX}/share/examples/jabberd
|
|
|
|
|
|
|
|
SUBST_VARS= CONFIG_DIR EXAMPLES \
|
|
|
|
JABBERDUSER JABBERDGROUP JABBERDDIR
|
|
|
|
|
2005-05-26 15:10:21 -04:00
|
|
|
STORAGES= mysql postgresql db
|
|
|
|
FLAVORS= ${STORAGES} ldap
|
2005-05-05 02:59:28 -04:00
|
|
|
FLAVOR?= mysql
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
2005-05-26 15:10:21 -04:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
2004-11-17 16:08:26 -05:00
|
|
|
--enable-ssl \
|
2004-10-05 21:08:17 -04:00
|
|
|
--disable-idn \
|
2005-05-26 15:10:21 -04:00
|
|
|
--with-extra-include-path="${EXTRA_INCLUDE_PATH}" \
|
|
|
|
--with-extra-library-path="${EXTRA_LIBRARY_PATH}"
|
|
|
|
EXTRA_INCLUDE_PATH= ${LOCALBASE}/include
|
|
|
|
EXTRA_LIBRARY_PATH= ${LOCALBASE}/lib
|
2005-05-05 02:59:28 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
|
|
|
|
CONFIGURE_ARGS+= --enable-mysql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
|
|
|
.endif
|
|
|
|
|
2005-05-26 15:10:21 -04:00
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
|
|
|
LIB_DEPENDS+= pq.4::databases/postgresql
|
|
|
|
CONFIGURE_ARGS+= --enable-pgsql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pgsql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mdb}
|
|
|
|
LIB_DEPENDS+= lib/db4/db.=4::databases/db/v4
|
|
|
|
CONFIGURE_ARGS+= --enable-db
|
|
|
|
EXTRA_INCLUDE_PATH:= ${EXTRA_INCLUDE_PATH}:${LOCALBASE}/include/db4
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-db
|
|
|
|
.endif
|
|
|
|
|
2005-05-05 02:59:28 -04:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
2005-11-13 13:48:45 -05:00
|
|
|
LIB_DEPENDS+= ldap.8,lber.8:openldap-*->=2.3:databases/openldap
|
2005-05-05 02:59:28 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
2005-11-14 07:46:04 -05:00
|
|
|
WANTLIB+= sasl2
|
2005-05-05 02:59:28 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
.endif
|
|
|
|
|
2005-05-26 15:10:21 -04:00
|
|
|
.for s in ${STORAGES}
|
|
|
|
. if ${FLAVOR:L:M$s}
|
|
|
|
storage_flag=1
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
.if !defined(storage_flag)
|
|
|
|
ERRORS+= "Fatal: You need to select at least one storage driver"
|
2005-05-05 02:59:28 -04:00
|
|
|
.endif
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/jabberd ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/jabberd
|
|
|
|
.for dir in c2s resolver router s2s sm
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${dir}/${dir} ${PREFIX}/libexec/jabberd
|
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/*.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLES}
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLES}/templates
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/jabberd.cfg.dist ${EXAMPLES}/jabberd.cfg
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/c2s.xml.dist ${EXAMPLES}/c2s.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/resolver.xml.dist ${EXAMPLES}/resolver.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/router-users.xml.dist ${EXAMPLES}/router-users.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/router.xml.dist ${EXAMPLES}/router.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/s2s.xml.dist ${EXAMPLES}/s2s.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/sm.xml.dist ${EXAMPLES}/sm.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/templates/roster.xml.dist ${EXAMPLES}/templates/roster.xml
|
2005-06-10 15:56:37 -04:00
|
|
|
.if ${FLAVOR:Mmysql}
|
2004-05-29 09:12:30 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${EXAMPLES}
|
2005-06-10 15:56:37 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/db-update.mysql ${EXAMPLES}
|
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:Mpostgresql}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/db-setup.pgsql ${EXAMPLES}
|
|
|
|
.endif
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|