2008-06-17 11:31:02 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2008/06/17 15:31:02 sthen Exp $
|
2007-09-17 17:19:06 -04:00
|
|
|
|
|
|
|
COMMENT= jabber server written in Erlang
|
|
|
|
|
2008-06-02 14:13:15 -04:00
|
|
|
V= 2.0.1
|
2007-09-18 13:56:32 -04:00
|
|
|
DISTNAME= ejabberd-$V
|
2008-06-17 11:31:02 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2008-06-02 14:13:15 -04:00
|
|
|
DISTFILES= ejabberd-2.0.1_2.tar.gz
|
2007-09-17 17:19:06 -04:00
|
|
|
|
2008-04-21 05:33:58 -04:00
|
|
|
CATEGORIES= net
|
2007-09-17 17:19:06 -04:00
|
|
|
|
2008-06-02 14:13:15 -04:00
|
|
|
HOMEPAGE= http://www.ejabberd.im/
|
2007-09-17 17:19:06 -04:00
|
|
|
|
2008-01-02 07:16:43 -05:00
|
|
|
MAINTAINER= Wiktor Izdebski <vicviq@gmail.com>
|
|
|
|
|
2008-06-02 14:13:15 -04:00
|
|
|
# GPLv2
|
2007-09-17 17:19:06 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-04-21 05:33:58 -04:00
|
|
|
|
2007-09-17 17:19:06 -04:00
|
|
|
WANTLIB= expat crypto ssl z
|
|
|
|
|
2007-09-18 13:56:32 -04:00
|
|
|
MASTER_SITES= http://www.process-one.net/downloads/ejabberd/$V/
|
2007-09-17 17:19:06 -04:00
|
|
|
|
|
|
|
MODULES= converters/libiconv
|
2007-12-19 17:55:30 -05:00
|
|
|
BUILD_DEPENDS= :erlang->=12b.0:lang/erlang
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2007-09-17 17:19:06 -04:00
|
|
|
|
|
|
|
MAKE_FLAGS+= EJABBERDDIR=${PREFIX}/lib/ejabberd \
|
|
|
|
LOGDIR=${EJLOGDIR} \
|
|
|
|
ETCDIR=${SYSCONFDIR}/ejabberd
|
|
|
|
FAKE_FLAGS+= EJABBERDDIR=${WRKINST}/${PREFIX}/lib/ejabberd \
|
|
|
|
LOGDIR=${WRKINST}${EJLOGDIR} \
|
|
|
|
ETCDIR=${WRKINST}/${PREFIX}/share/examples/ejabberd
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
SHARED_ONLY= Yes
|
2008-06-02 14:13:15 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-pam \
|
|
|
|
--enable-mod_pubsub \
|
2007-09-17 17:19:06 -04:00
|
|
|
--enable-mod_irc \
|
|
|
|
--enable-mod_muc \
|
|
|
|
--enable-eldap \
|
|
|
|
--enable-web \
|
|
|
|
--enable-tls \
|
|
|
|
--enable-odbc \
|
|
|
|
--enable-ejabberd_zlib \
|
|
|
|
--disable-roster-gateway-workaround \
|
|
|
|
--disable-mssql
|
|
|
|
CONFIGURE_ENV= HOME=${WRKDIST}
|
|
|
|
|
|
|
|
JABBERDUSER= _ejabberd
|
|
|
|
JABBERDGROUP= _ejabberd
|
|
|
|
EJDBDIR= /var/db/ejabberd
|
|
|
|
EJLOGDIR= /var/log/ejabberd
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2008-06-02 14:13:15 -04:00
|
|
|
SUBST_VARS= TRUEPREFIX LOCALBASE EJDBDIR EJLOGDIR JABBERDUSER
|
|
|
|
|
2007-09-17 17:19:06 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ejabberd
|
|
|
|
cd ${WRKDIST}/examples && \
|
|
|
|
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ejabberd/{} \; && \
|
2008-06-02 14:13:15 -04:00
|
|
|
find . ! -type d -exec ${SUBST_CMD} -c {} ${PREFIX}/share/examples/ejabberd/{} \;
|
2007-09-17 17:19:06 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/odbc/pg.sql ${PREFIX}/share/examples/ejabberd/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/odbc/mysql.sql ${PREFIX}/share/examples/ejabberd/
|
|
|
|
cd ${WRKDIST}/doc && \
|
|
|
|
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ejabberd/{} \; && \
|
|
|
|
find . -name '*.html' -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/ejabberd/{} \; && \
|
|
|
|
find . -name '*.png' -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/ejabberd/{} \;
|
2008-06-02 14:13:15 -04:00
|
|
|
${SUBST_CMD} -c ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/ejabberd/README.OpenBSD
|
|
|
|
${SUBST_CMD} ${PREFIX}/sbin/ejabberdctl
|
2007-09-17 17:19:06 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2008-06-02 14:13:15 -04:00
|
|
|
|