Provide a script to start quake3server via NetBSD's rc.d framework, also

explain how we should start it. From David Ferlier in PR pkg/24131.
This commit is contained in:
xtraeme 2004-01-22 09:02:30 +00:00
parent e8b81fa142
commit c52cc729c5
5 changed files with 37 additions and 4 deletions

View file

@ -0,0 +1,9 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2004/01/22 09:02:30 xtraeme Exp $
To start a standard Quake3 dedicated server, add this in /etc/rc.conf:
quake3server="YES"
quake3server_flags="+set dedicated 1 +set sv_pure 1 &"
===========================================================================

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/01/04 18:38:05 xtraeme Exp $
# $NetBSD: Makefile,v 1.2 2004/01/22 09:02:30 xtraeme Exp $
DISTNAME= linuxq3apoint-1.32b.x86
PKGNAME= quake3server-1.32b
@ -16,6 +16,8 @@ ONLY_FOR_PLATFORM= NetBSD-*-i386
EXTRACT_CMD= ${SED} '1,265d' ${DOWNLOADED_DISTFILE} | ${GTAR} xzf -
WRKSRC= ${WRKDIR}
BASEDOCDIR= ${PREFIX}/share/doc/lokigames/quake3server
USE_PKGINSTALL= YES
RCD_SCRIPTS= quake3server
do-install:
${INSTALL_DATA_DIR} ${Q3ROOTDIR}/pb ${Q3ROOTDIR}/baseq3 \

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.1.1.1 2004/01/04 18:38:01 xtraeme Exp $
# $NetBSD: Makefile.common,v 1.2 2004/01/22 09:02:30 xtraeme Exp $
NO_BUILD= yes
Q3ROOTDIR= ${PREFIX}/lib/lokigames/quake3server

View file

@ -1,4 +1,5 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/04 18:38:03 xtraeme Exp $
@comment $NetBSD: PLIST,v 1.2 2004/01/22 09:02:30 xtraeme Exp $
etc/rc.d/quake3server
lib/lokigames/quake3server/baseq3/pak1.pk3
lib/lokigames/quake3server/baseq3/pak2.pk3
lib/lokigames/quake3server/baseq3/pak3.pk3
@ -89,10 +90,11 @@ share/doc/lokigames/quake3server/quake3.xpm
@dirrm share/doc/lokigames/quake3server/pb
@dirrm share/doc/lokigames/quake3server/Docs/PunkBuster/players
@dirrm share/doc/lokigames/quake3server/Docs/PunkBuster/admins
@dirrm share/doc/lokigames/quake3server/Docs/PunkBuster
@dirrm share/doc/lokigames/quake3server/Docs/LinuxFAQ
@dirrm share/doc/lokigames/quake3server/Docs
@dirrm share/doc/lokigames/quake3server
@dirrm lib/lokigames/quake3server/pb
@dirrm lib/lokigames/quake3server/missionpack
@dirrm lib/lokigames/quake3server/baseq3
@dirrm lib/lokigames/quake3server
@dirrm lib/lokigames

View file

@ -0,0 +1,20 @@
#!/bin/sh
#
# $NetBSD: quake3server.sh,v 1.1 2004/01/22 09:02:30 xtraeme Exp $
#
# PROVIDE: quake3server
# REQUIRE: network mountcritlocal
. /etc/rc.subr
name="quake3server"
rcvar=$name
q3rootdir="@PREFIX@/lib/lokigames/quake3server"
command="${q3rootdir}/q3ded &"
extra_commands="reload"
cd ${q3rootdir}
load_rc_config $name
run_rc_command "$1"