- Fix rc.d script installation [1]
- Rework rc.d script accordingly handbook - Remove obsolete USE_REINPLACE Reported by: krismail [1]
This commit is contained in:
parent
1f0160b41c
commit
bb312b9c00
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154338
2 changed files with 7 additions and 10 deletions
|
@ -22,7 +22,6 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-op
|
|||
|
||||
NO_BUILD= yes
|
||||
USE_PYTHON= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_RC_SUBR= jabber-pyicq-transport.sh
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
@ -50,7 +49,6 @@ do-install:
|
|||
${CP} -pPR ${WRKSRC}/src/* ${INST_DIR}/
|
||||
${CHMOD} 755 ${INST_DIR}/main.py
|
||||
[ -f ${INST_DIR}/config.py ] || ${CP} ${INST_DIR}/config.py.sample ${INST_DIR}/config.py
|
||||
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/${PKGBASE}.sh ${PREFIX}/etc/rc.d/${PKGBASE}.sh
|
||||
@${MKDIR} ${EXAMPLESDIR}/etc
|
||||
${INSTALL_DATA} ${WRKSRC}/config_example.xml ${EXAMPLESDIR}/etc/jabber-pyicq.xml
|
||||
[ -f ${PREFIX}/etc/jabber-pyicq.xml ] || ${CP} ${EXAMPLESDIR}/etc/jabber-pyicq.xml ${PREFIX}/etc/jabber-pyicq.xml
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start or stop jabber-pyicq
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
#
|
||||
# PROVIDE: jabber_pyicq
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
|
@ -12,18 +11,18 @@
|
|||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
jabber_pyicq_dir=${jabber_pyicq_dir:-"%%PREFIX%%/lib/jabber/pyicq"}
|
||||
jabber_pyicq_piddir=${jabber_pyicq_piddir:-"/var/jabberd/pid"}
|
||||
jabber_pyicq_enable=${jabber_pyicq_enable:-"NO"}
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="jabber_pyicq"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${jabber_pyicq_enable="NO"}
|
||||
: ${jabber_pyicq_dir="%%PREFIX%%/lib/jabber/pyicq"}
|
||||
: ${jabber_pyicq_piddir="/var/jabberd/pid"}
|
||||
|
||||
pidfile="${jabber_pyicq_piddir}/pyicq.pid"
|
||||
command_interpreter="%%PYTHON_CMD%%"
|
||||
command="${jabber_pyicq_dir}/main.py"
|
||||
|
|
Loading…
Reference in a new issue