freebsd-ports/net-im/jabberd/Makefile

174 lines
4.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: jabberd
# Date created: 29 December 2003
# Whom: Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= jabberd
PORTVERSION= 2.1.15
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 08:48:19 +01:00
CATEGORIES= net-im
MASTER_SITES= http://ftp.xiaoka.com/jabberd2/releases/
DIST_SUBDIR= jabber
MAINTAINER= mm@FreeBSD.org
COMMENT= Online presence and instant messaging server
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \
gsasl.10:${PORTSDIR}/security/gsasl \
idn.16:${PORTSDIR}/dns/libidn
OPTIONS= MYSQL "Support MySQL (storage/auth/reg)" on \
POSTGRESQL "Support PostgreSQL (storage/auth/reg)" off \
LDAP "Support OpenLDAP (storage/auth/reg)" off \
BDB "Support BerkeleyDB (storage/auth/reg)" off \
SQLITE "Support SQLite3 (storage/auth/reg)" off \
PAM "Enable PAM (auth/reg)" off \
PIPE "Enable pipe (auth/reg)" off \
ANON "Enable anonymous (auth/reg)" off \
FS "Filesystem storage (only for testing)" off \
DEBUG "Compile with debug messages" on
GNU_CONFIGURE= yes
2004-02-09 08:31:14 +01:00
USE_OPENSSL= yes
USE_ICONV= yes
USE_RC_SUBR= jabberd
USE_LDCONFIG= ${PREFIX}/lib/jabberd
CONFIGURE_ARGS+= --localstatedir=/var \
--sysconfdir=${PREFIX}/etc/jabberd \
--enable-ssl --enable-mio=poll \
--with-extra-include-path="${LOCALBASE}/include ${EIP}" \
--with-extra-library-path="${LOCALBASE}/lib ${ELP}"
JABBER_USER= jabber
JABBER_UID= 93
JABBER_GROUP= ${JABBER_USER}
JABBER_GID= ${JABBER_UID}
JABBER_ETCDIR= "${PREFIX}/etc/jabberd"
JABBER_RUNDIR= "/var/jabberd"
SUB_LIST+= JABBER_USER=${JABBER_USER} JABBER_UID=${JABBER_UID} \
JABBER_GROUP=${JABBER_GROUP} JABBER_GID=${JABBER_GID} \
JABBER_ETCDIR="${JABBER_ETCDIR}" \
JABBER_RUNDIR="${JABBER_RUNDIR}"
SUB_FILES+= pkg-install pkg-deinstall
PORTDOCS= *
DOCFILES= AUTHORS BUGS COPYING ChangeLog INSTALL NEWS PROTOCOL README \
TODO UPGRADE
.include <bsd.port.pre.mk>
ELP+= ${OPENSSLLIB}
EIP+= ${OPENSSLINC}
.if !defined(WITHOUT_DEBUG)
CONFIGURE_ARGS+=--enable-debug
.endif
.if defined(WITH_POSTGRESQL)
USE_PGSQL= yes
CONFIGURE_ARGS+=--enable-pgsql
PLIST_SUB+= SUB_PGSQL=""
.else
CONFIGURE_ARGS+=--disable-pgsql
PLIST_SUB+= SUB_PGSQL="@comment "
.endif
.if defined(WITH_SQLITE)
CONFIGURE_ARGS+=--enable-sqlite
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
CFLAGS+= ${PTHREAD_CFLAGS}
PLIST_SUB+= SUB_SQLITE=""
.else
CONFIGURE_ARGS+=--disable-sqlite
PLIST_SUB+= SUB_SQLITE="@comment "
.endif
.if !defined(WITHOUT_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+=--enable-mysql
EIP+=:${LOCALBASE}/include/mysql
ELP+=:${LOCALBASE}/lib/mysql
PLIST_SUB+= SUB_MYSQL=""
.else
CONFIGURE_ARGS+=--disable-mysql
PLIST_SUB+= SUB_MYSQL="@comment "
.endif
.if defined(WITH_BDB)
USE_BDB= 41+
CONFIGURE_ARGS+=--enable-db
CONFIGURE_ARGS+=--oldincludedir=/nonexistant
EIP+=:${BDB_INCLUDE_DIR}
ELP+=:${BDB_LIB_DIR}
PLIST_SUB+= SUB_BDB=""
.else
CONFIGURE_ARGS+=--disable-db
PLIST_SUB+= SUB_BDB="@comment "
.endif
.if defined(WITH_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--enable-ldap
PLIST_SUB+= SUB_LDAP=""
.else
CONFIGURE_ARGS+=--disable-ldap
PLIST_SUB+= SUB_LDAP="@comment "
.endif
.if defined(WITH_FS)
CONFIGURE_ARGS+=--enable-fs
PLIST_SUB+= SUB_FS=""
.else
CONFIGURE_ARGS+=--disable-fs
PLIST_SUB+= SUB_FS="@comment "
.endif
.if defined(WITH_PAM)
CONFIGURE_ARGS+=--enable-pam
PLIST_SUB+= SUB_PAM=""
.else
CONFIGURE_ARGS+=--disable-pam
PLIST_SUB+= SUB_PAM="@comment "
.endif
.if defined(WITH_PIPE)
CONFIGURE_ARGS+=--enable-pipe
PLIST_SUB+= SUB_PIPE=""
.else
PLIST_SUB+= SUB_PIPE="@comment "
.endif
.if defined(WITH_ANON)
CONFIGURE_ARGS+=--enable-anon
PLIST_SUB+= SUB_ANON=""
.else
PLIST_SUB+= SUB_ANON="@comment "
.endif
MAN8= c2s.8 jabberd.8 resolver.8 router.8 s2s.8 sm.8
post-patch:
@${REINPLACE_CMD} -e 's|"-lsqlite3|"-lsqlite3 ${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CHOWN} -R ${JABBER_USER}:${JABBER_GROUP} ${PREFIX}/etc/jabberd
@${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750
@${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCFILES}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.for FILE in db-setup.mysql db-setup.pgsql db-setup.sqlite
@${INSTALL_DATA} ${WRKSRC}/tools/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>