mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
60391c31af
- Rewrite install procedure and remove obsolete patchfiles No longer use PREFIX/wolfpack but install in PREFIX/{lib,share,etc}/wolfpack
26 lines
409 B
Bash
26 lines
409 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: wolfpack
|
|
#
|
|
# Add the following line to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable the wolfpack game server:
|
|
# wolfpack_enable="YES"
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=wolfpack
|
|
rcvar=`set_rcvar`
|
|
|
|
load_rc_config $name
|
|
|
|
: ${wolfpack_enable="NO"}
|
|
: ${wolfpack_user="wolfpack"}
|
|
|
|
wolfdir="%%PREFIX%%/wolfpack"
|
|
pidfile="$wolfdir/data/server.pid"
|
|
command="$wolfdir/bin/emp_server"
|
|
|
|
run_rc_command "$1"
|
|
|