freebsd-ports/games/quaqut/files/quaqut.in
Martin Wilke a6531896cf Quaqut is a simple program that queries Unreal Tournament 2004 (TM)
game servers and retrieves information like those available while
browsing servers in the game. That means information like server
name, game type and current map, names and scores of players, and much more.

WWW: http://quaqut.sourceforge.net/

PR:		ports/104698
Submitted by:	Alexander Logvinov <ports@logvinov.com>
2006-11-07 13:47:12 +00:00

33 lines
755 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: quaqut
# REQUIRE: NETWORKING
#
# Add the following line to /etc/rc.conf[.local] to enable quaqut
#
# quaqut_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable quaqut.
# quaqut_host (str): Server hostname.
# quaqut_logfile (str): Logfile name.
# quaqut_interval (number): Query interval duration.
# It must be a number between 10 and 9999.
#
. %%RC_SUBR%%
name="quaqut"
rcvar=${name}_enable
load_rc_config $name
: ${quaqut_enable="NO"}
: ${quaqut_host="some.ut2004server.tld"}
: ${quaqut_logfile="/var/log/quaqut.log"}
: ${quaqut_interval="10"}
command="/usr/local/bin/quaqut"
command_args="-d ${quaqut_interval} ${quaqut_flags} ${quaqut_host} >> ${quaqut_logfile} &"
run_rc_command "$1"