diff options
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jabber-pymsn/Makefile | 3 | ||||
-rw-r--r-- | net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in | 24 |
2 files changed, 13 insertions, 14 deletions
diff --git a/net-im/jabber-pymsn/Makefile b/net-im/jabber-pymsn/Makefile index 9ef009cad278..2c1f9abd2615 100644 --- a/net-im/jabber-pymsn/Makefile +++ b/net-im/jabber-pymsn/Makefile @@ -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 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 071613156acc..cfdd3dcf94dd 100644 --- a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in +++ b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in @@ -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" |