View | Details | Raw Unified | Return to bug 239180
Collapse All | Expand All

(-)Makefile (-3 / +15 lines)
Lines 116-121 Link Here
116
DLRENDERER_MAKE_ARGS=	USE_RENDERER_DLOPEN=1
116
DLRENDERER_MAKE_ARGS=	USE_RENDERER_DLOPEN=1
117
DLRENDERER_MAKE_ARGS_OFF=	USE_RENDERER_DLOPEN=0
117
DLRENDERER_MAKE_ARGS_OFF=	USE_RENDERER_DLOPEN=0
118
118
119
.if !defined(Q3TOTALCONV)
120
.include "${.CURDIR}/../quake3-data/Makefile.include"
121
.endif
122
119
.include <bsd.port.options.mk>
123
.include <bsd.port.options.mk>
120
124
121
.if !defined(DESKTOP_ENTRIES)
125
.if !defined(DESKTOP_ENTRIES)
Lines 140-145 Link Here
140
.if ${IOQ3:MSERVER}
144
.if ${IOQ3:MSERVER}
141
MAKE_ARGS+=	BUILD_SERVER=1
145
MAKE_ARGS+=	BUILD_SERVER=1
142
Q3BIN+=		${Q3SERVER}
146
Q3BIN+=		${Q3SERVER}
147
USE_RC_SUBR+=	ioq3ded
148
SUB_LIST+=	Q3DIR=${Q3DIR}
143
.else
149
.else
144
MAKE_ARGS+=	BUILD_SERVER=0
150
MAKE_ARGS+=	BUILD_SERVER=0
145
.endif
151
.endif
Lines 189-194 Link Here
189
.for inst in ${IOQ3_INST}
195
.for inst in ${IOQ3_INST}
190
PLIST_FILES+=	${inst:C/.*;//}
196
PLIST_FILES+=	${inst:C/.*;//}
191
.endfor
197
.endfor
198
# additional rules for our custom server.cfg from filesdir
199
.if ${IOQ3:MSERVER}
200
PLIST_FILES+=	${Q3DIR}/server.cfg
201
.endif
192
202
193
# Generate install target
203
# Generate install target
194
do-install: ${Q3INSTALL}
204
do-install: ${Q3INSTALL}
Lines 199-207 Link Here
199
	${INSTALL_${inst:C/;.*//}} ${BUILDDIR}/${inst:C/[^;]*;//:C/;.*//} \
209
	${INSTALL_${inst:C/;.*//}} ${BUILDDIR}/${inst:C/[^;]*;//:C/;.*//} \
200
		${STAGEDIR}${PREFIX}/${inst:C/.*;//}
210
		${STAGEDIR}${PREFIX}/${inst:C/.*;//}
201
.endfor
211
.endfor
202
212
# additional rules for our custom server.cfg from filesdir
203
.if !defined(Q3TOTALCONV)
213
.if ${IOQ3:MSERVER}
204
.include "${.CURDIR}/../quake3-data/Makefile.include"
214
	${MKDIR} ${STAGEDIR}${Q3DIR}
215
	${INSTALL_DATA} ${FILESDIR}/server.cfg \
216
		${STAGEDIR}${Q3DIR}/server.cfg
205
.endif
217
.endif
206
218
207
.include <bsd.port.mk>
219
.include <bsd.port.mk>
(-)files/ioq3ded.in (+54 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
5
# PROVIDE: ioq3ded
6
# REQUIRE: LOGIN
7
8
####
9
# Add the following line to /etc/rc.conf to enable ioq3ded
10
#
11
#  ioq3ded_enable="YES"
12
#  # optional
13
#  ioq3ded_args="+set dedicated 1 +set com_hunkmegs 32 +exec server.cfg"
14
#  ioq3ded_home="/var/run/ioq3ded"
15
#  ioq3ded_data="%%Q3DIR%%"
16
#  ioq3ded_user="games"
17
#  ioq3ded_group="games"
18
#
19
# Note:
20
# This script is set to execute server.cfg from the system baseq3
21
#  folder at launch.  Most server config can be placed there.
22
# Some options MUST go on command-line and should be placed in
23
#  "ioq3ded_args" instead - these include "dedicated",
24
#  "com_hunkmegs", etc.
25
####
26
27
. /etc/rc.subr
28
29
name=ioq3ded
30
rcvar=ioq3ded_enable
31
32
load_rc_config $name
33
34
: ${ioq3ded_enable:="NO"}
35
: ${ioq3ded_args="+set dedicated 1 +set com_hunkmegs 32 +exec server.cfg"}
36
: ${ioq3ded_home:="/var/run/ioq3ded"}
37
: ${ioq3ded_data:="%%Q3DIR%%"}
38
: ${ioq3ded_user:="games"}
39
: ${ioq3ded_group:="games"}
40
41
start_precmd="ioq3ded_precmd"
42
43
ioq3ded_precmd()
44
{
45
    install -d -o ${ioq3ded_user} -g ${ioq3ded_group} ${ioq3ded_home}
46
}
47
48
pidfile="${ioq3ded_home}/ioq3ded-daemon.pid"
49
child_pidfile="${ioq3ded_home}/ioq3ded.pid"
50
51
command="/usr/sbin/daemon"
52
command_args="-c -f -P ${pidfile} -p ${child_pidfile} %%PREFIX%%/bin/ioq3ded +set fs_basepath ${ioq3ded_data} +set fs_homepath ${ioq3ded_home} ${ioq3ded_args}"
53
54
run_rc_command "$1"
(-)files/server.cfg (+59 lines)
Line 0 Link Here
1
// SAMPLE SERVER CONFIG FILE
2
//  This file will launch a standard DM server with up to 8 players,
3
//  three bots.
4
5
//
6
// GENERAL SERVER CONFIG
7
//
8
set sv_hostname "ioquake3 Server"	// name that appears in server list
9
set g_motd "ioq3ded on FreeBSD"	// message that appears when connecting
10
set g_log ""			// disables writing gamestats to log file
11
12
set sv_maxclients 8		// max number of clients than can connect
13
set sv_pure 1			// pure server, no altered pak files
14
15
set g_allowvote 0		// disallow voting (players might ruin the map rotation)
16
17
//set rconpassword "secret"	// sets RCON password for remote console
18
19
//
20
// GAME RULE CONFIG
21
//
22
set g_gametype 0		// 0:FFA, 1:Tourney, 2:FFA, 3:TD, 4:CTF
23
set timelimit 10		// Time limit in minutes
24
set fraglimit 15		// Frag limit
25
26
set g_doWarmup 1		// 20sec warmup time before each map start
27
set g_inactivity 300		// kick players after being inactive for x seconds
28
set g_forcerespawn 0		// player has to press primary button to respawn
29
30
//
31
// BOT CONFIG
32
//
33
set bot_enable 1		// Allow bots on the server
34
set g_spskill 3			// Default skill of bots [1-5]
35
set bot_minplayers 3		// This fills the server with bots to satisfy the minimum
36
37
//
38
// MAP CONFIG
39
//
40
set dm1 "map q3dm1; set nextmap vstr dm2"
41
set dm2 "map q3dm2; set nextmap vstr dm3"
42
set dm3 "map q3dm3; set nextmap vstr dm4"
43
set dm4 "map q3dm4; set nextmap vstr dm5"
44
set dm5 "map q3dm5; set nextmap vstr dm6"
45
set dm6 "map q3dm6; set nextmap vstr dm7"
46
set dm7 "map q3dm7; set nextmap vstr dm8"
47
set dm8 "map q3dm8; set nextmap vstr dm9"
48
set dm9 "map q3dm9; set nextmap vstr dm10"
49
set dm10 "map q3dm10; set nextmap vstr dm11"
50
set dm11 "map q3dm11; set nextmap vstr dm12"
51
set dm12 "map q3dm12; set nextmap vstr dm13"
52
set dm13 "map q3dm13; set nextmap vstr dm14"
53
set dm14 "map q3dm14; set nextmap vstr dm15"
54
set dm15 "map q3dm15; set nextmap vstr dm16"
55
set dm16 "map q3dm16; set nextmap vstr dm17"
56
set dm17 "map q3dm17; set nextmap vstr dm18"
57
set dm18 "map q3dm18; set nextmap vstr dm19"
58
set dm19 "map q3dm19; set nextmap vstr dm1"
59
vstr dm1

Return to bug 239180