mirror of
https://git.freebsd.org/ports.git
synced 2025-06-27 23:50:30 -04:00
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
32 lines
633 B
Bash
32 lines
633 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: xmpppy_yahoo
|
|
# REQUIRE: DAEMON %%JABBER_REQUIRE%%
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Define these jabber_pyaim_* variables in one of these files:
|
|
# /etc/rc.conf
|
|
# /etc/rc.conf.local
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="xmpppy_yahoo"
|
|
rcvar=xmpppy_yahoo_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${xmpppy_yahoo_enable="NO"}
|
|
: ${xmpppy_yahoo_dir="%%BINDIR%%"}
|
|
: ${xmpppy_yahoo_piddir="/var/jabberd/pid"}
|
|
: ${xmpppy_yahoo_user="%%JABBER_USER%%"}
|
|
|
|
pidfile="${xmpppy_yahoo_piddir}/PyYIMt.pid"
|
|
command_interpreter="%%PYTHON_CMD%%"
|
|
command_args="&"
|
|
command="${xmpppy_yahoo_dir}/yahoo.py"
|
|
|
|
run_rc_command "$1"
|