mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
ce190bc1cc
- Silence ${FIND} output - Rename patch-src::ejabberdctl.template to patch-src_ejabberdctl.template (portlint warning) PR: ports/158137 Submitted by: Ruslan Mahamatkhanov <cvs-src@yandex.ru> Security: http://vuxml.org/freebsd/01d3ab7d-9c43-11e0-bc0f-0014a5e3cda6.html
86 lines
2.3 KiB
Makefile
86 lines
2.3 KiB
Makefile
## New ports collection makefile for: ejabberd
|
|
# Date created: 03 July 2004
|
|
# Whom: Alexander Timoshenko <gonzo@univ.kiev.ua>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ejabberd
|
|
PORTVERSION= 2.1.8
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= http://www.process-one.net/downloads/ejabberd/${PORTVERSION}/
|
|
|
|
MAINTAINER= ashish@FreeBSD.org
|
|
COMMENT= Free and Open Source distributed fault-tolerant Jabber server
|
|
|
|
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
|
|
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
|
|
|
USERS= ejabberd
|
|
GROUPS= ${USERS}
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USE_ICONV= yes
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
NOPRECIOUSMAKEVARS= yes
|
|
|
|
OPTIONS= ODBC "Enable ODBC support" off \
|
|
PAM "Enable setuid PAM auth support" off
|
|
|
|
MAKE_ENV= PORTVERSION=${PORTVERSION}
|
|
CONFIGURE_ARGS+=--localstatedir=/var --with-openssl=${OPENSSLBASE}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
PLIST_SUB= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
|
|
SUB_FILES= pkg-message pkg-install
|
|
SUB_LIST= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \
|
|
USERS=${USERS} GROUPS=${GROUPS}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/COPYING
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
|
|
.if defined(WITH_ODBC)
|
|
CONFIGURE_ARGS+=--enable-odbc
|
|
PLIST_SUB+= ODBC=""
|
|
.else
|
|
PLIST_SUB+= ODBC="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_PAM)
|
|
CONFIGURE_ARGS+=--enable-pam
|
|
PLIST_SUB+= PAM=""
|
|
.else
|
|
PLIST_SUB+= PAM="@comment "
|
|
.endif
|
|
|
|
.if defined(NOPORTDOCS)
|
|
MAKE_ARGS+= NOPORTDOCS=${NOPORTDOCS}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/configure
|
|
|
|
post-install:
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@${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}
|
|
|
|
.if defined(WITH_PAM)
|
|
${CHMOD} 4750 ${PREFIX}/lib/erlang/lib/${DISTNAME}/priv/bin/epam
|
|
${CHOWN} root:ejabberd ${PREFIX}/lib/erlang/lib/${DISTNAME}/priv/bin/epam
|
|
${INSTALL} -m 444 ${FILESDIR}/pam_ejabberd ${PREFIX}/etc/pam.d/ejabberd
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|