1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/net-im/jabberd/Makefile

154 lines
3.5 KiB
Makefile
Raw Permalink Normal View History

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
PORTNAME= jabberd
2018-11-02 00:22:33 +00:00
PORTVERSION= 2.7.0
PORTREVISION= 4
Move instant messaging related ports to newly created net-im category: net/aim -> net-im/aim net/amsn -> net-im/amsn net/ari-yahoo -> net-im/ari-yahoo net/ayttm -> net-im/ayttm net/bsflite -> net-im/bsflite net/ccmsn -> net-im/ccmsn net/centericq -> net-im/centericq net/cicquin -> net-im/cicquin net/coccinella -> net-im/coccinella net/convey -> net-im/convey net/echat -> net-im/echat net/ejabberd -> net-im/ejabberd net/firetalk -> net-im/firetalk net/fugu -> net-im/fugu net/gajim -> net-im/gajim net/gale -> net-im/gale net/ginsu -> net-im/ginsu net/gnome-jabber -> net-im/gnome-jabber net/gtkyahoo -> net-im/gtkyahoo net/gyach -> net-im/gyach net/icb -> net-im/icb net/icmpchat -> net-im/icmpchat net/icqlib -> net-im/icqlib net/imcom -> net-im/imcom net/jabberd -> net-im/jabberd net/jabber-pymsn -> net-im/jabber-pymsn net/jit -> net-im/jit net/kmerlin -> net-im/kmerlin net/kmess -> net-im/kmess net/konverse -> net-im/konverse net/kpopup -> net-im/kpopup net/libmsn -> net-im/libmsn net/libyahoo2 -> net-im/libyahoo2 net/linpopup -> net-im/linpopup net/linux-ymessenger -> net-im/linux-ymessenger net/mcabber -> net-im/mcabber net/mercury -> net-im/mercury net/micq -> net-im/micq net/mu-conference -> net-im/mu-conference net/naim -> net-im/naim net/pebrot -> net-im/pebrot net/pork -> net-im/pork net/py-msnp -> net-im/py-msnp net/py-pyxmpp -> net-im/py-pyxmpp net/p5-Jabber-Connection -> net-im/p5-Jabber-Connection net/p5-Net-AIM -> net-im/p5-Net-AIM net/p5-Net-AOLIM -> net-im/p5-Net-AOLIM net/p5-Net-ICQ2000 -> net-im/p5-Net-ICQ2000 net/p5-Net-MSN -> net-im/p5-Net-MSN net/p5-Net-NetSend -> net-im/p5-Net-NetSend net/p5-Net-OSCAR -> net-im/p5-Net-OSCAR net/simicq -> net-im/simicq net/sulci -> net-im/sulci net/tik -> net-im/tik net/tkabber -> net-im/tkabber net/tkabber-devel -> net-im/tkabber-devel net/tmsnc -> net-im/tmsnc net/vicq -> net-im/vicq net/vqcc-gtk -> net-im/vqcc-gtk net/xicq -> net-im/xicq net/ymessenger -> net-im/ymessenger net/ysm -> net-im/ysm Repocopied by: marcus
2005-11-09 07:48:19 +00:00
CATEGORIES= net-im
MASTER_SITES= https://github.com/jabberd2/jabberd2/releases/download/${PORTNAME}-${DISTVERSION}/ \
LOCAL/matthew/${PORTNAME}
MAINTAINER= mm@FreeBSD.org
COMMENT= Online presence and instant messaging server
2011-03-23 15:53:22 +00:00
LICENSE= GPLv2
LIB_DEPENDS= libexpat.so:textproc/expat2 \
libgsasl.so:security/libgsasl \
libidn.so:dns/libidn \
libudns.so:dns/udns
2018-11-02 00:22:33 +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 \
DOCS SUPERSEDED EXPERIMENTAL
OPTIONS_DEFAULT=MYSQL DEBUG
OPTIONS_SUB= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_PERL5= run
USE_RC_SUBR= jabberd
USE_LDCONFIG= ${PREFIX}/lib/jabberd
CONFIGURE_ARGS= --localstatedir=/var \
--sysconfdir=${PREFIX}/etc/jabberd \
2015-06-19 06:35:31 +00:00
--enable-ssl --enable-mio=kqueue \
--disable-tests \
--with-sasl=gsasl \
--with-extra-include-path="${LOCALBASE}/include ${EIP}" \
--with-extra-library-path="${LOCALBASE}/lib ${ELP}"
JABBER_USER= jabber
JABBER_GROUP= jabber
USERS= ${JABBER_USER}
GROUPS= ${JABBER_GROUP}
JABBER_ETCDIR= "${PREFIX}/etc/jabberd"
JABBER_RUNDIR= "/var/jabberd"
PLIST_SUB+= JABBER_USER=${JABBER_USER} \
JABBER_GROUP=${JABBER_GROUP} \
JABBER_ETCDIR="${JABBER_ETCDIR}" \
JABBER_RUNDIR="${JABBER_RUNDIR}"
SUB_LIST+= JABBER_USER=${JABBER_USER} \
JABBER_RUNDIR="${JABBER_RUNDIR}" \
PERL="${PERL}"
PORTDOCS= *
DOCFILES= AUTHORS ChangeLog NEWS README README.config \
README.protocol TODO
_REQUIRE= LOGIN
ELP+= ${OPENSSLLIB}
EIP+= ${OPENSSLINC}
DEBUG_CONFIGURE_ENABLE= debug
2014-11-22 19:13:49 +00:00
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ENABLE= pgsql
SQLITE_CONFIGURE_ENABLE=sqlite
SQLITE_LIB_DEPENDS= libsqlite3.so:databases/sqlite3
MYSQL_USES= mysql
MYSQL_CONFIGURE_ENABLE= mysql
BDB_USES= bdb
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
.endif
.if ${PORT_OPTIONS:MMYSQL}
EIP+=${LOCALBASE}/include/mysql
ELP+=${LOCALBASE}/lib/mysql
_REQUIRE+= mysql
.endif
.if ${PORT_OPTIONS:MBDB}
EIP+=${BDB_INCLUDE_DIR}
ELP+=${BDB_LIB_DIR}
.endif
.if ${PORT_OPTIONS:MLDAP}
_REQUIRE+= slapd
.endif
.if ${PORT_OPTIONS:MREQUIRES}
SUB_LIST+= REQUIRE="${_REQUIRE}"
.else
SUB_LIST+= REQUIRE="LOGIN"
.endif
REQUIRES_DESC= Add backend requires to startup script
post-patch:
.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
post-install:
.for DIR in db logs pid
@${MKDIR} ${STAGEDIR}${JABBER_RUNDIR}/${DIR}
.endfor
@${CHMOD} -R go= ${STAGEDIR}${JABBER_RUNDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.for FILE in db-setup.mysql db-setup.pgsql db-setup.sqlite
${INSTALL_DATA} ${WRKSRC}/tools/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>