2013-06-20 08:26:13 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.52 2013/06/20 08:26:13 ajacoutot Exp $
|
2004-05-29 13:12:30 +00:00
|
|
|
|
2007-09-15 22:36:51 +00: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 18:54:31 +00:00
|
|
|
DISTNAME= jabberd-2.0s11
|
2013-06-20 08:26:13 +00:00
|
|
|
REVISION= 5
|
2012-08-24 07:24:12 +00:00
|
|
|
EPOCH= 1
|
2004-05-29 13:12:30 +00:00
|
|
|
CATEGORIES= net
|
2013-05-17 09:12:26 +00:00
|
|
|
HOMEPAGE= http://jabberd2.org/
|
2004-05-29 13:12:30 +00:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2010-07-12 22:07:37 +00:00
|
|
|
|
2005-11-14 12:46:04 +00:00
|
|
|
WANTLIB= c crypto ssl
|
2004-05-29 13:12:30 +00:00
|
|
|
|
2013-05-17 09:12:26 +00:00
|
|
|
MASTER_SITES= http://www.linklevel.net/distfiles/
|
2004-05-29 13:12:30 +00: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 19:10:21 +00:00
|
|
|
STORAGES= mysql postgresql db
|
|
|
|
FLAVORS= ${STORAGES} ldap
|
2005-05-05 06:59:28 +00:00
|
|
|
FLAVOR?= mysql
|
2004-05-29 13:12:30 +00:00
|
|
|
|
2010-11-19 22:31:32 +00:00
|
|
|
USE_GROFF = Yes
|
2004-05-29 13:12:30 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2012-04-28 10:52:08 +00:00
|
|
|
CONFIGURE_ARGS= --enable-debug \
|
2004-11-17 21:08:26 +00:00
|
|
|
--enable-ssl \
|
2004-10-06 01:08:17 +00:00
|
|
|
--disable-idn \
|
2005-05-26 19:10:21 +00: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 06:59:28 +00:00
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mmysql}
|
2013-06-12 20:36:33 +00:00
|
|
|
LIB_DEPENDS+= databases/mysql
|
2010-11-19 22:31:32 +00:00
|
|
|
WANTLIB += lib/mysql/mysqlclient>=10
|
2005-05-05 06:59:28 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
|
|
|
.endif
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mpostgresql}
|
2010-11-19 22:31:32 +00:00
|
|
|
LIB_DEPENDS+= databases/postgresql
|
|
|
|
WANTLIB += pq>=4
|
2005-05-26 19:10:21 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-pgsql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pgsql
|
|
|
|
.endif
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mdb}
|
2010-11-19 22:31:32 +00:00
|
|
|
LIB_DEPENDS+= databases/db/v4
|
|
|
|
WANTLIB += lib/db4/db>=4
|
2005-05-26 19:10:21 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-db
|
|
|
|
EXTRA_INCLUDE_PATH:= ${EXTRA_INCLUDE_PATH}:${LOCALBASE}/include/db4
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-db
|
|
|
|
.endif
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mldap}
|
2010-11-19 22:31:32 +00:00
|
|
|
LIB_DEPENDS+= databases/openldap>=2.3
|
2013-06-20 08:26:13 +00:00
|
|
|
WANTLIB += heimbase lber-2.4 ldap-2.4 roken wind
|
2005-05-05 06:59:28 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
2006-11-11 14:38:23 +00:00
|
|
|
WANTLIB+= sasl2 asn1 com_err gssapi krb5
|
2005-05-05 06:59:28 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
.endif
|
|
|
|
|
2005-05-26 19:10:21 +00:00
|
|
|
.for s in ${STORAGES}
|
2013-02-09 14:49:50 +00:00
|
|
|
. if ${FLAVOR:M$s}
|
2005-05-26 19:10:21 +00:00
|
|
|
storage_flag=1
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
.if !defined(storage_flag)
|
2007-09-15 23:36:43 +00:00
|
|
|
ERRORS+= "Fatal: You need to select at least one storage driver"
|
2005-05-05 06:59:28 +00:00
|
|
|
.endif
|
2004-05-29 13:12:30 +00: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 19:56:37 +00:00
|
|
|
.if ${FLAVOR:Mmysql}
|
2004-05-29 13:12:30 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${EXAMPLES}
|
2005-06-10 19:56:37 +00: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 13:12:30 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|