2012-12-31 10:49:52 +00:00
|
|
|
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
2003-12-29 13:27:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= jabberd
|
2013-12-15 22:14:40 +00:00
|
|
|
DISTVERSION= 2.3.1
|
2014-08-30 18:18:14 +00:00
|
|
|
PORTREVISION= 6
|
2005-11-09 07:48:19 +00:00
|
|
|
CATEGORIES= net-im
|
2013-12-15 22:14:40 +00:00
|
|
|
MASTER_SITES= https://github.com/jabberd2/jabberd2/releases/download/${PORTNAME}-${DISTVERSION}/ \
|
2013-12-17 10:15:59 +00:00
|
|
|
LOCAL/matthew/${PORTNAME}
|
2003-12-29 13:27:06 +00:00
|
|
|
|
2007-07-26 20:00:52 +00:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
2003-12-29 13:27:06 +00:00
|
|
|
COMMENT= Online presence and instant messaging server
|
|
|
|
|
2011-03-23 15:53:22 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-15 22:14:40 +00:00
|
|
|
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
|
|
libidn.so:${PORTSDIR}/dns/libidn \
|
|
|
|
libudns.so:${PORTSDIR}/dns/udns
|
2013-01-22 08:47:57 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL LDAP BDB SQLITE PAM PIPE ANON FS DEBUG REQUIRES \
|
2013-12-15 22:14:40 +00:00
|
|
|
DOCS SUPERSEDED EXPERIMENTAL
|
|
|
|
OPTIONS_SINGLE= SASL
|
|
|
|
OPTIONS_SINGLE_SASL= CYRUS GSASL
|
|
|
|
OPTIONS_DEFAULT=MYSQL DEBUG GSASL
|
|
|
|
OPTIONS_SUB= yes
|
2005-07-28 06:31:46 +00:00
|
|
|
|
2003-12-29 13:27:06 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2014-07-09 14:15:20 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USES= compiler:c11 iconv libtool perl5 tar:xz
|
2013-09-17 06:51:04 +00:00
|
|
|
USE_PERL5= run
|
2004-02-09 07:31:14 +00:00
|
|
|
USE_OPENSSL= yes
|
2007-07-26 20:00:52 +00:00
|
|
|
USE_RC_SUBR= jabberd
|
2007-08-16 13:53:01 +00:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/jabberd
|
2014-07-09 14:15:20 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
2007-07-26 20:00:52 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/jabberd \
|
2008-05-24 00:04:49 +00:00
|
|
|
--enable-ssl --enable-mio=poll \
|
2012-05-12 07:42:28 +00:00
|
|
|
--disable-tests \
|
2007-07-26 20:00:52 +00:00
|
|
|
--with-extra-include-path="${LOCALBASE}/include ${EIP}" \
|
2007-08-29 14:07:38 +00:00
|
|
|
--with-extra-library-path="${LOCALBASE}/lib ${ELP}"
|
2003-12-30 12:03:43 +00:00
|
|
|
|
2007-07-26 20:00:52 +00:00
|
|
|
JABBER_USER= jabber
|
2011-06-19 10:14:45 +00:00
|
|
|
JABBER_GROUP= jabber
|
|
|
|
|
|
|
|
USERS= ${JABBER_USER}
|
|
|
|
GROUPS= ${JABBER_GROUP}
|
|
|
|
|
2007-08-16 13:53:01 +00:00
|
|
|
JABBER_ETCDIR= "${PREFIX}/etc/jabberd"
|
2007-07-26 20:00:52 +00:00
|
|
|
JABBER_RUNDIR= "/var/jabberd"
|
|
|
|
|
2011-06-19 10:14:45 +00:00
|
|
|
SUB_LIST+= JABBER_USER=${JABBER_USER} \
|
|
|
|
JABBER_GROUP=${JABBER_GROUP} \
|
2007-07-26 20:00:52 +00:00
|
|
|
JABBER_ETCDIR="${JABBER_ETCDIR}" \
|
2008-06-20 11:57:30 +00:00
|
|
|
JABBER_RUNDIR="${JABBER_RUNDIR}" \
|
|
|
|
PERL="${PERL}"
|
2007-07-26 20:00:52 +00:00
|
|
|
|
|
|
|
SUB_FILES+= pkg-install pkg-deinstall
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2013-12-15 22:14:40 +00:00
|
|
|
DOCFILES= AUTHORS ChangeLog NEWS README README.config \
|
|
|
|
README.protocol TODO
|
2007-07-26 20:00:52 +00:00
|
|
|
|
2008-01-03 15:32:41 +00:00
|
|
|
_REQUIRE= LOGIN
|
|
|
|
|
2007-07-30 10:04:24 +00:00
|
|
|
ELP+= ${OPENSSLLIB}
|
|
|
|
EIP+= ${OPENSSLINC}
|
|
|
|
|
2013-12-15 22:14:40 +00:00
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
2004-01-01 10:48:49 +00:00
|
|
|
|
2013-12-15 22:14:40 +00:00
|
|
|
PGSQL_USE= PGSQL=yes
|
|
|
|
PGSQL_CONFIGURE_ENABLE= pgsql
|
|
|
|
|
|
|
|
SQLITE_CONFIGURE_ENABLE=sqlite
|
|
|
|
SQLITE_LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3
|
|
|
|
|
|
|
|
MYSQL_USE= MYSQL=yes
|
|
|
|
MYSQL_CONFIGURE_ENABLE= mysql
|
|
|
|
|
|
|
|
BDB_USE= BDB=41+
|
|
|
|
BDB_CONFIGURE_ENABLE= db
|
|
|
|
BDB_CONFIGURE_ON= --oldincludedir=/nonexistant
|
|
|
|
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
|
|
|
LDAP_CONFIGURE_ENABLE= ldap
|
|
|
|
|
|
|
|
FS_CONFIGURE_ENABLE= fs
|
|
|
|
FS_DESC= Filesystem storage (only for testing)
|
|
|
|
|
|
|
|
PAM_CONFIGURE_ENABLE= pam
|
|
|
|
|
|
|
|
PIPE_CONFIGURE_ENABLE= pipe
|
|
|
|
PIPE_DESC= Enable pipe (auth/reg)
|
|
|
|
|
|
|
|
ANON_CONFIGURE_ENABLE= anon
|
|
|
|
ANON_DESC= Enable anonymous (auth/reg)
|
|
|
|
|
|
|
|
CYRUS_CONFIGURE_ON= --with-sasl=cyrus
|
|
|
|
CYRUS_DESC= Use Cyrus SASL backend (not supported)
|
|
|
|
CYRUS_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
|
|
|
|
|
|
|
GSASL_CONFIGURE_ON= --with-sasl=gsasl
|
|
|
|
GSASL_DESC= Use GSASL backend
|
|
|
|
GSASL_LIB_DEPENDS= libgsasl.so:${PORTSDIR}/security/gsasl
|
|
|
|
|
|
|
|
SUPERSEDED_CONFIGURE_ENABLE= superseded
|
|
|
|
SUPERSEDED_DESC= Enable superseded features (ns_TIME)
|
|
|
|
|
|
|
|
EXPERIMENTAL_CONFIGURE_ENABLE= experimental
|
|
|
|
EXPERIMENTAL_DESC= Enable experimental features (TLS-Everywhere)
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-02-09 23:42:25 +00:00
|
|
|
.if (${OPSYS} != FreeBSD || ${OSVERSION} < 1000000)
|
2013-12-15 22:14:40 +00:00
|
|
|
WITH_OPENSSL_PORT= yes
|
2003-12-29 13:27:06 +00:00
|
|
|
.endif
|
|
|
|
|
2013-12-15 22:14:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
|
|
_REQUIRE+= postgresql
|
2005-09-10 19:40:48 +00:00
|
|
|
.endif
|
|
|
|
|
2012-12-31 10:49:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2013-12-15 22:14:40 +00:00
|
|
|
EIP+=${LOCALBASE}/include/mysql
|
|
|
|
ELP+=${LOCALBASE}/lib/mysql
|
2008-01-03 15:32:41 +00:00
|
|
|
_REQUIRE+= mysql
|
2003-12-30 12:03:43 +00:00
|
|
|
.endif
|
|
|
|
|
2012-12-31 10:49:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
2013-12-15 22:14:40 +00:00
|
|
|
EIP+=${BDB_INCLUDE_DIR}
|
|
|
|
ELP+=${BDB_LIB_DIR}
|
2003-12-29 13:27:06 +00:00
|
|
|
.endif
|
|
|
|
|
2012-12-31 10:49:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
2008-01-03 15:32:41 +00:00
|
|
|
_REQUIRE+= slapd
|
2006-03-20 12:24:18 +00:00
|
|
|
.endif
|
|
|
|
|
2012-12-31 10:49:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MREQUIRES}
|
2008-01-03 15:32:41 +00:00
|
|
|
SUB_LIST+= REQUIRE="${_REQUIRE}"
|
|
|
|
.else
|
|
|
|
SUB_LIST+= REQUIRE="LOGIN"
|
2007-09-05 13:24:55 +00:00
|
|
|
.endif
|
2013-12-15 22:14:40 +00:00
|
|
|
REQUIRES_DESC= Add backend requires to startup script
|
2003-12-29 13:27:06 +00:00
|
|
|
|
2007-07-27 12:19:48 +00:00
|
|
|
post-patch:
|
2008-06-20 11:57:30 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PERL%%|${PERL}|g' \
|
|
|
|
${WRKSRC}/tools/jabberd.in
|
2012-12-31 10:49:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MCYRUS}
|
2009-10-05 07:12:56 +00:00
|
|
|
@${REINPLACE_CMD} -e '/^#error /d' \
|
|
|
|
${WRKSRC}/sx/sasl_cyrus.c
|
|
|
|
.endif
|
2007-07-27 12:19:48 +00:00
|
|
|
|
2003-12-30 16:18:46 +00:00
|
|
|
post-install:
|
2012-12-31 10:49:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-12-15 22:14:40 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2007-07-26 20:00:52 +00:00
|
|
|
.for FILE in ${DOCFILES}
|
2013-12-15 22:14:40 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
2007-07-26 20:00:52 +00:00
|
|
|
.endfor
|
|
|
|
.for FILE in db-setup.mysql db-setup.pgsql db-setup.sqlite
|
2013-12-15 22:14:40 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/${FILE} ${STAGEDIR}${DOCSDIR}
|
2007-07-26 20:00:52 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2003-12-30 16:18:46 +00:00
|
|
|
|
2012-12-31 10:49:52 +00:00
|
|
|
.include <bsd.port.mk>
|