r7610 - in packages/branches/game-package/support_quake3: etc supported
Jon Dowland
jmtd-guest at alioth.debian.org
Mon Jun 30 09:59:40 UTC 2008
Author: jmtd-guest
Date: 2008-06-30 09:59:40 +0000 (Mon, 30 Jun 2008)
New Revision: 7610
Added:
packages/branches/game-package/support_quake3/etc/quake3-mirrors
Modified:
packages/branches/game-package/support_quake3/supported/quake3
Log:
initial copy of quake3-data postinst logic + mirrors
Added: packages/branches/game-package/support_quake3/etc/quake3-mirrors
===================================================================
--- packages/branches/game-package/support_quake3/etc/quake3-mirrors (rev 0)
+++ packages/branches/game-package/support_quake3/etc/quake3-mirrors 2008-06-30 09:59:40 UTC (rev 7610)
@@ -0,0 +1,6 @@
+# TODO: there's a whole bunch of FreeBSD mirrors we can use, too
+# and gentoo ones
+# presumably we could
+ftp://ftp.idsoftware.com/idstuff/quake3/linux
+ftp://ftp.padua.org/pub/msdos/mirrors/ftp.idsoftware.com/quake3/linux/
+ftp://ftp.fh-niederrhein.de/pub/win9x/gamesup/q3/
Modified: packages/branches/game-package/support_quake3/supported/quake3
===================================================================
--- packages/branches/game-package/support_quake3/supported/quake3 2008-06-30 09:57:26 UTC (rev 7609)
+++ packages/branches/game-package/support_quake3/supported/quake3 2008-06-30 09:59:40 UTC (rev 7610)
@@ -1,7 +1,57 @@
SHORTNAME=quake3
LONGNAME="Quake 3: Arena"
-go() {
- echo "not implemented yet" >&2
+quake3_usage() {
+echo "quake3 game arguments:"
+printf "\tmountpoint - quake 3 CD-ROM mount-point\n"
+printf "\t[ point release ] - quake3 point release file (optional)\n"
+}
+
+parse_args() {
+ if [ $# -eq 1 ]; then
+ CDROM="$1"
+ NOPOINT="true"
+ elif [ $# -eq 2 ]; then
+ CDROM="$1"
+ POINT="$2"
+ NOPOINT="false"
+ else
+ usage >&2
+ quake3_usage >&2
+ exit 1
+ fi
+}
+
+fetch_point_release() {
+ echo "fetch_point_release not implemented yet " >&2
exit 1
}
+
+go() {
+ parse_args $*
+ if [ "$NOPOINT" = "true" ] ; then
+ fetch_point_release
+ fi
+}
+
+# stuff imported from quake3-data postinst, to be integrated
+
+POINTFILE=linuxq3apoint-1.32b-3.x86.run
+POINTMD5=c71fdddccb20e8fc393d846e9c61d685
+Q3TGZ=quake3.tar.gz
+BASEQ3=/usr/share/games/quake3/baseq3
+
+# we need pak0.pk3 from the quake3 CD-ROM. It lives at
+# ./Quake3/baseq3/pak0.pk3 on a regular q3 cd and
+# ./baseq3/pak0.pk3 on a loki CD-ROM.
+
+# we need the point release.
+ wget -O $STORAGE/$POINTFILE $MIRROR/$POINTFILE
+#
+
+# unpacking the point release:
+# dd if=$STORAGE/$POINTFILE of=$STORAGE/$Q3TGZ ibs=1 obs=1024 skip=8251 > /dev/null 2>&1
+# cp $STORAGE/quake3/baseq3/pak[1-8].pk3 ...
+
+# mirrors
+# ftp://ftp.idsoftware.com/idstuff/quake3/linux
More information about the Pkg-games-commits
mailing list