pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/quake3server Provide a script to start quake3ser...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56c6eee3d579
branches:  trunk
changeset: 466671:56c6eee3d579
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Thu Jan 22 09:02:30 2004 +0000

description:
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.

diffstat:

 games/quake3server/MESSAGE               |   9 +++++++++
 games/quake3server/Makefile              |   4 +++-
 games/quake3server/Makefile.common       |   2 +-
 games/quake3server/PLIST                 |   6 ++++--
 games/quake3server/files/quake3server.sh |  20 ++++++++++++++++++++
 5 files changed, 37 insertions(+), 4 deletions(-)

diffs (87 lines):

diff -r 6010a466ea4f -r 56c6eee3d579 games/quake3server/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/quake3server/MESSAGE        Thu Jan 22 09:02:30 2004 +0000
@@ -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 &"
+
+===========================================================================
diff -r 6010a466ea4f -r 56c6eee3d579 games/quake3server/Makefile
--- a/games/quake3server/Makefile       Thu Jan 22 08:58:59 2004 +0000
+++ b/games/quake3server/Makefile       Thu Jan 22 09:02:30 2004 +0000
@@ -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 @@
 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 \
diff -r 6010a466ea4f -r 56c6eee3d579 games/quake3server/Makefile.common
--- a/games/quake3server/Makefile.common        Thu Jan 22 08:58:59 2004 +0000
+++ b/games/quake3server/Makefile.common        Thu Jan 22 09:02:30 2004 +0000
@@ -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
diff -r 6010a466ea4f -r 56c6eee3d579 games/quake3server/PLIST
--- a/games/quake3server/PLIST  Thu Jan 22 08:58:59 2004 +0000
+++ b/games/quake3server/PLIST  Thu Jan 22 09:02:30 2004 +0000
@@ -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 @@
 @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
diff -r 6010a466ea4f -r 56c6eee3d579 games/quake3server/files/quake3server.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/quake3server/files/quake3server.sh  Thu Jan 22 09:02:30 2004 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index