- Fix installation of rc.d script [1]
- Bump PORTREVISION - Rework on rc.d script - Remove obsolete USE_REINPLACE PR: ports/92259 Submitted by: garga Approved by: maintainer Reported by: krismail [1]
This commit is contained in:
parent
da8c3a42d8
commit
f5d72ccb3c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154406
2 changed files with 13 additions and 14 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
PORTNAME= pymsn
|
||||
PORTVERSION= 0.10.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-im
|
||||
MASTER_SITES= http://msn-transport.jabberstudio.org/tarballs/
|
||||
PKGNAMEPREFIX= jabber-
|
||||
|
@ -21,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-pymsn-transport.sh
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
@ -55,7 +55,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-pymsn.xml
|
||||
[ -f ${PREFIX}/etc/jabber-pymsn.xml ] || ${CP} ${EXAMPLESDIR}/etc/jabber-pymsn.xml ${PREFIX}/etc/jabber-pymsn.xml
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start or stop jabber-pymsn
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
#
|
||||
# PROVIDE: jabber_pymsn
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
|
@ -12,22 +11,23 @@
|
|||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
jabber_pymsn_dir=${jabberd_pymsn_dir-"%%PREFIX%%/lib/jabber/pymsn"}
|
||||
jabber_pymsn_piddir=${jabberd_pymsn_piddir-"/var/jabberd/pid"}
|
||||
jabber_pymsn_enable=${jabberd_pymsn_enable-"NO"}
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="jabber_pymsn"
|
||||
rcvar=`set_rcvar`
|
||||
command_interpreter="%%PYTHON_CMD%%"
|
||||
command="${jabber_pymsn_dir}/main.py"
|
||||
command_args="&"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${jabber_pymsn_dir="%%PREFIX%%/lib/jabber/pymsn"}
|
||||
: ${jabber_pymsn_piddir="/var/jabberd/pid"}
|
||||
: ${jabber_pymsn_enable="NO"}
|
||||
|
||||
jabber_pymsn_chdir=${jabber_pymsn_dir}
|
||||
|
||||
pidfile="${jabber_pymsn_piddir}/pymsn.pid"
|
||||
command_interpreter="%%PYTHON_CMD%%"
|
||||
command="${jabber_pymsn_dir}/main.py"
|
||||
command_args="-o pid=${pidfile} &"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Reference in a new issue