From 6a6a06117ad434ea03d9502b7efb051a9e41b22c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 20 Mar 2006 16:50:30 +0000 Subject: Add an OPTION WITH_EJABBERD that set jabber_pymsn_user to "ejabberd" as default --- net-im/jabber-pymsn/Makefile | 14 +++++++++++++- net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'net-im/jabber-pymsn') diff --git a/net-im/jabber-pymsn/Makefile b/net-im/jabber-pymsn/Makefile index 4752b1a33bac..9013c5c8dcce 100644 --- a/net-im/jabber-pymsn/Makefile +++ b/net-im/jabber-pymsn/Makefile @@ -22,6 +22,8 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-op WRKSRC= ${WRKDIR}/${PORTNAME}t-0.11 +OPTIONS= EJABBERD "Use transport with ejabberd" off + NO_BUILD= yes USE_PYTHON= yes USE_RC_SUBR= jabber-pymsn-transport.sh @@ -33,6 +35,16 @@ INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME} PORTDOCS= COPYING README TODO +.include + +.if defined(WITH_EJABBERD) +JABBER_USER?= ejabberd +.else +JABBER_USER?= jabber +.endif + +SUB_LIST+= JABBER_USER=${JABBER_USER} + post-extract: @${FIND} ${WRKSRC}/ -type d \( -name CVS -or -name .svn \) | ${XARGS} ${RM} -rf @@ -72,4 +84,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include +.include diff --git a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in index 9d286a93cd01..657b94772a80 100644 --- a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in +++ b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in @@ -22,7 +22,7 @@ load_rc_config $name : ${jabber_pymsn_enable="NO"} : ${jabber_pymsn_dir="%%PREFIX%%/lib/jabber/pymsn"} : ${jabber_pymsn_piddir="/var/jabberd/pid"} -: ${jabber_pymsn_user="jabber"} +: ${jabber_pymsn_user="%%JABBER_USER%%"} pidfile="${jabber_pymsn_piddir}/PyMSNt.pid" command_interpreter="%%PYTHON_CMD%%" -- cgit v1.2.3