2005-04-24 23:37:41 +02:00
|
|
|
## New ports collection makefile for: ejabberd
|
2004-08-19 12:11:13 +02:00
|
|
|
# Date created: 03 July 2004
|
|
|
|
# Whom: Alexander Timoshenko <gonzo@univ.kiev.ua>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ejabberd
|
2007-10-30 04:02:27 +01:00
|
|
|
PORTVERSION= 1.1.4
|
2007-12-28 19:06:40 +01:00
|
|
|
PORTREVISION= 1
|
2005-11-09 08:48:19 +01:00
|
|
|
CATEGORIES= net-im
|
2007-10-30 04:02:27 +01:00
|
|
|
MASTER_SITES= http://www.process-one.net/downloads/ejabberd/${PORTVERSION}/ \
|
2006-04-29 11:14:52 +02:00
|
|
|
http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
|
2004-08-19 12:11:13 +02:00
|
|
|
|
2006-06-19 22:06:59 +02:00
|
|
|
MAINTAINER= shaun@FreeBSD.org
|
2004-08-19 12:11:13 +02:00
|
|
|
COMMENT= Free and Open Source distributed fault-tolerant Jabber server
|
|
|
|
|
2006-10-05 21:11:40 +02:00
|
|
|
OPTIONS= ODBC "Enable ODBC support" off
|
|
|
|
|
2004-08-19 12:11:13 +02:00
|
|
|
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
|
|
|
|
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
2006-01-31 00:20:05 +01:00
|
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
2004-08-19 12:11:13 +02:00
|
|
|
|
2005-04-24 23:37:41 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-08-19 12:11:13 +02:00
|
|
|
USE_GMAKE= yes
|
2005-06-28 14:56:10 +02:00
|
|
|
USE_ICONV= yes
|
2005-08-28 17:51:48 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_RC_SUBR= ${PORTNAME}.sh
|
2005-08-13 11:22:24 +02:00
|
|
|
NOPRECIOUSMAKEVARS= yes
|
2004-08-19 12:11:13 +02:00
|
|
|
|
2005-08-28 17:51:48 +02:00
|
|
|
MAKE_ENV= PORTVERSION=${PORTVERSION}
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
PLIST_SUB= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
|
|
|
|
SUB_FILES= ${PORTNAME} pkg-message
|
|
|
|
SUB_LIST= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
2004-08-19 12:11:13 +02:00
|
|
|
|
2006-10-05 21:11:40 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_ODBC)
|
|
|
|
CONFIGURE_ARGS+=--enable-odbc
|
|
|
|
PLIST_SUB+= ODBC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ODBC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-08-28 17:51:48 +02:00
|
|
|
pre-install:
|
2006-10-05 21:11:40 +02:00
|
|
|
@${FIND} ${WRKSRC} '(' -name \*.orig -or -name \*.bak ')' -delete
|
|
|
|
@${RM} -f ${WRKSRC}/../doc/release_note_1.1.2.txt
|
2004-08-19 12:11:13 +02:00
|
|
|
|
2005-04-24 23:37:41 +02:00
|
|
|
post-install:
|
2005-08-28 17:51:48 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${WRKSRC}/../tools/${PORTNAME}ctl ${PREFIX}/bin
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.defaults ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.defaults.example
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.inetrc ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.inetrc.example
|
|
|
|
.if !exists(${PREFIX}/etc/${PORTNAME}/${PORTNAME}.inetrc)
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.inetrc ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.inetrc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
${FIND} ${PREFIX}/lib/erlang/lib/${DISTNAME} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
|
|
|
${FIND} ${PREFIX}/lib/erlang/lib/${DISTNAME} -type f -print0 | ${XARGS} -0 ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
|
|
|
2004-08-19 12:15:58 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-19 12:11:13 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR}
|
2004-08-19 12:15:58 +02:00
|
|
|
.endif
|
2005-08-28 17:51:48 +02:00
|
|
|
|
2004-08-19 12:11:13 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2005-08-28 17:51:48 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-08-19 12:11:13 +02:00
|
|
|
|
2006-10-05 21:11:40 +02:00
|
|
|
.include <bsd.port.post.mk>
|