diff options
author | xtraeme <xtraeme> | 2004-01-22 09:02:30 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2004-01-22 09:02:30 +0000 |
commit | ac28c8eaa100bc5ba05ebbaf63bc9c99788a5b20 (patch) | |
tree | 1d4e8628e35a40ad635a83dfd3f110adf4540cd6 | |
parent | e20ce13e448cda01235211cf48b45870f4a78c14 (diff) | |
download | pkgsrc-ac28c8eaa100bc5ba05ebbaf63bc9c99788a5b20.tar.gz |
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.
-rw-r--r-- | games/quake3server/MESSAGE | 9 | ||||
-rw-r--r-- | games/quake3server/Makefile | 4 | ||||
-rw-r--r-- | games/quake3server/Makefile.common | 2 | ||||
-rw-r--r-- | games/quake3server/PLIST | 6 | ||||
-rwxr-xr-x | games/quake3server/files/quake3server.sh | 20 |
5 files changed, 37 insertions, 4 deletions
diff --git a/games/quake3server/MESSAGE b/games/quake3server/MESSAGE new file mode 100644 index 00000000000..a09de26b5c5 --- /dev/null +++ b/games/quake3server/MESSAGE @@ -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 --git a/games/quake3server/Makefile b/games/quake3server/Makefile index 35ae97f5d79..67cc22685f3 100644 --- a/games/quake3server/Makefile +++ b/games/quake3server/Makefile @@ -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 \ diff --git a/games/quake3server/Makefile.common b/games/quake3server/Makefile.common index 5903aa5d721..0bdff28729f 100644 --- a/games/quake3server/Makefile.common +++ b/games/quake3server/Makefile.common @@ -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 --git a/games/quake3server/PLIST b/games/quake3server/PLIST index 043be23e224..2ca9e4be9c0 100644 --- a/games/quake3server/PLIST +++ b/games/quake3server/PLIST @@ -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 diff --git a/games/quake3server/files/quake3server.sh b/games/quake3server/files/quake3server.sh new file mode 100755 index 00000000000..88c094a4cbe --- /dev/null +++ b/games/quake3server/files/quake3server.sh @@ -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" |