summaryrefslogtreecommitdiffstats
path: root/net-im/jabber-pyicq
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-03-20 16:51:03 +0000
committergarga <garga@FreeBSD.org>2006-03-20 16:51:03 +0000
commit489a9daa566833853283c27045081286c7b6715e (patch)
tree9885124d0b8330b2c748c1fa053ebaebb3cd888f /net-im/jabber-pyicq
parentb6554d2184f543ead727f16409a3af48e6fe8b65 (diff)
downloadFreeBSD-ports-489a9daa566833853283c27045081286c7b6715e.zip
FreeBSD-ports-489a9daa566833853283c27045081286c7b6715e.tar.gz
Add an OPTION WITH_EJABBERD that set jabber_pyicq_user to "ejabberd" as default
Diffstat (limited to 'net-im/jabber-pyicq')
-rw-r--r--net-im/jabber-pyicq/Makefile14
-rw-r--r--net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in2
2 files changed, 14 insertions, 2 deletions
diff --git a/net-im/jabber-pyicq/Makefile b/net-im/jabber-pyicq/Makefile
index b8056b6..ef30490 100644
--- a/net-im/jabber-pyicq/Makefile
+++ b/net-im/jabber-pyicq/Makefile
@@ -20,6 +20,8 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-op
${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted \
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
+OPTIONS= EJABBERD "Use transport with ejabberd" off
+
NO_BUILD= yes
USE_PYTHON= yes
USE_RC_SUBR= jabber-pyicq-transport.sh
@@ -31,6 +33,16 @@ INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME}
PORTDOCS= COPYING README NEWS
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_EJABBERD)
+JABBER_USER?= ejabberd
+.else
+JABBER_USER?= jabber
+.endif
+
+SUB_LIST+= JABBER_USER=${JABBER_USER}
+
post-extract:
@${FIND} ${WRKSRC}/src -type d -name '.svn' | ${XARGS} ${RM} -rf
@@ -65,4 +77,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in b/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in
index c9bdfe4..11c9541 100644
--- a/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in
+++ b/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in
@@ -22,7 +22,7 @@ load_rc_config $name
: ${jabber_pyicq_enable="NO"}
: ${jabber_pyicq_dir="%%PREFIX%%/lib/jabber/pyicq"}
: ${jabber_pyicq_piddir="/var/jabberd/pid"}
-: ${jabber_pyicq_user="jabber"}
+: ${jabber_pyicq_user="%%JABBER_USER%%"}
pidfile="${jabber_pyicq_piddir}/PyICQt.pid"
command_interpreter="%%PYTHON_CMD%%"
OpenPOWER on IntegriCloud