The Linux client for "A Tale in the Desert".

This is a Massively Multiplayer Online Roleplaying Game (MMORPG) MMORPG.

The download and first 24 hours of trial gameplay are free.

http://www.atitd.com/ for more info.
This commit is contained in:
Matthew N. Dodd 2003-07-18 13:49:36 +00:00
parent 6e38ddfc1e
commit 947131db94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85134
8 changed files with 183 additions and 0 deletions

View File

@ -27,6 +27,7 @@
SUBDIR += angband
SUBDIR += antipolix
SUBDIR += asc
SUBDIR += atitd
SUBDIR += atomix
SUBDIR += atr3d
SUBDIR += awele

63
games/atitd/Makefile Normal file
View File

@ -0,0 +1,63 @@
# New ports collection makefile for: atitd
# Date created: 17 Jul 2003
# Whom: Matthew N. Dodd <mdodd@FreeBSD.ORG>
#
# $FreeBSD$
#
PORTNAME= atitd
PORTVERSION= 1.0
CATEGORIES= games graphics linux
MASTER_SITES= http://www.atitd.com/
DISTNAME= eClient-linux.run
EXTRACT_SUFX=
EXTRACT_ONLY=
MAINTAINER= mdodd@freebsd.org
COMMENT= The Linux "A Tale in the Desert" (ATITD) client
RUN_DEPENDS= ${X11BASE}/bin/xhost:${PORTSDIR}/x11/XFree86-4-clients
.include <bsd.port.pre.mk>
.if ${XFREE86_VERSION} == 4
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
.else
RUN_DEPENDS+= ${LINUXBASE}/lib/libGL.so:${PORTSDIR}/graphics/linux_glx
.endif
USE_LINUX= yes
USE_MESA= yes
ONLY_FOR_ARCHS= i386
NO_CDROM= "Redistribution not allowed"
NO_BUILD= yes
NO_WRKSUBDIR= yes
LINUX_SH= ${LINUXBASE}/bin/sh
ECLIENT= ${DISTDIR}/${DISTFILES}
checksum:
@${LINUX_SH} ${ECLIENT} --check
post-extract:
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/atitd.sh > ${WRKSRC}/atitd.sh
pre-install:
@${ECHO_MSG} "===> Running the pre-install script."
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} PRE-INSTALL
do-install:
@${LINUX_SH} ${ECLIENT} --nox11 --nochown \
--target ${PREFIX}/games/atitd
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
post-install:
@${ECHO_MSG} "===> Fixing permissions."
@${CHOWN} -R atitd:atitd ${PREFIX}/games/atitd
@${CHMOD} ug+s ${PREFIX}/games/atitd/elaunch
${INSTALL_SCRIPT} ${WRKSRC}/atitd.sh ${PREFIX}/bin/atitd
@${ECHO_MSG} "===> Running the post-install script."
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} POST-INSTALL
.include <bsd.port.post.mk>

1
games/atitd/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (eClient-linux.run) = 679c95850b77c0fee1caa4b97d4304a5

View File

@ -0,0 +1,10 @@
#!/bin/sh
DIR=%%PREFIX%%/games/atitd
CLIENT=elaunch
XHOST=/usr/X11R6/bin/xhost
$XHOST +nis:atitd@
cd ${DIR}
./${CLIENT} -nosound $*
$XHOST -nis:atitd@

39
games/atitd/pkg-deinstall Normal file
View File

@ -0,0 +1,39 @@
#!/bin/sh
PATH=/bin:/usr/sbin
if [ -n "${PACKAGE_BUILDING}" ]; then
exit 0
fi
case $2 in
DEINSTALL)
rm -fr ${PKG_PREFIX}/games/atitd
;;
POST-DEINSTALL)
PW=/usr/sbin/pw
USER=atitd
GROUP=atitd
echo -n "Checking for group '$GROUP'... "
if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then
echo "doesn't exist."
else
echo "deleting."
${PW} groupdel -n ${GROUP}
fi
echo -n "Checking for user '$USER'... "
if ! ${PW} usershow $USER >/dev/null 2>&1; then
echo "doesn't exist."
else
echo "deleting."
${PW} userdel -n ${USER}
fi
;;
esac

23
games/atitd/pkg-descr Normal file
View File

@ -0,0 +1,23 @@
The Linux "A Tale in the Desert" (ATITD) client.
A Massively Multiplayer Online Roleplaying Game (MMORPG) by eGenesis.
A free 24 hour demo period is provided for new users to evaluate this game.
System Requirements:
Required:
Pentium 400
192Mb Ram
3D Accelerator
Recommended:
Pentium 700+
256Mb Ram
GeForce video card
- NVIDIA users may have to reinstall the nvidia-driver port as installing
this port may cause the linux_dri port to be installed. Alternately move
the /compat/linux/usr/X11R6/lib/libGL.so.* libraries out of the way.
- DRI users may experience problems whose solution may be a more up to date
version of MesaGL (ports/graphics/mesagl).
WWW: http://www.atitd.com/

45
games/atitd/pkg-install Normal file
View File

@ -0,0 +1,45 @@
#!/bin/sh
PATH=/bin:/usr/sbin
if [ -n "${PACKAGE_BUILDING}" ]; then
exit 0
fi
case $2 in
PRE-INSTALL)
PW=/usr/sbin/pw
USER=atitd
GROUP=atitd
GECOS="A Tale in the Desert"
echo -n "Checking for group '$GROUP'... "
if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then
echo -n "doesn't exist, adding... "
if ${PW} groupadd $GROUP ; then
echo "success."
else
echo "FAILED!"
exit 1
fi
else
echo "exists."
fi
echo -n "Checking for user '$USER'... "
if ! ${PW} usershow $USER >/dev/null 2>&1; then
echo -n "doesn't exist, adding... "
if ${PW} useradd $USER -c "${GECOS}" -d /nonexistent -g $GROUP -s /sbin/nologin -h - ; then
echo "success."
else
echo "FAILED!"
exit 1
fi
else
echo "exists."
fi
;;
esac

1
games/atitd/pkg-plist Normal file
View File

@ -0,0 +1 @@
bin/atitd