2012-12-31 10:49:52 +00:00
|
|
|
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
2003-12-29 13:27:06 +00:00
|
|
|
|
|
|
|
PORTNAME= jabberd
|
2018-11-02 00:22:33 +00:00
|
|
|
PORTVERSION= 2.7.0
|
2020-02-23 08:07:58 +00:00
|
|
|
PORTREVISION= 4
|
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
|
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2 \
|
2020-02-23 08:07:58 +00:00
|
|
|
libgsasl.so:security/libgsasl \
|
2016-04-01 14:16:16 +00:00
|
|
|
libidn.so:dns/libidn \
|
|
|
|
libudns.so:dns/udns
|
2018-11-02 00:22:33 +00:00
|
|
|
|
2018-10-25 22:07:59 +00:00
|
|
|
USES= autoreconf compiler:c11 iconv libtool perl5 pkgconfig \
|
|
|
|
ssl tar:xz
|
2013-01-22 08:47:57 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL LDAP BDB SQLITE PAM PIPE ANON FS DEBUG REQUIRES \
|
2015-11-21 15:04:37 +00:00
|
|
|
DOCS SUPERSEDED EXPERIMENTAL
|
|
|
|
OPTIONS_DEFAULT=MYSQL DEBUG
|
2013-12-15 22:14:40 +00:00
|
|
|
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
|
2013-09-17 06:51:04 +00:00
|
|
|
USE_PERL5= run
|
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 \
|
2015-06-19 06:35:31 +00:00
|
|
|
--enable-ssl --enable-mio=kqueue \
|
2012-05-12 07:42:28 +00:00
|
|
|
--disable-tests \
|
2015-11-21 15:04:37 +00:00
|
|
|
--with-sasl=gsasl \
|
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"
|
|
|
|
|
2014-11-22 11:40:08 +00:00
|
|
|
PLIST_SUB+= JABBER_USER=${JABBER_USER} \
|
2011-06-19 10:14:45 +00:00
|
|
|
JABBER_GROUP=${JABBER_GROUP} \
|
2007-07-26 20:00:52 +00:00
|
|
|
JABBER_ETCDIR="${JABBER_ETCDIR}" \
|
2014-11-22 11:40:08 +00:00
|
|
|
JABBER_RUNDIR="${JABBER_RUNDIR}"
|
|
|
|
|
|
|
|
SUB_LIST+= JABBER_USER=${JABBER_USER} \
|
2008-06-20 11:57:30 +00:00
|
|
|
JABBER_RUNDIR="${JABBER_RUNDIR}" \
|
|
|
|
PERL="${PERL}"
|
2007-07-26 20:00:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2014-11-22 19:13:49 +00:00
|
|
|
PGSQL_USES= pgsql
|
2013-12-15 22:14:40 +00:00
|
|
|
PGSQL_CONFIGURE_ENABLE= pgsql
|
|
|
|
|
|
|
|
SQLITE_CONFIGURE_ENABLE=sqlite
|
2016-04-01 14:16:16 +00:00
|
|
|
SQLITE_LIB_DEPENDS= libsqlite3.so:databases/sqlite3
|
2013-12-15 22:14:40 +00:00
|
|
|
|
2019-11-15 10:12:08 +00:00
|
|
|
MYSQL_USES= mysql
|
2013-12-15 22:14:40 +00:00
|
|
|
MYSQL_CONFIGURE_ENABLE= mysql
|
|
|
|
|
2016-08-08 13:46:50 +00:00
|
|
|
BDB_USES= bdb
|
2013-12-15 22:14:40 +00:00
|
|
|
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)
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
.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:
|
2014-11-22 11:40:08 +00:00
|
|
|
.for FILE in c2s.xml jabberd.cfg router-filter.xml router-users.xml \
|
|
|
|
router.xml s2s.xml sm.xml templates/roster.xml
|
|
|
|
@${MV} ${WRKSRC}/etc/${FILE}.dist.in ${WRKSRC}/etc/${FILE}.sample.in
|
|
|
|
.endfor
|
2007-07-27 12:19:48 +00:00
|
|
|
|
2003-12-30 16:18:46 +00:00
|
|
|
post-install:
|
2014-11-22 11:40:08 +00:00
|
|
|
.for DIR in db logs pid
|
|
|
|
@${MKDIR} ${STAGEDIR}${JABBER_RUNDIR}/${DIR}
|
|
|
|
.endfor
|
|
|
|
@${CHMOD} -R go= ${STAGEDIR}${JABBER_RUNDIR}
|
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>
|