mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Add an OPTION WITH_EJABBERD that set jabber_pyicq_user to "ejabberd" as default
This commit is contained in:
parent
6a6a06117a
commit
a437d2d330
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157757
@ -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>
|
||||
|
@ -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%%"
|
||||
|
Loading…
Reference in New Issue
Block a user