diff options
author | garga <garga@FreeBSD.org> | 2006-01-25 17:18:20 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-01-25 17:18:20 +0800 |
commit | 812a94cd71eae8524aa38cd52ed3c6e5e78d7732 (patch) | |
tree | be42cfa41e8d92fa204c81c5cb985f94ff2f1193 /net-im | |
parent | a2d27ddce015879b65824d40e9d4e9c387dd2774 (diff) | |
download | freebsd-ports-gnome-812a94cd71eae8524aa38cd52ed3c6e5e78d7732.tar.gz freebsd-ports-gnome-812a94cd71eae8524aa38cd52ed3c6e5e78d7732.tar.zst freebsd-ports-gnome-812a94cd71eae8524aa38cd52ed3c6e5e78d7732.zip |
- 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]
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" |